WordPress.org

Make WordPress Core

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

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

adds robots meta tag to ?replytocom pages

  • 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