Remove unreachable `break` statements in `wp-admin/comments.php`. `break` is unnecessary after `die`, `exit`, and `wp_die`.
See #27882. Built from https://develop.svn.wordpress.org/trunk@28289 git-svn-id: http://core.svn.wordpress.org/trunk@28117 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
10ab8b1055
commit
97e6942e4a
|
@ -266,7 +266,6 @@ case 'unapprovecomment' :
|
|||
|
||||
wp_redirect( $redir );
|
||||
die;
|
||||
break;
|
||||
|
||||
case 'editedcomment' :
|
||||
|
||||
|
@ -291,11 +290,9 @@ case 'editedcomment' :
|
|||
wp_redirect( $location );
|
||||
|
||||
exit();
|
||||
break;
|
||||
|
||||
default:
|
||||
wp_die( __('Unknown action.') );
|
||||
break;
|
||||
|
||||
} // end switch
|
||||
|
||||
|
|
Loading…
Reference in New Issue