Changeset 55703 for trunk/src/wp-includes/class-wp-recovery-mode.php
- Timestamp:
- 05/02/2023 03:43:03 PM (17 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-recovery-mode.php
r54133 r55703 363 363 $wp_plugin_dir = wp_normalize_path( WP_PLUGIN_DIR ); 364 364 365 if ( 0 === strpos( $error_file, $wp_plugin_dir ) ) {365 if ( str_starts_with( $error_file, $wp_plugin_dir ) ) { 366 366 $path = str_replace( $wp_plugin_dir . '/', '', $error_file ); 367 367 $parts = explode( '/', $path ); … … 380 380 $theme_directory = wp_normalize_path( $theme_directory ); 381 381 382 if ( 0 === strpos( $error_file, $theme_directory ) ) {382 if ( str_starts_with( $error_file, $theme_directory ) ) { 383 383 $path = str_replace( $theme_directory . '/', '', $error_file ); 384 384 $parts = explode( '/', $path ); … … 414 414 415 415 foreach ( $network_plugins as $plugin ) { 416 if ( 0 === strpos( $plugin, $extension['slug'] . '/' ) ) {416 if ( str_starts_with( $plugin, $extension['slug'] . '/' ) ) { 417 417 return true; 418 418 }
Note: See TracChangeset
for help on using the changeset viewer.