Ticket #43682: 43682.diff
| File 43682.diff, 1.8 KB (added by , 7 years ago) |
|---|
-
src/wp-admin/async-upload.php
92 92 if ( is_wp_error( $id ) ) { 93 93 echo '<div class="error-div error"> 94 94 <button type="button" class="dismiss button-link" onclick="jQuery(this).parents(\'div.media-item\').slideUp(200, function(){jQuery(this).remove();});">' . __( 'Dismiss' ) . '</button> 95 <strong>' . sprintf( __( '“%s” has failed to upload.' ), esc_html( $_FILES['async-upload']['name'] ) ) . '</strong><br />' . 95 <strong>' . 96 /* translators: %s: Name of the file that was failed to upload. */ 97 sprintf( __( '“%s” has failed to upload.' ), esc_html( $_FILES['async-upload']['name'] ) ) . '</strong><br />' . 96 98 esc_html( $id->get_error_message() ) . '</div>'; 97 99 exit; 98 100 } -
src/wp-admin/includes/misc.php
313 313 * @since 4.9.0 314 314 * @access private 315 315 * 316 * @global string $relative_file Name of the file being edited relative to the 317 * theme directory. 318 * @global string $stylesheet The stylesheet name of the theme being edited. 319 * 316 320 * @param array|string $tree List of file/folder paths, or filename. 317 321 * @param int $level The aria-level for the current iteration. 318 322 * @param int $size The aria-setsize for the current iteration. … … 321 325 function wp_print_theme_file_tree( $tree, $level = 2, $size = 1, $index = 1 ) { 322 326 global $relative_file, $stylesheet; 323 327 328 echo $relative_file; 324 329 if ( is_array( $tree ) ) { 325 330 $index = 0; 326 331 $size = count( $tree );