Changeset 47808 for trunk/src/wp-admin/theme-editor.php
- Timestamp:
- 05/16/2020 06:40:52 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/theme-editor.php
r47550 r47808 70 70 } 71 71 72 if ( $theme->errors() && 'theme_no_stylesheet' == $theme->errors()->get_error_code() ) {72 if ( $theme->errors() && 'theme_no_stylesheet' === $theme->errors()->get_error_code() ) { 73 73 wp_die( __( 'The requested theme does not exist.' ) . ' ' . $theme->errors()->get_error_message() ); 74 74 } … … 163 163 $content = fread( $f, filesize( $file ) ); 164 164 165 if ( '.php' == substr( $file, strrpos( $file, '.' ) ) ) {165 if ( '.php' === substr( $file, strrpos( $file, '.' ) ) ) { 166 166 $functions = wp_doc_link_parse( $content ); 167 167 … … 229 229 <?php 230 230 foreach ( wp_get_themes( array( 'errors' => null ) ) as $a_stylesheet => $a_theme ) { 231 if ( $a_theme->errors() && 'theme_no_stylesheet' == $a_theme->errors()->get_error_code() ) {231 if ( $a_theme->errors() && 'theme_no_stylesheet' === $a_theme->errors()->get_error_code() ) { 232 232 continue; 233 233 }
Note: See TracChangeset
for help on using the changeset viewer.