From 9eb82c24586c3942a60a448d14d9edde127e0851 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sat, 29 Apr 2023 18:28:37 +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. git-svn-id: https://develop.svn.wordpress.org/trunk@55698 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/upgrade.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/wp-admin/includes/upgrade.php b/src/wp-admin/includes/upgrade.php index 5692e36e81..6959a4d1b3 100644 --- a/src/wp-admin/includes/upgrade.php +++ b/src/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; } }