Skip to content

Commit

Permalink
Replace "continue" with "break" outside of foreach loops.
Browse files Browse the repository at this point in the history
  • Loading branch information
JJJ committed Nov 16, 2020
1 parent 7fbd491 commit 8220e87
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions wp-site-aliases/includes/functions/admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -504,7 +504,7 @@ function wp_site_aliases_handle_site_actions() {
// Error messages
if ( is_wp_error( $params ) ) {
$args['did_action'] = $params->get_error_code();
continue;
break;
}

$alias_id = $alias_ids[0];
Expand All @@ -513,7 +513,7 @@ function wp_site_aliases_handle_site_actions() {
// Error messages
if ( is_wp_error( $alias ) ) {
$args['did_action'] = $alias->get_error_code();
continue;
break;
}

// Update
Expand All @@ -522,7 +522,7 @@ function wp_site_aliases_handle_site_actions() {
// Error messages
if ( is_wp_error( $result ) ) {
$args['did_action'] = $result->get_error_code();
continue;
break;
}

$processed[] = $alias_id;
Expand Down

0 comments on commit 8220e87

Please sign in to comment.