Changeset 42122 for trunk/src/wp-includes/class-wp-customize-manager.php
- Timestamp:
- 11/07/2017 04:16:11 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-customize-manager.php
r42109 r42122 5447 5447 $theme->screenshot = array( $theme->screenshot_url ); 5448 5448 $theme->authorAndUri = $theme->author; 5449 $theme->parent = ( $theme->slug === $theme->template ) ? false : $theme->template; // The .org API does not seem to return the parent in a documented way; however, this check should yield a similar result in most cases. 5449 // The .org API can return the full parent theme details if passed the 'parent' arg, or if passed the 'template' option it'll return that in the event it's a child theme. 5450 if ( isset( $theme->parent ) ) { 5451 $theme->parent = $theme->parent['slug']; 5452 } else { 5453 $theme->parent = false; 5454 } 5450 5455 unset( $theme->slug ); 5451 5456 unset( $theme->screenshot_url );
Note: See TracChangeset
for help on using the changeset viewer.