From 46f69c809a9162d2b95ab4183a64c9ca9e4cb89d Mon Sep 17 00:00:00 2001 From: Ryan Boren 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: https://develop.svn.wordpress.org/trunk@19259 602fd350-edb4-49c9-b593-d223f7449a82 --- 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 e08d2c92e4..2e1daccf47 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'] ); ?>