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:
ryan
2011-11-15 20:44:48 +00:00
parent 44e5c028b5
commit 45ddf08e07
6 changed files with 22 additions and 12 deletions

View File

@@ -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() );