Commit 685fff8565 for wordpress.org
commit 685fff8565ad59482aaff0cf1a8bcd29857a77b5
Author: Weston Ruter <weston@xwp.co>
Date: Tue Nov 25 05:46:31 2025 +0000
Coding Standards: Remove unreachable `break` statement after `exit` in `switch`.
This resolves static analysis warnings about an unreachable statement.
Developed in https://github.com/WordPress/wordpress-develop/pull/8956
Follow-up to [41131].
Props justlevine, johnbillion.
See #64238.
Built from https://develop.svn.wordpress.org/trunk@61303
git-svn-id: http://core.svn.wordpress.org/trunk@60615 1a063a9b-81f0-0310-95a4-ce76da25c4cd
diff --git a/wp-admin/network/sites.php b/wp-admin/network/sites.php
index 17a072287d..b4d266f2b9 100644
--- a/wp-admin/network/sites.php
+++ b/wp-admin/network/sites.php
@@ -240,7 +240,7 @@ if ( isset( $_GET['action'] ) ) {
<?php
require_once ABSPATH . 'wp-admin/admin-footer.php';
exit;
- break;
+ // By exiting, there's no longer a switch to break out of.
case 'spam':
case 'notspam':
diff --git a/wp-includes/version.php b/wp-includes/version.php
index c0f35c19c7..9a3fd11712 100644
--- a/wp-includes/version.php
+++ b/wp-includes/version.php
@@ -16,7 +16,7 @@
*
* @global string $wp_version
*/
-$wp_version = '7.0-alpha-61302';
+$wp_version = '7.0-alpha-61303';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.