Changeset 51601
- Timestamp:
- 08/11/2021 01:00:46 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/theme.php
r51510 r51601 603 603 } 604 604 605 // Back-compat for info/1.2 API, upgrade the theme objects in query_themes to objects. 606 if ( 'query_themes' === $action ) { 607 foreach ( $res->themes as $i => $theme ) { 608 $res->themes[ $i ] = (object) $theme; 605 if ( ! is_wp_error( $res ) ) { 606 // Back-compat for info/1.2 API, upgrade the theme objects in query_themes to objects. 607 if ( 'query_themes' === $action ) { 608 foreach ( $res->themes as $i => $theme ) { 609 $res->themes[ $i ] = (object) $theme; 610 } 609 611 } 610 } 611 // Back-compat for info/1.2 API, downgrade the feature_list result back to an array. 612 if ( 'feature_list' === $action ) { 613 $res = (array) $res; 612 613 // Back-compat for info/1.2 API, downgrade the feature_list result back to an array. 614 if ( 'feature_list' === $action ) { 615 $res = (array) $res; 616 } 614 617 } 615 618 }
Note: See TracChangeset
for help on using the changeset viewer.