mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-23 00:31:28 +01:00
Adjust [20557] and check only parent(), as it is more semantic. We don't care if the theme considers itself to be a child theme, we care if it has a valid parent. see #20103.
git-svn-id: http://svn.automattic.com/wordpress/trunk@20559 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
a5a13979bd
commit
d62b91f228
@ -161,10 +161,10 @@ foreach ( wp_get_themes( array( 'errors' => null ) ) as $a_stylesheet => $a_them
|
|||||||
<div id="templateside">
|
<div id="templateside">
|
||||||
<?php
|
<?php
|
||||||
if ( $allowed_files ) :
|
if ( $allowed_files ) :
|
||||||
if ( $has_templates || $theme->is_child_theme() ) :
|
if ( $has_templates || $theme->parent() ) :
|
||||||
?>
|
?>
|
||||||
<h3><?php _e('Templates'); ?></h3>
|
<h3><?php _e('Templates'); ?></h3>
|
||||||
<?php if ( $theme->is_child_theme() && $theme->parent() ) : ?>
|
<?php if ( $theme->parent() ) : ?>
|
||||||
<p class="howto"><?php printf( __( 'This child theme inherits templates from a parent theme, %s.' ), '<a href="' . self_admin_url('theme-editor.php?theme=' . urlencode( $theme->get_template() ) ) . '">' . $theme->parent()->display('Name') . '</a>' ); ?></p>
|
<p class="howto"><?php printf( __( 'This child theme inherits templates from a parent theme, %s.' ), '<a href="' . self_admin_url('theme-editor.php?theme=' . urlencode( $theme->get_template() ) ) . '">' . $theme->parent()->display('Name') . '</a>' ); ?></p>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<ul>
|
<ul>
|
||||||
|
Loading…
Reference in New Issue
Block a user