Make WordPress Core


Ignore:
Timestamp:
02/10/2010 10:36:50 PM (15 years ago)
Author:
ryan
Message:

Consult exclude_from_search when retrieving post_status = any. see #9674

File:
1 edited

Legend:

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

    r13050 r13052  
    8787    register_post_status( 'trash', array(   'label' => _x('Trash', 'post'),
    8888                                            'public' => true,
     89                                            'exclude_from_search' => true,
    8990                                            '_builtin' => true,
    9091                                            'label_count' => _n_noop('Trash <span class="count">(%s)</span>', 'Trash <span class="count">(%s)</span>')
     
    9394    register_post_status( 'auto-draft', array(  'label' => _x('Auto-Draft', 'post'),
    9495                                            'public' => false,
     96                                            'exclude_from_search' => true,
    9597                                            '_builtin' => true,
    9698                                            'label_count' => _n_noop('Auto-Draft <span class="count">(%s)</span>', 'Auto-Drafts <span class="count">(%s)</span>')
Note: See TracChangeset for help on using the changeset viewer.