Privacy: Show failures before successes for all bulk actions.

Props garrett-eclipse.
See #44081, [49331].

Built from https://develop.svn.wordpress.org/trunk@49333


git-svn-id: http://core.svn.wordpress.org/trunk@49094 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Helen Hou-Sandí 2020-10-27 18:19:06 +00:00
parent f4f72498c0
commit 219079f7a3
2 changed files with 18 additions and 18 deletions

View File

@ -247,23 +247,6 @@ abstract class WP_Privacy_Requests_Table extends WP_List_Table {
} }
} }
if ( $count ) {
add_settings_error(
'bulk_action',
'bulk_action',
sprintf(
/* translators: %d: Number of requests. */
_n(
'%d confirmation request re-sent successfully.',
'%d confirmation requests re-sent successfully.',
$count
),
$count
),
'success'
);
}
if ( $failures ) { if ( $failures ) {
add_settings_error( add_settings_error(
'bulk_action', 'bulk_action',
@ -281,6 +264,23 @@ abstract class WP_Privacy_Requests_Table extends WP_List_Table {
); );
} }
if ( $count ) {
add_settings_error(
'bulk_action',
'bulk_action',
sprintf(
/* translators: %d: Number of requests. */
_n(
'%d confirmation request re-sent successfully.',
'%d confirmation requests re-sent successfully.',
$count
),
$count
),
'success'
);
}
break; break;
case 'complete': case 'complete':

View File

@ -13,7 +13,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '5.6-beta1-49331'; $wp_version = '5.6-beta1-49333';
/** /**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.