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:
Andrew Nacin 2012-09-11 19:12:37 +00:00
parent e40aee3913
commit 533217f3ba
2 changed files with 13 additions and 1 deletions

View File

@ -181,6 +181,11 @@ class WP_Themes_List_Table extends WP_List_Table {
<div class="themedetaildiv hide-if-js"> <div class="themedetaildiv hide-if-js">
<p><strong><?php _e('Version: '); ?></strong><?php echo $version; ?></p> <p><strong><?php _e('Version: '); ?></strong><?php echo $version; ?></p>
<p><?php echo $theme->display('Description'); ?></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>
</div> </div>

View File

@ -146,7 +146,14 @@ $customize_title = sprintf( __( 'Customize &#8220;%s&#8221;' ), $ct->display('Na
<li><?php printf( __('By %s'), $ct->display('Author') ); ?></li> <li><?php printf( __('By %s'), $ct->display('Author') ); ?></li>
<li><?php printf( __('Version %s'), $ct->display('Version') ); ?></li> <li><?php printf( __('Version %s'), $ct->display('Version') ); ?></li>
</ul> </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 ); ?> <?php theme_update_available( $ct ); ?>
</div> </div>