Changeset 55990 for trunk/src/wp-includes/ms-load.php
- Timestamp:
- 06/22/2023 02:55:47 PM (18 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/ms-load.php
r55412 r55990 47 47 foreach ( $active_plugins as $plugin ) { 48 48 if ( ! validate_file( $plugin ) // $plugin must validate as file. 49 && '.php' === substr( $plugin, -4) // $plugin must end with '.php'.49 && str_ends_with( $plugin, '.php' ) // $plugin must end with '.php'. 50 50 && file_exists( WP_PLUGIN_DIR . '/' . $plugin ) // $plugin must exist. 51 51 ) { … … 230 230 // query for both to provide the proper redirect. 231 231 $domains = array( $domain ); 232 if ( 'www.' === substr( $domain, 0, 4) ) {232 if ( str_starts_with( $domain, 'www.' ) ) { 233 233 $domains[] = substr( $domain, 4 ); 234 234 }
Note: See TracChangeset
for help on using the changeset viewer.