Skip to content
Snippets Groups Projects
Commit c4459c61 authored by Erick Hitter's avatar Erick Hitter
Browse files

Variable name that makes sense

parent 4ea4afd2
No related branches found
No related tags found
No related merge requests found
......@@ -128,16 +128,16 @@ class Delete_All {
/**
* Redirect, including a flag to indicate if the bulk process was scheduled successfully
*
* @param bool $succeed Whether or not the bulk-delete was scheduled
* @param bool $succeeded Whether or not the bulk-delete was scheduled
*/
public static function redirect( $succeed = false ) {
public static function redirect( $succeeded = false ) {
$redirect = wp_unslash( $_SERVER['REQUEST_URI'] );
// Remove arguments that could re-trigger this bulk-edit
$redirect = remove_query_arg( array( '_wp_http_referer', '_wpnonce', 'delete_all', 'delete_all2', ), $redirect );
// Add a flag for the admin notice
$redirect = add_query_arg( self::ADMIN_NOTICE_KEY, $succeed ? 1 : -1, $redirect );
$redirect = add_query_arg( self::ADMIN_NOTICE_KEY, $succeeded ? 1 : -1, $redirect );
wp_redirect( $redirect );
exit;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment