Make WordPress Core

Changeset 21650


Ignore:
Timestamp:
08/28/2012 06:48:50 PM (12 years ago)
Author:
nacin
Message:

Remove paths to where theme files are located from theme details on themes.php. props lessbloat, see #17944.

File:
1 edited

Legend:

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

    r21311 r21650  
    182182                <p><strong><?php _e('Version: '); ?></strong><?php echo $version; ?></p>
    183183                <p><?php echo $theme->display('Description'); ?></p>
    184                 <?php if ( current_user_can( 'edit_themes' ) && $theme->parent() ) :
    185                     /* translators: 1: theme title, 2:  template dir, 3: stylesheet_dir, 4: theme title, 5: parent_theme */ ?>
    186                     <p><?php printf( __( 'The template files are located in <code>%2$s</code>. The stylesheet files are located in <code>%3$s</code>. <strong>%4$s</strong> uses templates from <strong>%5$s</strong>. Changes made to the templates will affect both themes.' ),
    187                         $title, str_replace( WP_CONTENT_DIR, '', $theme->get_template_directory() ), str_replace( WP_CONTENT_DIR, '', $theme->get_stylesheet_directory() ), $title, $theme->parent()->display('Name') ); ?></p>
    188                 <?php else :
    189                         /* translators: 1: theme title, 2:  template dir, 3: stylesheet_dir */ ?>
    190                     <p><?php printf( __( 'All of this theme&#8217;s files are located in <code>%2$s</code>.' ),
    191                         $title, str_replace( WP_CONTENT_DIR, '', $theme->get_template_directory() ), str_replace( WP_CONTENT_DIR, '', $theme->get_stylesheet_directory() ) ); ?></p>
    192                 <?php endif; ?>
    193184            </div>
    194185
Note: See TracChangeset for help on using the changeset viewer.