WordPress.org

Make WordPress Core

Changeset 14639 for trunk/wp-login.php


Ignore:
Timestamp:
05/14/2010 04:46:53 PM (11 years ago)
Author:
westi
Message:

Introduce return_zero() and use it instead of create_function in the login header.
Also add version info to
return_true and return_false.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-login.php

    r14556 r14639  
    4343
    4444    // Don't index any of these forms
    45     add_filter( 'pre_option_blog_public', create_function( '$a', 'return 0;' ) );
     45    add_filter( 'pre_option_blog_public', '__return_zero' );
    4646    add_action( 'login_head', 'noindex' );
    4747
Note: See TracChangeset for help on using the changeset viewer.