| Server IP : 178.212.43.201 / Your IP : 10.100.0.33 Web Server : Apache/2.4.37 (Oracle Linux Server) OpenSSL/1.1.1k System : Linux spa0007.srv.paxillus.pl 5.4.17-2136.355.3.1.el8uek.x86_64 #3 SMP Sat May 9 17:11:55 PDT 2026 x86_64 User : apache ( 48) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /var/www/html/paxillus/wp-content/plugins/seo-by-rank-math/includes/frontend/paper/ |
Upload File : |
<?php
/**
* The Search Results paper.
*
* @since 1.0.22
* @package RankMath
* @subpackage RankMath\Paper
* @author Rank Math <[email protected]>
*/
namespace RankMath\Paper;
use RankMath\Helper;
defined( 'ABSPATH' ) || exit;
/**
* Search results.
*/
class Search implements IPaper {
/**
* Retrieves the SEO title.
*
* @return string
*/
public function title() {
return Paper::get_from_options( 'search_title', [], 'Searched for %search_query% %page% %sep% %sitename%' );
}
/**
* Retrieves the SEO description.
*
* @return string
*/
public function description() {
return '';
}
/**
* Retrieves the robots.
*
* @return string
*/
public function robots() {
return Helper::get_settings( 'titles.noindex_search' ) ? [ 'index' => 'noindex' ] : [];
}
/**
* Retrieves the advanced robots.
*
* @return array
*/
public function advanced_robots() {
return [];
}
/**
* Retrieves the canonical URL.
*
* @return array
*/
public function canonical() {
$search_query = get_search_query();
return [ 'canonical' => ! empty( $search_query ) && ! preg_match( '|^page/\d+$|', $search_query ) ? get_search_link() : '' ];
}
/**
* Retrieves meta keywords.
*
* @return string
*/
public function keywords() {
return '';
}
}