| Server IP : 87.229.120.60 / Your IP : 216.73.216.245 Web Server : Apache System : Linux outside 5.4.8_Algonet_ZeroMAC_0.9.4.8 #6 SMP Mon Feb 3 20:36:07 CET 2020 x86_64 User : server ( 1002) PHP Version : 8.3.20 Disable Function : exec,passthru,shell_exec,system,proc_open,popen,curl_multi_exec,parse_ini_file,show_source MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /home/faktorteam/www/wp-content/plugins/wordpress-seo/src/presenters/ |
Upload File : |
<?php
namespace Yoast\WP\SEO\Presenters;
use Yoast\WP\SEO\Presentations\Indexable_Presentation;
\_deprecated_file( \basename( __FILE__ ), 'WPSEO 14.9' );
/**
* Presenter class for the googlebot output.
*/
class Googlebot_Presenter extends Abstract_Indexable_Presenter {
/**
* Returns the googlebot output.
*
* @deprecated 14.9 Values merged into the robots meta tag.
* @codeCoverageIgnore
*
* @return string The googlebot output tag.
*/
public function present() {
\_deprecated_function( __METHOD__, 'WPSEO 14.9' );
$googlebot = \implode( ', ', $this->get() );
$googlebot = $this->filter( $googlebot );
if ( \is_string( $googlebot ) && $googlebot !== '' ) {
return \sprintf( '<meta name="googlebot" content="%s" />', \esc_attr( $googlebot ) );
}
return '';
}
/**
* Gets the raw value of a presentation.
*
* @deprecated 14.9 Values merged into the robots meta tag.
* @codeCoverageIgnore
*
* @return array The raw value.
*/
public function get() {
\_deprecated_function( __METHOD__, 'WPSEO 14.9' );
return $this->presentation->googlebot;
}
/**
* Run the googlebot output content through the `wpseo_googlebot` filter.
*
* @param string $googlebot The meta googlebot output to filter.
*
* @return string The filtered meta googlebot output.
*/
private function filter( $googlebot ) {
/**
* Filter: 'wpseo_googlebot' - Allows filtering of the meta googlebot output of Yoast SEO.
*
* @api string $googlebot The meta googlebot directives to be echoed.
*
* @param Indexable_Presentation $presentation The presentation of an indexable.
*/
return (string) \apply_filters( 'wpseo_googlebot', $googlebot, $this->presentation );
}
}