Changeset 52062 for trunk/src/wp-includes/class-wp-theme-json.php
- Timestamp:
- 11/08/2021 11:09:53 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-theme-json.php
r52049 r52062 602 602 public function get_custom_templates() { 603 603 $custom_templates = array(); 604 if ( ! isset( $this->theme_json['customTemplates'] ) ) {604 if ( ! isset( $this->theme_json['customTemplates'] ) || ! is_array( $this->theme_json['customTemplates'] ) ) { 605 605 return $custom_templates; 606 606 } … … 626 626 public function get_template_parts() { 627 627 $template_parts = array(); 628 if ( ! isset( $this->theme_json['templateParts'] ) ) {628 if ( ! isset( $this->theme_json['templateParts'] ) || ! is_array( $this->theme_json['templateParts'] ) ) { 629 629 return $template_parts; 630 630 }
Note: See TracChangeset
for help on using the changeset viewer.