Make WordPress Core


Ignore:
Timestamp:
11/15/2011 08:44:48 PM (13 years ago)
Author:
ryan
Message:

Introduce wp_no_robots(). Call it for pages that should never be indexed, regardless of blog privacy settings. Props nacin. fixes #19251

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/functions.php

    r19297 r19304  
    18501850    $output = "User-agent: *\n";
    18511851    $public = get_option( 'blog_public' );
    1852     if ( '0' ==  $public ) {
     1852    if ( '0' == $public ) {
    18531853        $output .= "Disallow: /\n";
    18541854    } else {
Note: See TracChangeset for help on using the changeset viewer.