From ab22e8ed87609c5cf91ffa328dbadb6cdd94c9ac Mon Sep 17 00:00:00 2001 From: Jon Cave Date: Sun, 13 May 2012 07:41:47 +0000 Subject: [PATCH] get_post_stati() returns post statuses not types. Props jeremyfelt. Fixes #20664. git-svn-id: https://develop.svn.wordpress.org/trunk@20779 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/post.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/post.php b/wp-includes/post.php index 08d505f302..dee484e0b1 100644 --- a/wp-includes/post.php +++ b/wp-includes/post.php @@ -755,7 +755,7 @@ function get_post_status_object( $post_status ) { * @param string $output The type of output to return, either post status 'names' or 'objects'. 'names' is the default. * @param string $operator The logical operation to perform. 'or' means only one element * from the array needs to match; 'and' means all elements must match. The default is 'and'. - * @return array A list of post type names or objects + * @return array A list of post status names or objects */ function get_post_stati( $args = array(), $output = 'names', $operator = 'and' ) { global $wp_post_statuses;