Edit File by line
/home/barbar84/www/wp-conte.../plugins/wordpres.../src/helpers
File: robots-helper.php
<?php
[0] Fix | Delete
[1] Fix | Delete
namespace Yoast\WP\SEO\Helpers;
[2] Fix | Delete
[3] Fix | Delete
/**
[4] Fix | Delete
* A helper object for the robots meta tag.
[5] Fix | Delete
*/
[6] Fix | Delete
class Robots_Helper {
[7] Fix | Delete
[8] Fix | Delete
/**
[9] Fix | Delete
* Sets the robots index to noindex.
[10] Fix | Delete
*
[11] Fix | Delete
* @param array $robots The current robots value.
[12] Fix | Delete
*
[13] Fix | Delete
* @return array The altered robots string.
[14] Fix | Delete
*/
[15] Fix | Delete
public function set_robots_no_index( $robots ) {
[16] Fix | Delete
if ( ! \is_array( $robots ) ) {
[17] Fix | Delete
\_deprecated_argument( __METHOD__, '14.1', '$robots has to be a key-value paired array.' );
[18] Fix | Delete
return $robots;
[19] Fix | Delete
}
[20] Fix | Delete
[21] Fix | Delete
$robots['index'] = 'noindex';
[22] Fix | Delete
[23] Fix | Delete
return $robots;
[24] Fix | Delete
}
[25] Fix | Delete
}
[26] Fix | Delete
[27] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function