Make WordPress Core

Changeset 20589


Ignore:
Timestamp:
04/25/2012 05:34:19 PM (14 years ago)
Author:
nacin
Message:

Remove WP_Theme::is_child_theme() in favor of WP_Theme::parent(). see #20546.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/theme-editor.php

    r20560 r20589  
    214214
    215215        <div>
    216         <?php if ( is_child_theme() && ! $theme->is_child_theme() && $theme->get_template() == get_template() ) : ?>
     216        <?php if ( is_child_theme() && $theme->get_stylesheet() == get_template() ) : ?>
    217217            <p><?php if ( is_writeable( $file ) ) { ?><strong><?php _e( 'Caution:' ); ?></strong><?php } ?>
    218218            <?php _e( 'This is a file in your current parent theme.' ); ?></p>
  • trunk/wp-includes/class-wp-theme.php

    r20588 r20589  
    746746
    747747    /**
    748      * Whether a theme is a child theme.
    749      *
    750      * @since 3.4.0
    751      * @access public
    752      *
    753      * @return bool True if a theme is a child theme, false otherwise.
    754      */
    755     public function is_child_theme() {
    756         return $this->template !== $this->stylesheet;
    757     }
    758 
    759     /**
    760748     * Returns the absolute path to the directory of a theme's "stylesheet" files.
    761749     *
Note: See TracChangeset for help on using the changeset viewer.