Changeset 47808 for trunk/src/wp-admin/includes/theme.php
- Timestamp:
- 05/16/2020 06:40:52 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/theme.php
r47797 r47808 472 472 } 473 473 474 if ( 'query_themes' == $action ) {474 if ( 'query_themes' === $action ) { 475 475 if ( ! isset( $args->per_page ) ) { 476 476 $args->per_page = 24; … … 584 584 585 585 // Back-compat for info/1.2 API, upgrade the theme objects in query_themes to objects. 586 if ( 'query_themes' == $action ) {586 if ( 'query_themes' === $action ) { 587 587 foreach ( $res->themes as $i => $theme ) { 588 588 $res->themes[ $i ] = (object) $theme; … … 590 590 } 591 591 // Back-compat for info/1.2 API, downgrade the feature_list result back to an array. 592 if ( 'feature_list' == $action ) {592 if ( 'feature_list' === $action ) { 593 593 $res = (array) $res; 594 594 }
Note: See TracChangeset
for help on using the changeset viewer.