/www/webvol44/te/nzo09zkgwadhrqe/orefieldsgroup.com/public_html/web/app/plugins/seo-by-rank-math/includes/modules/sitemap/abstract-xml.php
protected function send_headers( $headers = [], $is_xsl = false ) {
$defaults = [
'X-Robots-Tag' => 'noindex',
'Content-Type' => 'text/xml; charset=' . $this->get_output_charset(),
'Pragma' => 'public',
'Cache-Control' => 'no-cache, no-store, must-revalidate, max-age=0',
'Expires' => 0,
];
$headers = wp_parse_args( $headers, $defaults );
/**
* Filter the sitemap HTTP headers.
*
* @param array $headers HTTP headers.
* @param bool $is_xsl Whether these headers are for XSL.
*/
$headers = $this->do_filter( 'sitemap/http_headers', $headers, $is_xsl );
header( $this->get_protocol() . ' 200 OK', true, 200 );
foreach ( $headers as $header => $value ) {
header( $header . ': ' . $value );
}
}
/**
* Get HTTP protocol.
*
* @return string
*/
protected function get_protocol() {
if ( ! is_null( $this->http_protocol ) ) {
return $this->http_protocol;
}
$this->http_protocol = ! empty( $_SERVER['SERVER_PROTOCOL'] ) ? sanitize_text_field( $_SERVER['SERVER_PROTOCOL'] ) : 'HTTP/1.1';
return $this->http_protocol;
}
Arguments
"Cannot modify header information - headers already sent by (output started at /www/webvol44/te/nzo09zkgwadhrqe/orefieldsgroup.com/public_html/web/app/plugins/imagify/inc/classes/class-imagify-abstract-background-process.php:38)"
/www/webvol44/te/nzo09zkgwadhrqe/orefieldsgroup.com/public_html/web/app/plugins/seo-by-rank-math/includes/modules/sitemap/abstract-xml.php
protected function send_headers( $headers = [], $is_xsl = false ) {
$defaults = [
'X-Robots-Tag' => 'noindex',
'Content-Type' => 'text/xml; charset=' . $this->get_output_charset(),
'Pragma' => 'public',
'Cache-Control' => 'no-cache, no-store, must-revalidate, max-age=0',
'Expires' => 0,
];
$headers = wp_parse_args( $headers, $defaults );
/**
* Filter the sitemap HTTP headers.
*
* @param array $headers HTTP headers.
* @param bool $is_xsl Whether these headers are for XSL.
*/
$headers = $this->do_filter( 'sitemap/http_headers', $headers, $is_xsl );
header( $this->get_protocol() . ' 200 OK', true, 200 );
foreach ( $headers as $header => $value ) {
header( $header . ': ' . $value );
}
}
/**
* Get HTTP protocol.
*
* @return string
*/
protected function get_protocol() {
if ( ! is_null( $this->http_protocol ) ) {
return $this->http_protocol;
}
$this->http_protocol = ! empty( $_SERVER['SERVER_PROTOCOL'] ) ? sanitize_text_field( $_SERVER['SERVER_PROTOCOL'] ) : 'HTTP/1.1';
return $this->http_protocol;
}
Arguments
"HTTP/1.1 200 OK"
true
200
/www/webvol44/te/nzo09zkgwadhrqe/orefieldsgroup.com/public_html/web/app/plugins/seo-by-rank-math/includes/modules/sitemap/class-sitemap-xml.php
}
/**
* Generate sitemap now.
*/
private function output() {
global $wp_query;
$this->init_stats();
if ( ! $this->has_sitemap_in_cache() ) {
$this->build_sitemap();
}
if ( empty( $this->sitemap ) ) {
$wp_query->set_404();
status_header( 404 );
return;
}
$this->send_headers();
echo $this->sitemap; // phpcs:ignore
$this->output_credits();
remove_all_actions( 'wp_footer' );
die;
}
/**
* Output XML credits.
*/
private function output_credits() {
if ( ! $this->do_filter( 'sitemap/remove_credit', false ) ) {
echo "\n<!-- XML Sitemap generated by Rank Math SEO Plugin (c) Rank Math - rankmath.com -->";
}
if ( ! WP_DEBUG_DISPLAY || ! WP_DEBUG ) {
return;
}
$time = timer_stop( 0, 3 );
$sql = get_num_queries() - $this->stats['query'];
/www/webvol44/te/nzo09zkgwadhrqe/orefieldsgroup.com/public_html/web/app/plugins/seo-by-rank-math/includes/modules/sitemap/class-sitemap-xml.php
/**
* Whether or not the XML sitemap was served from cache or not.
*
* @var boolean
*/
private $transient = false;
/**
* The Constructor.
*
* @param string $type Sitemap type.
*/
public function __construct( $type ) {
remove_all_actions( 'widgets_init' );
$this->filter( 'user_has_cap', 'filter_user_has_cap' );
$this->type = $type;
$this->cache = new Cache();
$this->set_n( get_query_var( 'sitemap_n' ) );
$this->output();
}
/**
* Generate sitemap now.
*/
private function output() {
global $wp_query;
$this->init_stats();
if ( ! $this->has_sitemap_in_cache() ) {
$this->build_sitemap();
}
if ( empty( $this->sitemap ) ) {
$wp_query->set_404();
status_header( 404 );
return;
}
$this->send_headers();
/www/webvol44/te/nzo09zkgwadhrqe/orefieldsgroup.com/public_html/web/app/plugins/seo-by-rank-math/includes/modules/sitemap/class-router.php
*/
public function request_sitemap( $query ) {
if ( ! $query->is_main_query() ) {
return;
}
$xsl = get_query_var( 'xsl' );
if ( ! empty( $xsl ) ) {
$this->filter( 'user_has_cap', 'filter_user_has_cap' );
$stylesheet = new Stylesheet();
$stylesheet->output( $xsl );
return;
}
$type = get_query_var( 'sitemap' );
if ( empty( $type ) ) {
return;
}
new Sitemap_XML( $type );
}
/**
* Check the current request URI, if we can determine it's probably an XML sitemap, kill loading the widgets.
*/
public function reduce_query_load() {
if ( ! isset( $_SERVER['REQUEST_URI'] ) ) {
return;
}
$request = sanitize_text_field( wp_unslash( $_SERVER['REQUEST_URI'] ) );
$extension = substr( $request, -4 );
if ( Str::contains( 'sitemap', $request ) && in_array( $extension, [ '.xml', '.xsl' ], true ) ) {
remove_all_actions( 'widgets_init' );
}
}
/**
* Redirects `sitemap.xml` to `sitemap_index.xml`.
*/
public function template_redirect() {
Arguments
/www/webvol44/te/nzo09zkgwadhrqe/orefieldsgroup.com/public_html/web/wp/wp-includes/class-wp-hook.php
$nesting_level = $this->nesting_level++;
$this->iterations[ $nesting_level ] = array_keys( $this->callbacks );
$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, (int) $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
/www/webvol44/te/nzo09zkgwadhrqe/orefieldsgroup.com/public_html/web/wp/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 ] = array_keys( $this->callbacks );
do {
$priority = current( $this->iterations[ $nesting_level ] );
Arguments
null
array:1 [
0 => WP_Query {#1873}
]
/www/webvol44/te/nzo09zkgwadhrqe/orefieldsgroup.com/public_html/web/wp/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
*
* @see has_filter() has_action() 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.
* @return bool|int If `$callback` is omitted, returns boolean for whether the hook has
* anything registered. When checking a specific function, the priority
Arguments
array:1 [
0 => WP_Query {#1873}
]
/www/webvol44/te/nzo09zkgwadhrqe/orefieldsgroup.com/public_html/web/wp/wp-includes/class-wp-query.php
$this->is_singular = $this->is_single || $this->is_page || $this->is_attachment;
// Done correcting `is_*` for 'page_on_front' and 'page_for_posts'.
if ( '404' == $qv['error'] ) {
$this->set_404();
}
$this->is_embed = $this->is_embed && ( $this->is_singular || $this->is_404 );
$this->query_vars_hash = md5( serialize( $this->query_vars ) );
$this->query_vars_changed = false;
/**
* Fires after the main query vars have been parsed.
*
* @since 1.5.0
*
* @param WP_Query $query The WP_Query instance (passed by reference).
*/
do_action_ref_array( 'parse_query', array( &$this ) );
}
/**
* Parses various taxonomy related query vars.
*
* For BC, this method is not marked as protected. See [28987].
*
* @since 3.1.0
*
* @param array $q The query variables. Passed by reference.
*/
public function parse_tax_query( &$q ) {
if ( ! empty( $q['tax_query'] ) && is_array( $q['tax_query'] ) ) {
$tax_query = $q['tax_query'];
} else {
$tax_query = array();
}
if ( ! empty( $q['taxonomy'] ) && ! empty( $q['term'] ) ) {
$tax_query[] = array(
Arguments
"parse_query"
array:1 [
0 => WP_Query {#1873}
]
/www/webvol44/te/nzo09zkgwadhrqe/orefieldsgroup.com/public_html/web/wp/wp-includes/class-wp-query.php
public function set( $query_var, $value ) {
$this->query_vars[ $query_var ] = $value;
}
/**
* Retrieves an array of posts based on query variables.
*
* There are a few filters and actions that can be used to modify the post
* database query.
*
* @since 1.5.0
*
* @global wpdb $wpdb WordPress database abstraction object.
*
* @return WP_Post[]|int[] Array of post objects or post IDs.
*/
public function get_posts() {
global $wpdb;
$this->parse_query();
/**
* Fires after the query variable object is created, but before the actual query is run.
*
* Note: If using conditional tags, use the method versions within the passed instance
* (e.g. $this->is_main_query() instead of is_main_query()). This is because the functions
* like is_main_query() test against the global $wp_query instance, not the passed one.
*
* @since 2.0.0
*
* @param WP_Query $query The WP_Query instance (passed by reference).
*/
do_action_ref_array( 'pre_get_posts', array( &$this ) );
// Shorthand.
$q = &$this->query_vars;
// Fill again in case 'pre_get_posts' unset some vars.
$q = $this->fill_query_vars( $q );
/www/webvol44/te/nzo09zkgwadhrqe/orefieldsgroup.com/public_html/web/wp/wp-includes/class-wp-query.php
if ( $this->comment_count > 0 ) {
$this->comment = $this->comments[0];
}
}
/**
* Sets up the WordPress query by parsing query string.
*
* @since 1.5.0
*
* @see WP_Query::parse_query() for all available arguments.
*
* @param string|array $query URL query string or array of query arguments.
* @return WP_Post[]|int[] Array of post objects or post IDs.
*/
public function query( $query ) {
$this->init();
$this->query = wp_parse_args( $query );
$this->query_vars = $this->query;
return $this->get_posts();
}
/**
* Retrieves the currently queried object.
*
* If queried object is not set, then the queried object will be set from
* the category, tag, taxonomy, posts page, single post, page, or author
* query variable. After it is set up, it will be returned.
*
* @since 1.5.0
*
* @return WP_Term|WP_Post_Type|WP_Post|WP_User|null The queried object.
*/
public function get_queried_object() {
if ( isset( $this->queried_object ) ) {
return $this->queried_object;
}
$this->queried_object = null;
$this->queried_object_id = null;
/www/webvol44/te/nzo09zkgwadhrqe/orefieldsgroup.com/public_html/web/wp/wp-includes/class-wp.php
/**
* Set up the current user.
*
* @since 2.0.0
*/
public function init() {
wp_get_current_user();
}
/**
* Set up the Loop based on the query variables.
*
* @since 2.0.0
*
* @global WP_Query $wp_the_query WordPress Query object.
*/
public function query_posts() {
global $wp_the_query;
$this->build_query_string();
$wp_the_query->query( $this->query_vars );
}
/**
* Set the Headers for 404, if nothing is found for requested URL.
*
* Issue a 404 if a request doesn't match any posts and doesn't match any object
* (e.g. an existing-but-empty category, tag, author) and a 404 was not already issued,
* and if the request was not a search or the homepage.
*
* Otherwise, issue a 200.
*
* This sets headers after posts have been queried. handle_404() really means "handle status".
* By inspecting the result of querying posts, seemingly successful requests can be switched to
* a 404 so that canonical redirection logic can kick in.
*
* @since 2.0.0
*
* @global WP_Query $wp_query WordPress Query object.
*/
public function handle_404() {
Arguments
array:1 [
"sitemap" => "1"
]
/www/webvol44/te/nzo09zkgwadhrqe/orefieldsgroup.com/public_html/web/wp/wp-includes/class-wp.php
}
/**
* Sets up all of the variables required by the WordPress environment.
*
* 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 ) );
}
}
/www/webvol44/te/nzo09zkgwadhrqe/orefieldsgroup.com/public_html/web/wp/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.
*
* @global array $wp_header_to_desc
*
* @param int $code HTTP status code.
* @return string Status description if found, an empty string otherwise.
*/
function get_status_header_desc( $code ) {
Arguments
/www/webvol44/te/nzo09zkgwadhrqe/orefieldsgroup.com/public_html/web/wp/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';
}
/www/webvol44/te/nzo09zkgwadhrqe/orefieldsgroup.com/public_html/web/index.php
<?php
/**
* WordPress View Bootstrapper
*/
declare(strict_types=1);
define('WP_USE_THEMES', true);
require __DIR__ . '/wp/wp-blog-header.php';
Arguments
"/www/webvol44/te/nzo09zkgwadhrqe/orefieldsgroup.com/public_html/web/wp/wp-blog-header.php"