Changeset 31188 for trunk/src/wp-includes/class-wp-theme.php
- Timestamp:
- 01/16/2015 01:05:52 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-theme.php
r31108 r31188 275 275 if ( $this->template != $this->stylesheet ) { 276 276 // If we are a parent, then there is a problem. Only two generations allowed! Cancel things out. 277 if ( is_a( $_child, 'WP_Theme' )&& $_child->template == $this->stylesheet ) {277 if ( $_child instanceof WP_Theme && $_child->template == $this->stylesheet ) { 278 278 $_child->parent = null; 279 279 $_child->errors = new WP_Error( 'theme_parent_invalid', sprintf( __( 'The "%s" theme is not a valid parent theme.' ), $_child->template ) );
Note: See TracChangeset
for help on using the changeset viewer.