Make WordPress Core

Changeset 20779


Ignore:
Timestamp:
05/13/2012 07:41:47 AM (12 years ago)
Author:
duck_
Message:

get_post_stati() returns post statuses not types. Props jeremyfelt. Fixes #20664.

File:
1 edited

Legend:

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

    r20770 r20779  
    756756 * @param string $operator The logical operation to perform. 'or' means only one element
    757757 *  from the array needs to match; 'and' means all elements must match. The default is 'and'.
    758  * @return array A list of post type names or objects
     758 * @return array A list of post status names or objects
    759759 */
    760760function get_post_stati( $args = array(), $output = 'names', $operator = 'and' ) {
Note: See TracChangeset for help on using the changeset viewer.