Make WordPress Core

Changeset 19932


Ignore:
Timestamp:
02/15/2012 07:58:10 PM (13 years ago)
Author:
nacin
Message:

Use is_admin WP_Query propery, not is_admin(), when adding protected post statuses to the query. Allows for overriding on the parse_query hook. fixes #20049.

File:
1 edited

Legend:

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

    r19918 r19932  
    24772477            }
    24782478
    2479             if ( is_admin() ) {
     2479            if ( $this->is_admin ) {
    24802480                // Add protected states that should show in the admin all list.
    24812481                $admin_all_states = get_post_stati( array('protected' => true, 'show_in_admin_all_list' => true) );
Note: See TracChangeset for help on using the changeset viewer.