Changeset 20589
- Timestamp:
- 04/25/2012 05:34:19 PM (14 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
-
wp-admin/theme-editor.php (modified) (1 diff)
-
wp-includes/class-wp-theme.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/theme-editor.php
r20560 r20589 214 214 215 215 <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() ) : ?> 217 217 <p><?php if ( is_writeable( $file ) ) { ?><strong><?php _e( 'Caution:' ); ?></strong><?php } ?> 218 218 <?php _e( 'This is a file in your current parent theme.' ); ?></p> -
trunk/wp-includes/class-wp-theme.php
r20588 r20589 746 746 747 747 /** 748 * Whether a theme is a child theme.749 *750 * @since 3.4.0751 * @access public752 *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 /**760 748 * Returns the absolute path to the directory of a theme's "stylesheet" files. 761 749 *
Note: See TracChangeset
for help on using the changeset viewer.