Indicate on themes.php when a theme is a child that requires a parent theme. fixes #17944.
git-svn-id: https://develop.svn.wordpress.org/trunk@21816 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
e40aee3913
commit
533217f3ba
@ -181,6 +181,11 @@ class WP_Themes_List_Table extends WP_List_Table {
|
||||
<div class="themedetaildiv hide-if-js">
|
||||
<p><strong><?php _e('Version: '); ?></strong><?php echo $version; ?></p>
|
||||
<p><?php echo $theme->display('Description'); ?></p>
|
||||
<?php if ( $theme->parent() ) {
|
||||
printf( ' <p class="howto">' . __( 'This <a href="%1$s">child theme</a> requires its parent theme, %2$s.' ) . '</p>',
|
||||
__( 'http://codex.wordpress.org/Child_Themes' ),
|
||||
$theme->parent()->display( 'Name' ) );
|
||||
} ?>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
@ -146,7 +146,14 @@ $customize_title = sprintf( __( 'Customize “%s”' ), $ct->display('Na
|
||||
<li><?php printf( __('By %s'), $ct->display('Author') ); ?></li>
|
||||
<li><?php printf( __('Version %s'), $ct->display('Version') ); ?></li>
|
||||
</ul>
|
||||
<p class="theme-description"><?php echo $ct->display('Description'); ?></p>
|
||||
<p class="theme-description"><?php
|
||||
echo $ct->display('Description');
|
||||
if ( $ct->parent() ) {
|
||||
printf( ' <p class="howto">' . __( 'This <a href="%1$s">child theme</a> requires its parent theme, %2$s.' ) . '</p>',
|
||||
__( 'http://codex.wordpress.org/Child_Themes' ),
|
||||
$ct->parent()->display( 'Name' ) );
|
||||
}
|
||||
?></p>
|
||||
<?php theme_update_available( $ct ); ?>
|
||||
</div>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user