From a2cf2fa98801e6158a72cc7f857b44e3aee05b88 Mon Sep 17 00:00:00 2001 From: duck_ 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: http://core.svn.wordpress.org/trunk@20779 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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;