Introduce wp_no_robots(). Call it for pages that should never be indexed, regardless of blog privacy settings. Props nacin. fixes #19251
git-svn-id: http://svn.automattic.com/wordpress/trunk@19304 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -1849,7 +1849,7 @@ function do_robots() {
|
||||
|
||||
$output = "User-agent: *\n";
|
||||
$public = get_option( 'blog_public' );
|
||||
if ( '0' == $public ) {
|
||||
if ( '0' == $public ) {
|
||||
$output .= "Disallow: /\n";
|
||||
} else {
|
||||
$site_url = parse_url( site_url() );
|
||||
|
||||
Reference in New Issue
Block a user