WordPress.org

Make WordPress Core

Ticket #11918: functions.php.diff

File functions.php.diff, 524 bytes (added by secondv, 8 years ago)
  • functions.php

     
    17081708
    17091709        do_action( 'do_robotstxt' );
    17101710
     1711        echo "User-agent: *\n";
     1712
    17111713        if ( '0' == get_option( 'blog_public' ) ) {
    1712                 echo "User-agent: *\n";
    17131714                echo "Disallow: /\n";
    17141715        } else {
    1715                 echo "User-agent: *\n";
    1716                 echo "Disallow:\n";
     1716                echo "Disallow: /wp-admin/\n";
     1717                echo "Disallow: /wp-includes/\n";
     1718                echo "Disallow: *?replytocom\n";
    17171719        }
    17181720}
    17191721