/home/wwwhub/public_html/wp-content/plugins/gtranslate/gtranslate.php
}
public static function control() {
$data = get_option('GTranslate');
?>
<p><label><?php esc_html_e('Title', 'gtranslate'); ?>: <input name="gtranslate_title" type="text" class="widefat" value="<?php echo esc_attr($data['gtranslate_title']); ?>"/></label></p>
<p><?php printf(/* translators: %s: Link to the GTranslate Settings page. */ esc_html__('Please go to %s for configuration.', 'gtranslate'), '<a href="' . esc_url(admin_url('options-general.php?page=gtranslate_options')) . '">'.esc_html__('GTranslate Settings', 'gtranslate').'</a>'); ?></p>
<?php
if (isset($_POST['gtranslate_title'])){
$data['gtranslate_title'] = esc_attr($_POST['gtranslate_title']);
update_option('GTranslate', $data);
}
}
public static function set_dns_prefetch_header() {
$data = get_option('GTranslate');
self::load_defaults($data);
if($data['enable_cdn'])
header('Link: <https://cdn.gtranslate.net/>; rel=dns-prefetch', false);
}
public static function enqueue_scripts() {
$data = get_option('GTranslate');
self::load_defaults($data);
if(is_admin())
wp_enqueue_script('jquery');
// make sure main_lang is set correctly in config.php file
if($data['pro_version'] or $data['enterprise_version']) {
include dirname(__FILE__) . '/url_addon/config.php';
if($main_lang != $data['default_language']) { // update main_lang in config.php
$config_file = dirname(__FILE__) . '/url_addon/config.php';
if(is_readable($config_file) and wp_is_writable($config_file)) {
$config = file_get_contents($config_file);
if(strpos($config, 'main_lang') !== false) {
$config = preg_replace('/\$main_lang = \'[a-z-]{2,5}\'/i', '$main_lang = \''.$data['default_language'].'\'', $config);
if(is_string($config) and strlen($config) > 10)
Arguments
"Cannot modify header information - headers already sent by (output started at /home/wwwhub/public_html/wp-content/plugins/dracula-dark-mode/plugin.php:18)"
/home/wwwhub/public_html/wp-content/plugins/gtranslate/gtranslate.php
}
public static function control() {
$data = get_option('GTranslate');
?>
<p><label><?php esc_html_e('Title', 'gtranslate'); ?>: <input name="gtranslate_title" type="text" class="widefat" value="<?php echo esc_attr($data['gtranslate_title']); ?>"/></label></p>
<p><?php printf(/* translators: %s: Link to the GTranslate Settings page. */ esc_html__('Please go to %s for configuration.', 'gtranslate'), '<a href="' . esc_url(admin_url('options-general.php?page=gtranslate_options')) . '">'.esc_html__('GTranslate Settings', 'gtranslate').'</a>'); ?></p>
<?php
if (isset($_POST['gtranslate_title'])){
$data['gtranslate_title'] = esc_attr($_POST['gtranslate_title']);
update_option('GTranslate', $data);
}
}
public static function set_dns_prefetch_header() {
$data = get_option('GTranslate');
self::load_defaults($data);
if($data['enable_cdn'])
header('Link: <https://cdn.gtranslate.net/>; rel=dns-prefetch', false);
}
public static function enqueue_scripts() {
$data = get_option('GTranslate');
self::load_defaults($data);
if(is_admin())
wp_enqueue_script('jquery');
// make sure main_lang is set correctly in config.php file
if($data['pro_version'] or $data['enterprise_version']) {
include dirname(__FILE__) . '/url_addon/config.php';
if($main_lang != $data['default_language']) { // update main_lang in config.php
$config_file = dirname(__FILE__) . '/url_addon/config.php';
if(is_readable($config_file) and wp_is_writable($config_file)) {
$config = file_get_contents($config_file);
if(strpos($config, 'main_lang') !== false) {
$config = preg_replace('/\$main_lang = \'[a-z-]{2,5}\'/i', '$main_lang = \''.$data['default_language'].'\'', $config);
if(is_string($config) and strlen($config) > 10)
Arguments
"Link: <https://cdn.gtranslate.net/>; rel=dns-prefetch"
false
/home/wwwhub/public_html/wp-includes/class-wp-hook.php
$this->iterations[ $nesting_level ] = $this->priorities;
$num_args = count( $args );
do {
$this->current_priority[ $nesting_level ] = current( $this->iterations[ $nesting_level ] );
$priority = $this->current_priority[ $nesting_level ];
foreach ( $this->callbacks[ $priority ] as $the_ ) {
if ( ! $this->doing_action ) {
$args[0] = $value;
}
// Avoid the array_slice() if possible.
if ( 0 === $the_['accepted_args'] ) {
$value = call_user_func( $the_['function'] );
} elseif ( $the_['accepted_args'] >= $num_args ) {
$value = call_user_func_array( $the_['function'], $args );
} else {
$value = call_user_func_array( $the_['function'], array_slice( $args, 0, $the_['accepted_args'] ) );
}
}
} while ( false !== next( $this->iterations[ $nesting_level ] ) );
unset( $this->iterations[ $nesting_level ] );
unset( $this->current_priority[ $nesting_level ] );
--$this->nesting_level;
return $value;
}
/**
* Calls the callback functions that have been added to an action hook.
*
* @since 4.7.0
*
* @param array $args Parameters to pass to the callback functions.
Arguments
/home/wwwhub/public_html/wp-includes/class-wp-hook.php
} while ( false !== next( $this->iterations[ $nesting_level ] ) );
unset( $this->iterations[ $nesting_level ] );
unset( $this->current_priority[ $nesting_level ] );
--$this->nesting_level;
return $value;
}
/**
* Calls the callback functions that have been added to an action hook.
*
* @since 4.7.0
*
* @param array $args Parameters to pass to the callback functions.
*/
public function do_action( $args ) {
$this->doing_action = true;
$this->apply_filters( '', $args );
// If there are recursive calls to the current action, we haven't finished it until we get to the last one.
if ( ! $this->nesting_level ) {
$this->doing_action = false;
}
}
/**
* Processes the functions hooked into the 'all' hook.
*
* @since 4.7.0
*
* @param array $args Arguments to pass to the hook callbacks. Passed by reference.
*/
public function do_all_hook( &$args ) {
$nesting_level = $this->nesting_level++;
$this->iterations[ $nesting_level ] = $this->priorities;
do {
$priority = current( $this->iterations[ $nesting_level ] );
Arguments
""
array:1 [
0 => WP {#1967}
]
/home/wwwhub/public_html/wp-includes/plugin.php
// Do 'all' actions first.
if ( isset( $wp_filter['all'] ) ) {
$wp_current_filter[] = $hook_name;
$all_args = func_get_args(); // phpcs:ignore PHPCompatibility.FunctionUse.ArgumentFunctionsReportCurrentValue.NeedsInspection
_wp_call_all_hook( $all_args );
}
if ( ! isset( $wp_filter[ $hook_name ] ) ) {
if ( isset( $wp_filter['all'] ) ) {
array_pop( $wp_current_filter );
}
return;
}
if ( ! isset( $wp_filter['all'] ) ) {
$wp_current_filter[] = $hook_name;
}
$wp_filter[ $hook_name ]->do_action( $args );
array_pop( $wp_current_filter );
}
/**
* Checks if any action has been registered for a hook.
*
* When using the `$callback` argument, this function may return a non-boolean value
* that evaluates to false (e.g. 0), so use the `===` operator for testing the return value.
*
* @since 2.5.0
* @since 6.9.0 Added the `$priority` parameter.
*
* @see has_filter() This function is an alias of has_filter().
*
* @param string $hook_name The name of the action hook.
* @param callable|string|array|false $callback Optional. The callback to check for.
* This function can be called unconditionally to speculatively check
* a callback that may or may not exist. Default false.
* @param int|false $priority Optional. The specific priority at which to check for the callback.
Arguments
array:1 [
0 => WP {#1967}
]
/home/wwwhub/public_html/wp-includes/class-wp.php
foreach ( (array) $headers as $name => $field_value ) {
header( "{$name}: {$field_value}" );
}
}
if ( $exit_required ) {
exit;
}
/**
* Fires once the requested HTTP headers for caching, content type, etc. have been sent.
*
* The {@see 'wp_finalized_template_enhancement_output_buffer'} action may be used to send
* headers after rendering the template into an output buffer.
*
* @since 2.1.0
*
* @param WP $wp Current WordPress environment instance (passed by reference).
*/
do_action_ref_array( 'send_headers', array( &$this ) );
}
/**
* Sets the query string property based off of the query variable property.
*
* The {@see 'query_string'} filter is deprecated, but still works. Plugins should
* use the {@see 'request'} filter instead.
*
* @since 2.0.0
*/
public function build_query_string() {
$this->query_string = '';
foreach ( (array) array_keys( $this->query_vars ) as $wpvar ) {
if ( '' !== $this->query_vars[ $wpvar ] ) {
$this->query_string .= ( strlen( $this->query_string ) < 1 ) ? '' : '&';
if ( ! is_scalar( $this->query_vars[ $wpvar ] ) ) { // Discard non-scalars.
continue;
}
Arguments
"send_headers"
array:1 [
0 => WP {#1967}
]
/home/wwwhub/public_html/wp-includes/class-wp.php
* The action {@see 'wp'} has one parameter that references the WP object. It
* allows for accessing the properties and methods to further manipulate the
* object.
*
* @since 2.0.0
*
* @param string|array $query_args Passed to parse_request().
*/
public function main( $query_args = '' ) {
$this->init();
$parsed = $this->parse_request( $query_args );
if ( $parsed ) {
$this->query_posts();
$this->handle_404();
$this->register_globals();
}
$this->send_headers();
/**
* Fires once the WordPress environment has been set up.
*
* @since 2.1.0
*
* @param WP $wp Current WordPress environment instance (passed by reference).
*/
do_action_ref_array( 'wp', array( &$this ) );
}
}
/home/wwwhub/public_html/wp-includes/functions.php
}
return wp_remote_retrieve_body( $response );
}
/**
* Sets up the WordPress query.
*
* @since 2.0.0
*
* @global WP $wp Current WordPress environment instance.
* @global WP_Query $wp_query WordPress Query object.
* @global WP_Query $wp_the_query Copy of the WordPress Query object.
*
* @param string|array $query_vars Default WP_Query arguments.
*/
function wp( $query_vars = '' ) {
global $wp, $wp_query, $wp_the_query;
$wp->main( $query_vars );
if ( ! isset( $wp_the_query ) ) {
$wp_the_query = $wp_query;
}
}
/**
* Retrieves the description for the HTTP status.
*
* @since 2.3.0
* @since 3.9.0 Added status codes 418, 428, 429, 431, and 511.
* @since 4.5.0 Added status codes 308, 421, and 451.
* @since 5.1.0 Added status code 103.
* @since 6.6.0 Added status code 425.
*
* @global array $wp_header_to_desc
*
* @param int $code HTTP status code.
* @return string Status description if found, an empty string otherwise.
*/
Arguments
/home/wwwhub/public_html/wp-blog-header.php
<?php
/**
* Loads the WordPress environment and template.
*
* @package WordPress
*/
if ( ! isset( $wp_did_header ) ) {
$wp_did_header = true;
// Load the WordPress library.
require_once __DIR__ . '/wp-load.php';
// Set up the WordPress query.
wp();
// Load the theme template.
require_once ABSPATH . WPINC . '/template-loader.php';
}
/home/wwwhub/public_html/index.php
<?php
/**
* Front to the WordPress application. This file doesn't do anything, but loads
* wp-blog-header.php which does and tells WordPress to load the theme.
*
* @package WordPress
*/
/**
* Tells WordPress to load the WordPress theme and output it.
*
* @var bool
*/
define( 'WP_USE_THEMES', true );
/** Loads the WordPress Environment and Template */
require __DIR__ . '/wp-blog-header.php';
Arguments
"/home/wwwhub/public_html/wp-blog-header.php"