Changeset 61457 for trunk/src/wp-includes/class-wp-theme.php
- Timestamp:
- 01/09/2026 04:26:02 AM (8 weeks ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/class-wp-theme.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-theme.php
r61299 r61457 516 516 } 517 517 // Set the parent. Pass the current instance so we can do the checks above and assess errors. 518 $this->parent = new WP_Theme( $this->template, isset( $theme_root_template ) ? $theme_root_template :$this->theme_root, $this );518 $this->parent = new WP_Theme( $this->template, $theme_root_template ?? $this->theme_root, $this ); 519 519 } 520 520 … … 777 777 */ 778 778 public function parent() { 779 return isset( $this->parent ) ? $this->parent :false;779 return $this->parent ?? false; 780 780 } 781 781 … … 1398 1398 1399 1399 $post_templates = $this->get_post_templates(); 1400 $post_templates = isset( $post_templates[ $post_type ] ) ? $post_templates[ $post_type ] :array();1400 $post_templates = $post_templates[ $post_type ] ?? array(); 1401 1401 1402 1402 /**
Note: See TracChangeset
for help on using the changeset viewer.