PATH:
home
/
letacommog
/
rachat-or-bourgenbresse
/
wp-content
/
plugins
/
wordpress-seo
/
src
/
integrations
<?php namespace Yoast\WP\SEO\Integrations; use Yoast\WP\SEO\Conditionals\XMLRPC_Conditional; /** * Noindexes the xmlrpc.php file and all ways to request it. */ class XMLRPC implements Integration_Interface { /** * @codeCoverageIgnore * @inheritDoc */ public static function get_conditionals() { return [ XMLRPC_Conditional::class ]; } /** * Initializes the integration. * * @return void */ public function register_hooks() { \add_filter( 'xmlrpc_methods', [ $this, 'robots_header' ] ); } /** * Sets a noindex, follow x-robots-tag header on all XMLRPC requests. * * @codeCoverageIgnore Basically impossible to test from the command line. * * @param array $methods The methods. * * @return array The methods. */ public function robots_header( $methods ) { if ( \headers_sent() === false ) { \header( 'X-Robots-Tag: noindex, follow', true ); } return $methods; } }
[+]
..
[+]
watchers
[-] front-end-integration.php
[edit]
[-] primary-category.php
[edit]
[-] integration-interface.php
[edit]
[+]
admin
[+]
front-end
[-] xmlrpc.php
[edit]
[+]
third-party
[-] breadcrumbs-integration.php
[edit]
[-] .htaccess
[edit]
[+]
blocks