Privacy: Show failures before successes for all bulk actions.
Props garrett-eclipse. See #44081, [49331]. git-svn-id: https://develop.svn.wordpress.org/trunk@49333 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
d4f3bdcf52
commit
c81bd5d94b
@ -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':
|
||||||
|
Loading…
Reference in New Issue
Block a user