Changeset 55990 for trunk/src/wp-admin/includes/plugin.php
- Timestamp:
- 06/22/2023 02:55:47 PM (5 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/plugin.php
r55988 r55990 295 295 if ( $plugins_dir ) { 296 296 while ( ( $file = readdir( $plugins_dir ) ) !== false ) { 297 if ( '.' === substr( $file, 0, 1) ) {297 if ( str_starts_with( $file, '.' ) ) { 298 298 continue; 299 299 } … … 304 304 if ( $plugins_subdir ) { 305 305 while ( ( $subfile = readdir( $plugins_subdir ) ) !== false ) { 306 if ( '.' === substr( $subfile, 0, 1) ) {306 if ( str_starts_with( $subfile, '.' ) ) { 307 307 continue; 308 308 } 309 309 310 if ( '.php' === substr( $subfile, -4) ) {310 if ( str_ends_with( $subfile, '.php' ) ) { 311 311 $plugin_files[] = "$file/$subfile"; 312 312 } … … 316 316 } 317 317 } else { 318 if ( '.php' === substr( $file, -4) ) {318 if ( str_ends_with( $file, '.php' ) ) { 319 319 $plugin_files[] = $file; 320 320 } … … 372 372 if ( $plugins_dir ) { 373 373 while ( ( $file = readdir( $plugins_dir ) ) !== false ) { 374 if ( '.php' === substr( $file, -4) ) {374 if ( str_ends_with( $file, '.php' ) ) { 375 375 $plugin_files[] = $file; 376 376 }
Note: See TracChangeset
for help on using the changeset viewer.