- Timestamp:
- 05/16/2020 06:40:52 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-filesystem-base.php
r47557 r47808 99 99 100 100 // Account for relative theme roots. 101 if ( '/themes' == $theme_root || ! is_dir( $theme_root ) ) {101 if ( '/themes' === $theme_root || ! is_dir( $theme_root ) ) { 102 102 $theme_root = WP_CONTENT_DIR . $theme_root; 103 103 } … … 209 209 } 210 210 } 211 } elseif ( 'direct' == $this->method ) {211 } elseif ( 'direct' === $this->method ) { 212 212 $folder = str_replace( '\\', '/', $folder ); // Windows path sanitisation. 213 213 return trailingslashit( $folder ); … … 246 246 */ 247 247 public function search_for_folder( $folder, $base = '.', $loop = false ) { 248 if ( empty( $base ) || '.' == $base ) {248 if ( empty( $base ) || '.' === $base ) { 249 249 $base = trailingslashit( $this->cwd() ); 250 250 } … … 306 306 // Prevent this function from looping again. 307 307 // No need to proceed if we've just searched in `/`. 308 if ( $loop || '/' == $base ) {308 if ( $loop || '/' === $base ) { 309 309 return false; 310 310 }
Note: See TracChangeset
for help on using the changeset viewer.