From 9954d0a9278cca9e5ef802ab35f5560a56ce716a Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sat, 29 Apr 2023 18:30:23 +0000 Subject: [PATCH] Coding Standards: Break out of the inner loop in `make_site_theme_from_default()`. This more closely matches the previous behavior with multiple `if`/`elseif` statements. Follow-up to [55688]. See #56982. Built from https://develop.svn.wordpress.org/trunk@55698 git-svn-id: http://core.svn.wordpress.org/trunk@55210 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/upgrade.php | 1 + wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/wp-admin/includes/upgrade.php b/wp-admin/includes/upgrade.php index 5692e36e81..6959a4d1b3 100644 --- a/wp-admin/includes/upgrade.php +++ b/wp-admin/includes/upgrade.php @@ -3339,6 +3339,7 @@ function make_site_theme_from_default( $theme_name, $template ) { foreach ( $headers as $header => $value ) { if ( strpos( $line, $header ) !== false ) { $line = $header . ' ' . $value; + break; } } diff --git a/wp-includes/version.php b/wp-includes/version.php index c874179153..081c28ffb6 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.3-alpha-55697'; +$wp_version = '6.3-alpha-55698'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.