Make WordPress Core

Changeset 42213


Ignore:
Timestamp:
11/21/2017 03:46:04 AM (9 years ago)
Author:
dd32
Message:

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.

Location:
branches/4.9
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/4.9

  • branches/4.9/src/wp-admin/includes/misc.php

    r42115 r42213  
    7878                if ( false !== strpos( $markerline, '# END ' . $marker ) ) {
    7979                        $state = false;
    80                         if ( $state ) {
    81                                 $result[] = $markerline;
    82                         }
    83                         if ( false !== strpos( $markerline, '# BEGIN ' . $marker ) ) {
    84                                 $state = true;
    85                         }
     80                }
     81                if ( $state ) {
     82                        $result[] = $markerline;
     83                }
     84                if ( false !== strpos( $markerline, '# BEGIN ' . $marker ) ) {
     85                        $state = true;
    8686                }
    8787        }
Note: See TracChangeset for help on using the changeset viewer.