$location = wp_sanitize_redirect( $location );
if ( ! $is_IIS && 'cgi-fcgi' !== PHP_SAPI ) {
status_header( $status ); // This causes problems on IIS and some FastCGI setups.
}
/**
* Filters the X-Redirect-By header.
*
* Allows applications to identify themselves when they're doing a redirect.
*
* @since 5.1.0
*
* @param string $x_redirect_by The application doing the redirect.
* @param int $status Status code to use.
* @param string $location The path to redirect to.
*/
$x_redirect_by = apply_filters( 'x_redirect_by', $x_redirect_by, $status, $location );
if ( is_string( $x_redirect_by ) ) {
header( "X-Redirect-By: $x_redirect_by" );
}
header( "Location: $location", true, $status );
return true;
}
endif;
if ( ! function_exists( 'wp_sanitize_redirect' ) ) :
/**
* Sanitizes a URL for use in a redirect.
*
* @since 2.3.0
*
* @param string $location The path to redirect to.
* @return string Redirect-sanitized URL.
*/
function wp_sanitize_redirect( $location ) {
// Encode spaces.
$location = str_replace( ' ', '%20', $location );
"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)"
$location = wp_sanitize_redirect( $location );
if ( ! $is_IIS && 'cgi-fcgi' !== PHP_SAPI ) {
status_header( $status ); // This causes problems on IIS and some FastCGI setups.
}
/**
* Filters the X-Redirect-By header.
*
* Allows applications to identify themselves when they're doing a redirect.
*
* @since 5.1.0
*
* @param string $x_redirect_by The application doing the redirect.
* @param int $status Status code to use.
* @param string $location The path to redirect to.
*/
$x_redirect_by = apply_filters( 'x_redirect_by', $x_redirect_by, $status, $location );
if ( is_string( $x_redirect_by ) ) {
header( "X-Redirect-By: $x_redirect_by" );
}
header( "Location: $location", true, $status );
return true;
}
endif;
if ( ! function_exists( 'wp_sanitize_redirect' ) ) :
/**
* Sanitizes a URL for use in a redirect.
*
* @since 2.3.0
*
* @param string $location The path to redirect to.
* @return string Redirect-sanitized URL.
*/
function wp_sanitize_redirect( $location ) {
// Encode spaces.
$location = str_replace( ' ', '%20', $location );
"X-Redirect-By: Polylang Pro"
* @return bool False if the redirect was canceled, true otherwise.
*/
function wp_safe_redirect( $location, $status = 302, $x_redirect_by = 'WordPress' ) {
// Need to look at the URL the way it will end up in wp_redirect().
$location = wp_sanitize_redirect( $location );
/**
* Filters the redirect fallback URL for when the provided redirect is not safe (local).
*
* @since 4.3.0
*
* @param string $fallback_url The fallback URL to use by default.
* @param int $status The HTTP response status code to use.
*/
$fallback_url = apply_filters( 'wp_safe_redirect_fallback', admin_url(), $status );
$location = wp_validate_redirect( $location, $fallback_url );
return wp_redirect( $location, $status, $x_redirect_by );
}
endif;
if ( ! function_exists( 'wp_validate_redirect' ) ) :
/**
* Validates a URL for use in a redirect.
*
* Checks whether the $location is using an allowed host, if it has an absolute
* path. A plugin can therefore set or remove allowed host(s) to or from the
* list.
*
* If the host is not allowed, then the redirect is to $fallback_url supplied.
*
* @since 2.8.1
*
* @param string $location The redirect to validate.
* @param string $fallback_url The value to return if $location is not allowed.
* @return string Redirect-sanitized URL.
*/
function wp_validate_redirect( $location, $fallback_url = '' ) {
"https://orefieldsgroup.com/en/projects/test-project-2/"
301
"Polylang Pro"
* Filters the canonical url detected by Polylang.
*
* @since 1.6
*
* @param string|false $redirect_url False or the url to redirect to.
* @param PLL_Language $language The language detected.
*/
$redirect_url = apply_filters( 'pll_check_canonical_url', $redirect_url, $language );
if ( ! $redirect_url || $requested_url === $redirect_url ) {
return $requested_url;
}
if ( ! $do_redirect ) {
return $redirect_url;
}
// Protect against chained redirects.
if ( $redirect_url === $this->check_canonical_url( $redirect_url, false ) && wp_validate_redirect( $redirect_url ) ) {
wp_safe_redirect( $redirect_url, 301, POLYLANG );
exit;
}
}
/**
* Returns the term_id of the requested term.
*
* @since 2.9
*
* @param WP_Tax_Query $tax_query An instance of WP_Tax_Query.
* @return int
*/
protected function get_queried_term_id( $tax_query ) {
$queried_terms = $tax_query->queried_terms;
$taxonomy = $this->get_queried_taxonomy( $tax_query );
if ( ! is_array( $queried_terms[ $taxonomy ]['terms'] ) ) {
return 0;
}
$field = $queried_terms[ $taxonomy ]['field'];
"https://orefieldsgroup.com/en/projects/test-project-2/"
301
"Polylang Pro"
$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.
"https://orefieldsgroup.com/en/projects/test-project-2"
} 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 ] );
null
array:1 [ 0 => "" ]
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;
}
if ( empty( $arg ) ) {
$arg[] = '';
} elseif ( is_array( $arg[0] ) && 1 === count( $arg[0] ) && isset( $arg[0][0] ) && is_object( $arg[0][0] ) ) {
// Backward compatibility for PHP4-style passing of `array( &$this )` as action `$arg`.
$arg[0] = $arg[0][0];
}
$wp_filter[ $hook_name ]->do_action( $arg );
array_pop( $wp_current_filter );
}
/**
* Calls the callback functions that have been added to an action hook, specifying arguments in an array.
*
* @since 2.1.0
*
* @see do_action() This function is identical, but the arguments passed to the
* functions hooked to `$hook_name` are supplied using an array.
*
* @global WP_Hook[] $wp_filter Stores all of the filters and actions.
* @global int[] $wp_actions Stores the number of times each action was triggered.
* @global string[] $wp_current_filter Stores the list of current filters with the current one last.
*
* @param string $hook_name The name of the action to be executed.
* @param array $args The arguments supplied to the functions hooked to `$hook_name`.
*/
function do_action_ref_array( $hook_name, $args ) {
array:1 [ 0 => "" ]
<?php
/**
* Loads the correct template based on the visitor's url
*
* @package WordPress
*/
if ( wp_using_themes() ) {
/**
* Fires before determining which template to load.
*
* @since 1.5.0
*/
do_action( 'template_redirect' );
}
/**
* Filters whether to allow 'HEAD' requests to generate content.
*
* Provides a significant performance bump by exiting before the page
* content loads for 'HEAD' requests. See #14348.
*
* @since 3.5.0
*
* @param bool $exit Whether to exit without generating any content for 'HEAD' requests. Default true.
*/
if ( 'HEAD' === $_SERVER['REQUEST_METHOD'] && apply_filters( 'exit_on_http_head', true ) ) {
exit;
}
// Process feeds and trackbacks even if not using themes.
if ( is_robots() ) {
/**
* Fired when the template loader determines a robots.txt request.
*
* @since 2.1.0
*/
do_action( 'do_robots' );
return;
} elseif ( is_favicon() ) {
/**
"template_redirect"
<?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/wp/wp-includes/template-loader.php"
<?php
/**
* WordPress View Bootstrapper
*/
declare(strict_types=1);
define('WP_USE_THEMES', true);
require __DIR__ . '/wp/wp-blog-header.php';
"/www/webvol44/te/nzo09zkgwadhrqe/orefieldsgroup.com/public_html/web/wp/wp-blog-header.php"
Key | Value |
SERVER_SOFTWARE | "Apache/2.4.65 (FreeBSD) mpm-itk/2.4.7-04 PHP/8.3.26"
|
REQUEST_URI | "/en/projects/test-project-2"
|
REDIRECT_REDIRECT_REDIRECT_UNIQUE_ID | "aOeW2ujpuqVHfGKpMpBrUQAAACc"
|
REDIRECT_REDIRECT_REDIRECT_HTTPS | "on"
|
REDIRECT_REDIRECT_REDIRECT_SCRIPT_URL | "/en/projects/test-project-2"
|
REDIRECT_REDIRECT_REDIRECT_SCRIPT_URI | "http://orefieldsgroup.com/en/projects/test-project-2"
|
REDIRECT_REDIRECT_REDIRECT_CACHE_ROOT | "/var/cache/sites/vol44/te/nzo09zkgwadhrqe/orefieldsgroup.com/cache/"
|
REDIRECT_REDIRECT_REDIRECT_LOOPIA_CUSTOMER_DIR | "/www/webvol44/te/nzo09zkgwadhrqe/"
|
REDIRECT_REDIRECT_REDIRECT_STATUS | "200"
|
REDIRECT_REDIRECT_UNIQUE_ID | "aOeW2ujpuqVHfGKpMpBrUQAAACc"
|
REDIRECT_REDIRECT_HTTPS | "on"
|
REDIRECT_REDIRECT_SCRIPT_URL | "/en/projects/test-project-2"
|
REDIRECT_REDIRECT_SCRIPT_URI | "http://orefieldsgroup.com/en/projects/test-project-2"
|
REDIRECT_REDIRECT_CACHE_ROOT | "/var/cache/sites/vol44/te/nzo09zkgwadhrqe/orefieldsgroup.com/cache/"
|
REDIRECT_REDIRECT_LOOPIA_CUSTOMER_DIR | "/www/webvol44/te/nzo09zkgwadhrqe/"
|
REDIRECT_REDIRECT_HTTP_AUTHORIZATION | "" |
REDIRECT_REDIRECT_STATUS | "200"
|
REDIRECT_UNIQUE_ID | "aOeW2ujpuqVHfGKpMpBrUQAAACc"
|
REDIRECT_HTTPS | "on"
|
REDIRECT_SCRIPT_URL | "/en/projects/test-project-2"
|
REDIRECT_SCRIPT_URI | "http://orefieldsgroup.com/en/projects/test-project-2"
|
REDIRECT_CACHE_ROOT | "/var/cache/sites/vol44/te/nzo09zkgwadhrqe/orefieldsgroup.com/cache/"
|
REDIRECT_LOOPIA_CUSTOMER_DIR | "/www/webvol44/te/nzo09zkgwadhrqe/"
|
REDIRECT_STATUS | "200"
|
UNIQUE_ID | "aOeW2ujpuqVHfGKpMpBrUQAAACc"
|
HTTPS | "on"
|
SCRIPT_URL | "/en/projects/test-project-2"
|
SCRIPT_URI | "http://orefieldsgroup.com/en/projects/test-project-2"
|
CACHE_ROOT | "/var/cache/sites/vol44/te/nzo09zkgwadhrqe/orefieldsgroup.com/cache/"
|
LOOPIA_CUSTOMER_DIR | "/www/webvol44/te/nzo09zkgwadhrqe/"
|
HTTP_AUTHORIZATION | "" |
HTTP_X_FORWARDED_FOR | "216.73.216.61"
|
HTTP_HOST | "orefieldsgroup.com"
|
HTTP_X_LOOPIA_SSL | "on"
|
HTTP_X_FORWARDED_PROTO | "https"
|
HTTP_CONNECTION | "close"
|
HTTP_ACCEPT | "*/*"
|
HTTP_USER_AGENT | "Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)"
|
HTTP_ACCEPT_ENCODING | "gzip, br, zstd, deflate"
|
PATH | "/sbin:/bin:/usr/sbin:/usr/bin"
|
LD_LIBRARY_PATH | "/usr/local/lib"
|
SERVER_SIGNATURE | "<address>Apache/2.4.65 (FreeBSD) mpm-itk/2.4.7-04 PHP/8.3.26 Server at orefieldsgroup.com Port 80</address>\n"
|
SERVER_NAME | "orefieldsgroup.com"
|
SERVER_ADDR | "172.22.223.67"
|
SERVER_PORT | "80"
|
REMOTE_ADDR | "216.73.216.61"
|
DOCUMENT_ROOT | "/www/webvol44/te/nzo09zkgwadhrqe/orefieldsgroup.com/public_html"
|
REQUEST_SCHEME | "http"
|
CONTEXT_PREFIX | "" |
CONTEXT_DOCUMENT_ROOT | "/www/webvol44/te/nzo09zkgwadhrqe/orefieldsgroup.com/public_html"
|
SERVER_ADMIN | "[no address given]"
|
SCRIPT_FILENAME | "/www/webvol44/te/nzo09zkgwadhrqe/orefieldsgroup.com/public_html/web/index.php"
|
REMOTE_PORT | "21943"
|
REDIRECT_URL | "/index.php"
|
GATEWAY_INTERFACE | "CGI/1.1"
|
SERVER_PROTOCOL | "HTTP/1.1"
|
REQUEST_METHOD | "GET"
|
QUERY_STRING | "" |
SCRIPT_NAME | "/web/index.php"
|
PHP_SELF | "/web/index.php"
|
REQUEST_TIME_FLOAT | 1760007898.0523
|
REQUEST_TIME | 1760007898
|
argv | [] |
argc | 0
|
DB_NAME | "orefieldsgroup_com"
|
DB_USER | "noboxwp@o339738"
|
DB_PASSWORD | "****************"
|
DB_HOST | "s680.loopia.se"
|
WP_ENV | "development"
|
WP_HOME | "https://orefieldsgroup.com"
|
WP_SITEURL | "https://orefieldsgroup.com/wp"
|
WP_DEBUG_LOG | "/path/to/debug.log"
|
DISABLE_WP_CRON | "true"
|
WP_POST_REVISIONS | "5"
|
ACF_PRO_KEY | "b3JkZXJfaWQ9Mzk0NTh8dHlwZT1kZXZlbG9wZXJ8ZGF0ZT0yMDE0LTA5LTExIDA1OjU2OjI1"
|
AUTH_KEY | "****************************************************************"
|
SECURE_AUTH_KEY | "****************************************************************"
|
LOGGED_IN_KEY | "****************************************************************"
|
NONCE_KEY | "****************************************************************"
|
AUTH_SALT | "****************************************************************"
|
SECURE_AUTH_SALT | "****************************************************************"
|
LOGGED_IN_SALT | "****************************************************************"
|
NONCE_SALT | "****************************************************************"
|
Key | Value |
REMOTE_ADDR | "216.73.216.61"
|
DOCUMENT_ROOT | "/www/webvol44/te/nzo09zkgwadhrqe/orefieldsgroup.com/public_html"
|
SCRIPT_FILENAME | "/www/webvol44/te/nzo09zkgwadhrqe/orefieldsgroup.com/public_html/web/index.php"
|
SCRIPT_NAME | "/web/index.php"
|
HTTP_HOST | "orefieldsgroup.com"
|
LANG | "en_GB.UTF-8"
|
"/var/mail/$"
|
|
PATH | "/sbin:/bin:/usr/sbin:/usr/bin"
|
LD_LIBRARY_PATH | "/usr/local/lib"
|
PWD | "/"
|
HOME | "/"
|
MM_CHARSET | "utf-8"
|
RC_PID | "19"
|
BLOCKSIZE | "K"
|
DB_NAME | "orefieldsgroup_com"
|
DB_USER | "noboxwp@o339738"
|
DB_PASSWORD | "****************"
|
DB_HOST | "s680.loopia.se"
|
WP_ENV | "development"
|
WP_HOME | "https://orefieldsgroup.com"
|
WP_SITEURL | "https://orefieldsgroup.com/wp"
|
WP_DEBUG_LOG | "/path/to/debug.log"
|
DISABLE_WP_CRON | "true"
|
WP_POST_REVISIONS | "5"
|
ACF_PRO_KEY | "b3JkZXJfaWQ9Mzk0NTh8dHlwZT1kZXZlbG9wZXJ8ZGF0ZT0yMDE0LTA5LTExIDA1OjU2OjI1"
|
AUTH_KEY | "****************************************************************"
|
SECURE_AUTH_KEY | "****************************************************************"
|
LOGGED_IN_KEY | "****************************************************************"
|
NONCE_KEY | "****************************************************************"
|
AUTH_SALT | "****************************************************************"
|
SECURE_AUTH_SALT | "****************************************************************"
|
LOGGED_IN_SALT | "****************************************************************"
|
NONCE_SALT | "****************************************************************"
|