From c4d9f38dce0013fd89299885f8ae183018afb8e3 Mon Sep 17 00:00:00 2001 From: ryan Date: Fri, 11 Nov 2011 20:01:56 +0000 Subject: [PATCH] Fix message concatentation. Remove no longer used 'posted' message. fixes #16380 git-svn-id: http://svn.automattic.com/wordpress/trunk@19259 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/edit.php | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/wp-admin/edit.php b/wp-admin/edit.php index e08d2c92e..2e1daccf4 100644 --- a/wp-admin/edit.php +++ b/wp-admin/edit.php @@ -197,16 +197,12 @@ if ( isset($_REQUEST['s']) && $_REQUEST['s'] ) printf( '' . __('Search results for “%s”') . '', get_search_query() ); ?> - -

|

- - - +

' . __('Undo') . '
'; + $messages[] = '' . __('Undo') . ''; unset($_REQUEST['trashed']); } if ( isset($_REQUEST['untrashed']) && (int) $_REQUEST['untrashed'] ) { - printf( _n( 'Item restored from the Trash.', '%s items restored from the Trash.', $_REQUEST['untrashed'] ), number_format_i18n( $_REQUEST['untrashed'] ) ); + $messages[] = sprintf( _n( 'Item restored from the Trash.', '%s items restored from the Trash.', $_REQUEST['untrashed'] ), number_format_i18n( $_REQUEST['untrashed'] ) ); unset($_REQUEST['undeleted']); } +if ( $messages ) + echo join( ' ', $messages ); +unset( $messages ); + $_SERVER['REQUEST_URI'] = remove_query_arg( array('locked', 'skipped', 'updated', 'deleted', 'trashed', 'untrashed'), $_SERVER['REQUEST_URI'] ); ?>