From adcc961d693a35d7affe5a60735c722c9c30104f Mon Sep 17 00:00:00 2001 From: nacin Date: Wed, 23 Mar 2011 18:57:12 +0000 Subject: [PATCH] Send an associative array to the display_post_states filter. props greenshady, kawauso, fixes #15421. git-svn-id: http://svn.automattic.com/wordpress/trunk@17544 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/template.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/wp-admin/includes/template.php b/wp-admin/includes/template.php index b345c36b76..ebec668bc9 100644 --- a/wp-admin/includes/template.php +++ b/wp-admin/includes/template.php @@ -1623,16 +1623,16 @@ function _post_states($post) { $post_status = ''; if ( !empty($post->post_password) ) - $post_states[] = __('Password protected'); + $post_states['protected'] = __('Password protected'); if ( 'private' == $post->post_status && 'private' != $post_status ) - $post_states[] = __('Private'); + $post_states['private'] = __('Private'); if ( 'draft' == $post->post_status && 'draft' != $post_status ) - $post_states[] = __('Draft'); + $post_states['draft'] = __('Draft'); if ( 'pending' == $post->post_status && 'pending' != $post_status ) /* translators: post state */ - $post_states[] = _x('Pending', 'post state'); + $post_states['pending'] = _x('Pending', 'post state'); if ( is_sticky($post->ID) ) - $post_states[] = __('Sticky'); + $post_states['sticky'] = __('Sticky'); $post_states = apply_filters( 'display_post_states', $post_states );