From b7101b038fbd3062c21cf9f1ac87e12419b7b0ce Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Wed, 25 Apr 2012 17:34:19 +0000 Subject: [PATCH] Remove WP_Theme::is_child_theme() in favor of WP_Theme::parent(). see #20546. git-svn-id: https://develop.svn.wordpress.org/trunk@20589 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/theme-editor.php | 2 +- wp-includes/class-wp-theme.php | 12 ------------ 2 files changed, 1 insertion(+), 13 deletions(-) diff --git a/wp-admin/theme-editor.php b/wp-admin/theme-editor.php index 84a48a9a6f..048649c3ad 100644 --- a/wp-admin/theme-editor.php +++ b/wp-admin/theme-editor.php @@ -213,7 +213,7 @@ else : ?>
- is_child_theme() && $theme->get_template() == get_template() ) : ?> + get_stylesheet() == get_template() ) : ?>

diff --git a/wp-includes/class-wp-theme.php b/wp-includes/class-wp-theme.php index 56164decfb..3a56ddca37 100644 --- a/wp-includes/class-wp-theme.php +++ b/wp-includes/class-wp-theme.php @@ -744,18 +744,6 @@ final class WP_Theme implements ArrayAccess { return $this->template; } - /** - * Whether a theme is a child theme. - * - * @since 3.4.0 - * @access public - * - * @return bool True if a theme is a child theme, false otherwise. - */ - public function is_child_theme() { - return $this->template !== $this->stylesheet; - } - /** * Returns the absolute path to the directory of a theme's "stylesheet" files. *