WordPress.org

Make WordPress Core

Changeset 42199


Ignore:
Timestamp:
11/16/2017 01:24:57 PM (3 years ago)
Author:
SergeyBiryukov
Message:

Rewrite Rules: Correct the logic in extract_from_markers() after [41928].

Props stodorovic.
Fixes #42579. See #39920.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/misc.php

    r42115 r42199  
    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.