| Current File : /home/eticmes/www/wp-content/plugins/quotes-llama/includes/php/search.php |
<?php
/**
* Quotes Llama Search.
*
* Description. $_GET for search in page and search bar..
*
* @Link http://wordpress.org/plugins/quotes-llama/
* @package quotes-llama
* @since 3.0.0
* License: GPLv3
* License URI: https://www.gnu.org/licenses/gpl-3.0.html
*/
namespace Quotes_Llama;
if ( isset( $_SERVER['HTTP_HOST'] ) ) {
$server_host = esc_url_raw( wp_unslash( $_SERVER['HTTP_HOST'] ) );
if ( isset( $_SERVER['REQUEST_URI'] ) ) {
$server_uri = esc_url_raw( wp_unslash( $_SERVER['REQUEST_URI'] ) );
if ( ! empty( $server_host && $server_uri ) ) {
$current_url = $server_host . $server_uri;
$new_url = remove_query_arg(
array( '_wp_http_referer', 'as', 'paged', 'action', 'action2' ),
stripslashes( $current_url )
);
if ( wp_safe_redirect( $new_url ) ) {
exit;
}
}
}
}