From b09cebf57519d09a826526ee19f2aad08031f35a Mon Sep 17 00:00:00 2001 From: Dion Hulse Date: Tue, 21 Nov 2017 03:47:38 +0000 Subject: [PATCH] Rewrite Rules: Correct the logic in `extract_from_markers()` after [41928]. Props stodorovic, SergeyBiryukov. Merges [42199] to the 4.9 branch. Fixes #42579. See #39920. Built from https://develop.svn.wordpress.org/branches/4.9@42213 git-svn-id: http://core.svn.wordpress.org/branches/4.9@42042 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/misc.php | 12 ++++++------ wp-includes/version.php | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/wp-admin/includes/misc.php b/wp-admin/includes/misc.php index 7f5952c895..d060c138dd 100644 --- a/wp-admin/includes/misc.php +++ b/wp-admin/includes/misc.php @@ -77,12 +77,12 @@ function extract_from_markers( $filename, $marker ) { foreach ( $markerdata as $markerline ) { if ( false !== strpos( $markerline, '# END ' . $marker ) ) { $state = false; - if ( $state ) { - $result[] = $markerline; - } - if ( false !== strpos( $markerline, '# BEGIN ' . $marker ) ) { - $state = true; - } + } + if ( $state ) { + $result[] = $markerline; + } + if ( false !== strpos( $markerline, '# BEGIN ' . $marker ) ) { + $state = true; } } diff --git a/wp-includes/version.php b/wp-includes/version.php index e244b4e409..830544a52c 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.9.1-alpha-42212'; +$wp_version = '4.9.1-alpha-42213'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.