Changeset 9935
- Timestamp:
- 05/28/2020 03:30:42 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/theme-directory/class-themes-api.php
r9876 r9935 757 757 } 758 758 759 if ( $this->fields['template'] || $this->fields['parent'] ) { 760 /* 761 * On requests for single themes the post global can be set, returning that theme as the parent 762 * if the current theme is not a child theme. 763 */ 764 unset( $GLOBALS['post'] ); 765 759 if ( $theme->post_parent && ( $this->fields['template'] || $this->fields['parent'] ) ) { 766 760 $parent = get_post( $theme->post_parent ); 767 761 768 if ( is_a( $parent, 'WP_Post' )) {762 if ( $parent ) { 769 763 if ( $this->fields['template'] ) { 770 764 $phil->template = $parent->post_name;
Note: See TracChangeset
for help on using the changeset viewer.