Changeset 47845 for trunk/src/wp-admin/theme-editor.php
- Timestamp:
- 05/22/2020 11:59:10 PM (6 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-admin/theme-editor.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/theme-editor.php
r47844 r47845 178 178 $file_show = array_search( $file, array_filter( $allowed_files ), true ); 179 179 $description = esc_html( $file_description ); 180 if ( $file_description != $file_show ) {180 if ( $file_description !== $file_show ) { 181 181 $description .= ' <span>(' . esc_html( $file_show ) . ')</span>'; 182 182 } … … 231 231 } 232 232 233 $selected = $a_stylesheet == $stylesheet? ' selected="selected"' : '';233 $selected = ( $a_stylesheet === $stylesheet ) ? ' selected="selected"' : ''; 234 234 echo "\n\t" . '<option value="' . esc_attr( $a_stylesheet ) . '"' . $selected . '>' . $a_theme->display( 'Name' ) . '</option>'; 235 235 } … … 299 299 <div> 300 300 <div class="editor-notices"> 301 <?php if ( is_child_theme() && $theme->get_stylesheet() == get_template() ) : ?>301 <?php if ( is_child_theme() && $theme->get_stylesheet() === get_template() ) : ?> 302 302 <div class="notice notice-warning inline"> 303 303 <p>
Note: See TracChangeset
for help on using the changeset viewer.