WordPress.org

Make WordPress Core

Ticket #16881: general-template.php.17522.diff

File general-template.php.17522.diff, 501 bytes (added by joelhardi, 4 years ago)

one-liner to show the robots noindex,nofollow meta tag on replytocom pages (v2)

  • wp-includes/general-template.php

     
    17011701 */ 
    17021702function noindex() { 
    17031703        // If the blog is not public, tell robots to go away. 
    1704         if ( '0' == get_option('blog_public') ) 
     1704        if ( isset($_GET['replytocom']) || '0' == get_option('blog_public') ) 
    17051705                echo "<meta name='robots' content='noindex,nofollow' />\n"; 
    17061706} 
    17071707