Remove unreachable break
statements in wp-admin/comments.php
. break
is unnecessary after die
, exit
, and wp_die
.
See #27882. git-svn-id: https://develop.svn.wordpress.org/trunk@28289 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
7f754fa2e8
commit
ab01399666
@ -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
Block a user