equal
deleted
inserted
replaced
180 } |
180 } |
181 |
181 |
182 $content = esc_textarea( $content ); |
182 $content = esc_textarea( $content ); |
183 } |
183 } |
184 |
184 |
185 $file_description = get_file_description( $relative_file ); |
185 $file_show = array_search( $file, array_filter( $allowed_files ), true ); |
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 } |
|
191 ?> |
186 ?> |
192 <div class="wrap"> |
187 <div class="wrap"> |
193 <h1><?php echo esc_html( $title ); ?></h1> |
188 <h1><?php echo esc_html( $title ); ?></h1> |
194 |
189 |
195 <?php |
190 <?php |
233 |
228 |
234 <div class="fileedit-sub"> |
229 <div class="fileedit-sub"> |
235 <div class="alignleft"> |
230 <div class="alignleft"> |
236 <h2> |
231 <h2> |
237 <?php |
232 <?php |
238 echo $theme->display( 'Name' ); |
233 if ( wp_get_theme()->get( 'Name' ) === $theme->display( 'Name' ) ) { |
239 if ( $description ) { |
234 /* translators: %s: Theme name. */ |
240 echo ': ' . $description; |
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 </h2> |
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 </div> |
249 </div> |
245 <div class="alignright"> |
250 <div class="alignright"> |
246 <form action="theme-editor.php" method="get"> |
251 <form action="theme-editor.php" method="get"> |
247 <label for="theme" id="theme-plugin-editor-selector"><?php _e( 'Select theme to edit:' ); ?> </label> |
252 <label for="theme" id="theme-plugin-editor-selector"><?php _e( 'Select theme to edit:' ); ?> </label> |
248 <select name="theme" id="theme"> |
253 <select name="theme" id="theme"> |