mirror of
git://develop.git.wordpress.org/
synced 2025-01-18 05:18:42 +01:00
A child theme with a missing parent might be is_child_theme() but not have a valid parent() object, so we need to check parent() too. see #20103.
git-svn-id: https://develop.svn.wordpress.org/trunk@20558 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
a22cdde6d2
commit
65099d16b6
@ -164,7 +164,7 @@ if ( $allowed_files ) :
|
||||
if ( $has_templates || $theme->is_child_theme() ) :
|
||||
?>
|
||||
<h3><?php _e('Templates'); ?></h3>
|
||||
<?php if ( $theme->is_child_theme() ) : ?>
|
||||
<?php if ( $theme->is_child_theme() && $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>
|
||||
<?php endif; ?>
|
||||
<ul>
|
||||
|
Loading…
x
Reference in New Issue
Block a user