mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 12:20:22 +00:00
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: https://develop.svn.wordpress.org/trunk@19304 602fd350-edb4-49c9-b593-d223f7449a82
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