WordPress.org

Make WordPress Core

Changeset 21816


Ignore:
Timestamp:
09/11/2012 07:12:37 PM (8 years ago)
Author:
nacin
Message:

Indicate on themes.php when a theme is a child that requires a parent theme. fixes #17944.

Location:
trunk/wp-admin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/class-wp-themes-list-table.php

    r21768 r21816  
    182182                <p><strong><?php _e('Version: '); ?></strong><?php echo $version; ?></p>
    183183                <p><?php echo $theme->display('Description'); ?></p>
     184                <?php if ( $theme->parent() ) {
     185                    printf( ' <p class="howto">' . __( 'This <a href="%1$s">child theme</a> requires its parent theme, %2$s.' ) . '</p>',
     186                        __( 'http://codex.wordpress.org/Child_Themes' ),
     187                        $theme->parent()->display( 'Name' ) );
     188                } ?>
    184189            </div>
    185190
  • trunk/wp-admin/themes.php

    r21131 r21816  
    147147            <li><?php printf( __('Version %s'), $ct->display('Version') ); ?></li>
    148148        </ul>
    149         <p class="theme-description"><?php echo $ct->display('Description'); ?></p>
     149        <p class="theme-description"><?php
     150            echo $ct->display('Description');
     151            if ( $ct->parent() ) {
     152                printf( ' <p class="howto">' . __( 'This <a href="%1$s">child theme</a> requires its parent theme, %2$s.' ) . '</p>',
     153                    __( 'http://codex.wordpress.org/Child_Themes' ),
     154                    $ct->parent()->display( 'Name' ) );
     155            }
     156        ?></p>
    150157        <?php theme_update_available( $ct ); ?>
    151158    </div>
Note: See TracChangeset for help on using the changeset viewer.