diff --git a/wp-admin/theme-editor.php b/wp-admin/theme-editor.php index 84a48a9a6..048649c3a 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 56164decf..3a56ddca3 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. *