Changeset 42156 for branches/4.9/src/wp-admin/theme-editor.php
- Timestamp:
- 11/11/2017 08:43:03 PM (7 years ago)
- Location:
- branches/4.9
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/4.9
-
branches/4.9/src/wp-admin/theme-editor.php
r42014 r42156 230 230 <div id="templateside"> 231 231 <h2 id="theme-files-label"><?php _e( 'Theme Files' ); ?></h2> 232 <?php233 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">
Note: See TracChangeset
for help on using the changeset viewer.