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'] ); ?>