Skip to content

Commit 29da06c

Browse files
committed
Coding Standards: Remove unreachable break statement after exit in switch.
This resolves static analysis warnings about an unreachable statement. Developed in WordPress/wordpress-develop#8956 Follow-up to [41131]. Props justlevine, johnbillion. See #64238. Built from https://develop.svn.wordpress.org/trunk@61303 git-svn-id: https://core.svn.wordpress.org/trunk@60615 1a063a9b-81f0-0310-95a4-ce76da25c4cd
1 parent a88ea36 commit 29da06c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

wp-admin/network/sites.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@
240240
<?php
241241
require_once ABSPATH . 'wp-admin/admin-footer.php';
242242
exit;
243-
break;
243+
// By exiting, there's no longer a switch to break out of.
244244

245245
case 'spam':
246246
case 'notspam':

wp-includes/version.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
*
1717
* @global string $wp_version
1818
*/
19-
$wp_version = '7.0-alpha-61302';
19+
$wp_version = '7.0-alpha-61303';
2020

2121
/**
2222
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.

0 commit comments

Comments
 (0)