Make WordPress Core

Changeset 17891


Ignore:
Timestamp:
05/12/2011 03:59:16 AM (14 years ago)
Author:
nacin
Message:

Don't allow indexing of replytocom URLs. fixes #16893.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/default-filters.php

    r17826 r17891  
    212212add_action( 'wp_head',             'wp_shortlink_wp_head',          10, 0 );
    213213add_action( 'template_redirect',   'wp_shortlink_header',           11, 0 );
     214
     215if ( isset( $_GET['replytocom'] ) )
     216    add_filter( 'pre_option_blog_public', '__return_zero' );
    214217
    215218// Login actions
Note: See TracChangeset for help on using the changeset viewer.