Changeset 59884 for trunk/src/wp-admin/theme-editor.php
- Timestamp:
- 02/27/2025 11:02:47 PM (17 months ago)
- File:
-
- 1 edited
-
trunk/src/wp-admin/theme-editor.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/theme-editor.php
r58069 r59884 183 183 } 184 184 185 $file_description = get_file_description( $relative_file ); 186 $file_show = array_search( $file, array_filter( $allowed_files ), true ); 187 $description = esc_html( $file_description ); 188 if ( $file_description !== $file_show ) { 189 $description .= ' <span>(' . esc_html( $file_show ) . ')</span>'; 190 } 185 $file_show = array_search( $file, array_filter( $allowed_files ), true ); 191 186 ?> 192 187 <div class="wrap"> … … 236 231 <h2> 237 232 <?php 238 echo $theme->display( 'Name' ); 239 if ( $description ) { 240 echo ': ' . $description; 233 if ( wp_get_theme()->get( 'Name' ) === $theme->display( 'Name' ) ) { 234 /* translators: %s: Theme name. */ 235 printf( __( 'Editing %s (active)' ), '<strong>' . $theme->display( 'Name' ) . '</strong>' ); 236 } else { 237 /* translators: %s: Theme name. */ 238 printf( __( 'Editing %s (inactive)' ), '<strong>' . $theme->display( 'Name' ) . '</strong>' ); 241 239 } 242 240 ?> 243 241 </h2> 242 <?php 243 printf( 244 /* translators: %s: File path. */ 245 ' <span><strong>' . __( 'File: %s' ) . '</strong></span>', 246 esc_html( $file_show ) 247 ); 248 ?> 244 249 </div> 245 250 <div class="alignright">
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)