Make WordPress Core

Changeset 22862


Ignore:
Timestamp:
11/27/2012 04:32:16 AM (12 years ago)
Author:
nacin
Message:

WP_Theme: If the parent theme is missing, instantiate a WP_Theme object anyway, so it can hold errors.

Fixes the installation of parent themes when installing a child theme from WordPress.org.

see #22515.
for the 3.4 branch.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.4/wp-includes/class-wp-theme.php

    r21714 r22862  
    254254                $this->errors = new WP_Error( 'theme_no_parent', sprintf( __( 'The parent theme is missing. Please install the "%s" parent theme.' ), $this->template ) );
    255255                $this->cache_add( 'theme', array( 'headers' => $this->headers, 'errors' => $this->errors, 'stylesheet' => $this->stylesheet, 'template' => $this->template ) );
     256                $this->parent = new WP_Theme( $this->template, $this->theme_root, $this );
    256257                return;
    257258            }
Note: See TracChangeset for help on using the changeset viewer.