Changeset 55988 for trunk/src/wp-admin/includes/misc.php
- Timestamp:
- 06/22/2023 02:34:56 PM (15 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/misc.php
r55276 r55988 77 77 78 78 foreach ( $markerdata as $markerline ) { 79 if ( false !== strpos( $markerline, '# END ' . $marker ) ) {79 if ( str_contains( $markerline, '# END ' . $marker ) ) { 80 80 $state = false; 81 81 } … … 89 89 } 90 90 91 if ( false !== strpos( $markerline, '# BEGIN ' . $marker ) ) {91 if ( str_contains( $markerline, '# BEGIN ' . $marker ) ) { 92 92 $state = true; 93 93 } … … 195 195 196 196 foreach ( $lines as $line ) { 197 if ( ! $found_marker && false !== strpos( $line, $start_marker ) ) {197 if ( ! $found_marker && str_contains( $line, $start_marker ) ) { 198 198 $found_marker = true; 199 199 continue; 200 } elseif ( ! $found_end_marker && false !== strpos( $line, $end_marker ) ) {200 } elseif ( ! $found_end_marker && str_contains( $line, $end_marker ) ) { 201 201 $found_end_marker = true; 202 202 continue;
Note: See TracChangeset
for help on using the changeset viewer.