diff --git src/wp-admin/css/common.css src/wp-admin/css/common.css
index 038c6c8280..0517e46bbc 100644
|
|
|
img { |
| 3240 | 3240 | margin: 4px 0; |
| 3241 | 3241 | } |
| 3242 | 3242 | |
| 3243 | | #templateside li a, |
| | 3243 | #templateside li:not(.howto) a, |
| 3244 | 3244 | .theme-editor-php .highlight { |
| 3245 | 3245 | display: block; |
| 3246 | 3246 | padding: 3px 0 3px 12px; |
| 3247 | 3247 | text-decoration: none; |
| 3248 | 3248 | } |
| 3249 | 3249 | |
| 3250 | | #templateside li > a:first-of-type { |
| | 3250 | #templateside li:not(.howto) > a:first-of-type { |
| 3251 | 3251 | padding-top: 0; |
| 3252 | 3252 | } |
| 3253 | 3253 | |
| | 3254 | #templateside li.howto { |
| | 3255 | padding: 3px 12px 12px 12px; |
| | 3256 | } |
| | 3257 | |
| 3254 | 3258 | .theme-editor-php .highlight { |
| 3255 | 3259 | margin: -3px 3px -3px -12px; |
| 3256 | 3260 | } |
| … |
… |
img { |
| 3775 | 3779 | margin: 0; |
| 3776 | 3780 | } |
| 3777 | 3781 | |
| 3778 | | #templateside li a { |
| | 3782 | #templateside li:not(.howto) a { |
| 3779 | 3783 | display: block; |
| 3780 | 3784 | padding: 5px; |
| 3781 | 3785 | } |
| | 3786 | #templateside li.howto { |
| | 3787 | padding: 12px; |
| | 3788 | } |
| 3782 | 3789 | |
| 3783 | 3790 | #templateside .highlight { |
| 3784 | 3791 | padding: 5px; |
diff --git src/wp-admin/theme-editor.php src/wp-admin/theme-editor.php
index e31748d2c5..22c201e01e 100644
|
|
|
if ( $theme->errors() ) |
| 229 | 229 | ?> |
| 230 | 230 | <div id="templateside"> |
| 231 | 231 | <h2 id="theme-files-label"><?php _e( 'Theme Files' ); ?></h2> |
| 232 | | <?php |
| 233 | | if ( $has_templates || $theme->parent() ) : |
| 234 | | if ( $theme->parent() ) { |
| 235 | | /* translators: %s: link to edit parent theme */ |
| 236 | | echo '<p class="howto">' . sprintf( __( 'This child theme inherits templates from a parent theme, %s.' ), |
| 237 | | sprintf( '<a href="%s">%s</a>', |
| 238 | | self_admin_url( 'theme-editor.php?theme=' . urlencode( $theme->get_template() ) ), |
| 239 | | $theme->parent()->display( 'Name' ) |
| 240 | | ) |
| 241 | | ) . "</p>\n"; |
| 242 | | } |
| 243 | | endif; |
| 244 | | ?> |
| 245 | 232 | <ul role="tree" aria-labelledby="theme-files-label"> |
| | 233 | <?php if ( ( $has_templates || $theme->parent() ) && $theme->parent() ) : ?> |
| | 234 | <li class="howto"> |
| | 235 | <?php |
| | 236 | /* translators: %s: link to edit parent theme */ |
| | 237 | echo sprintf( __( 'This child theme inherits templates from a parent theme, %s.' ), |
| | 238 | sprintf( '<a href="%s">%s</a>', |
| | 239 | self_admin_url( 'theme-editor.php?theme=' . urlencode( $theme->get_template() ) ), |
| | 240 | $theme->parent()->display( 'Name' ) |
| | 241 | ) |
| | 242 | ); |
| | 243 | ?> |
| | 244 | </li> |
| | 245 | <?php endif; ?> |
| 246 | 246 | <li role="treeitem" tabindex="-1" aria-expanded="true" aria-level="1" aria-posinset="1" aria-setsize="1"> |
| 247 | 247 | <ul role="group"> |
| 248 | 248 | <?php wp_print_theme_file_tree( wp_make_theme_file_tree( $allowed_files ) ); ?> |