C:\xampp\htdocs\landing\wp-content\plugins\wordpress-seo\src\helpers\robots-helper.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<?php

namespace Yoast\WP\SEO\Helpers;

/**
 * A helper object for the robots meta tag.
 */
class Robots_Helper {

    
/**
     * Sets the robots index to noindex.
     *
     * @param array $robots The current robots value.
     *
     * @return array The altered robots string.
     */
    
public function set_robots_no_index$robots ) {
        if ( ! \
is_array$robots ) ) {
            \
_deprecated_argument__METHOD__'14.1''$robots has to be a key-value paired array.' );
            return 
$robots;
        }

        
$robots['index'] = 'noindex';

        return 
$robots;
    }
}
x

Windows NT KPTV 6.2 build 9200 (Windows Server 2012 Datacenter Edition) i586