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/default-filters.php

    r18932 r19304  
    220220
    221221if ( isset( $_GET['replytocom'] ) )
    222     add_filter( 'pre_option_blog_public', '__return_zero' );
     222    add_action( 'wp_head', 'wp_no_robots' );
    223223
    224224// Login actions
Note: See TracChangeset for help on using the changeset viewer.