Changeset 55703 for trunk/src/wp-admin/includes/template.php
- Timestamp:
- 05/02/2023 03:43:03 PM (3 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-admin/includes/template.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/template.php
r55276 r55703 1258 1258 $plugin_dir = wp_normalize_path( WP_PLUGIN_DIR ); 1259 1259 1260 if ( str pos( $filename, $plugin_dir ) === 0) {1260 if ( str_starts_with( $filename, $plugin_dir ) ) { 1261 1261 $filename = str_replace( $plugin_dir, '', $filename ); 1262 1262 $filename = preg_replace( '|^/([^/]*/).*$|', '\\1', $filename ); … … 1265 1265 1266 1266 foreach ( $plugins as $name => $plugin ) { 1267 if ( str pos( $name, $filename ) === 0) {1267 if ( str_starts_with( $name, $filename ) ) { 1268 1268 return $plugin; 1269 1269 }
Note: See TracChangeset
for help on using the changeset viewer.