Changeset 47808 for trunk/src/wp-admin/themes.php
- Timestamp:
- 05/16/2020 06:40:52 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/themes.php
r47510 r47808 19 19 20 20 if ( current_user_can( 'switch_themes' ) && isset( $_GET['action'] ) ) { 21 if ( 'activate' == $_GET['action'] ) {21 if ( 'activate' === $_GET['action'] ) { 22 22 check_admin_referer( 'switch-theme_' . $_GET['stylesheet'] ); 23 23 $theme = wp_get_theme( $_GET['stylesheet'] ); … … 54 54 wp_redirect( admin_url( 'themes.php?resumed=true' ) ); 55 55 exit; 56 } elseif ( 'delete' == $_GET['action'] ) {56 } elseif ( 'delete' === $_GET['action'] ) { 57 57 check_admin_referer( 'delete-theme_' . $_GET['stylesheet'] ); 58 58 $theme = wp_get_theme( $_GET['stylesheet'] ); … … 248 248 foreach ( (array) $submenu['themes.php'] as $item ) { 249 249 $class = ''; 250 if ( 'themes.php' == $item[2] || 'theme-editor.php'== $item[2] || 0 === strpos( $item[2], 'customize.php' ) ) {250 if ( 'themes.php' === $item[2] || 'theme-editor.php' === $item[2] || 0 === strpos( $item[2], 'customize.php' ) ) { 251 251 continue; 252 252 }
Note: See TracChangeset
for help on using the changeset viewer.