In `wp-admin/link.php`, `break` is unreachabled after `exit`.
See #27882. Built from https://develop.svn.wordpress.org/trunk@28307 git-svn-id: http://core.svn.wordpress.org/trunk@28135 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
213a7de0b7
commit
f5d23b82bd
|
@ -46,7 +46,6 @@ switch ($action) {
|
||||||
|
|
||||||
wp_redirect("$this_file?deleted=$deleted");
|
wp_redirect("$this_file?deleted=$deleted");
|
||||||
exit;
|
exit;
|
||||||
break;
|
|
||||||
|
|
||||||
case 'move' :
|
case 'move' :
|
||||||
check_admin_referer('bulk-bookmarks');
|
check_admin_referer('bulk-bookmarks');
|
||||||
|
@ -62,7 +61,6 @@ switch ($action) {
|
||||||
|
|
||||||
wp_redirect($this_file);
|
wp_redirect($this_file);
|
||||||
exit;
|
exit;
|
||||||
break;
|
|
||||||
|
|
||||||
case 'add' :
|
case 'add' :
|
||||||
check_admin_referer('add-bookmark');
|
check_admin_referer('add-bookmark');
|
||||||
|
@ -73,7 +71,6 @@ switch ($action) {
|
||||||
|
|
||||||
wp_redirect( $redir );
|
wp_redirect( $redir );
|
||||||
exit;
|
exit;
|
||||||
break;
|
|
||||||
|
|
||||||
case 'save' :
|
case 'save' :
|
||||||
$link_id = (int) $_POST['link_id'];
|
$link_id = (int) $_POST['link_id'];
|
||||||
|
@ -83,7 +80,6 @@ switch ($action) {
|
||||||
|
|
||||||
wp_redirect($this_file);
|
wp_redirect($this_file);
|
||||||
exit;
|
exit;
|
||||||
break;
|
|
||||||
|
|
||||||
case 'delete' :
|
case 'delete' :
|
||||||
$link_id = (int) $_GET['link_id'];
|
$link_id = (int) $_GET['link_id'];
|
||||||
|
@ -93,7 +89,6 @@ switch ($action) {
|
||||||
|
|
||||||
wp_redirect($this_file);
|
wp_redirect($this_file);
|
||||||
exit;
|
exit;
|
||||||
break;
|
|
||||||
|
|
||||||
case 'edit' :
|
case 'edit' :
|
||||||
wp_enqueue_script('link');
|
wp_enqueue_script('link');
|
||||||
|
|
Loading…
Reference in New Issue