Make WordPress Core

Ticket #43682: 43682.diff

File 43682.diff, 1.8 KB (added by desrosj, 7 years ago)
  • src/wp-admin/async-upload.php

     
    9292if ( is_wp_error( $id ) ) {
    9393        echo '<div class="error-div error">
    9494        <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( __( '&#8220;%s&#8221; 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( __( '&#8220;%s&#8221; has failed to upload.' ), esc_html( $_FILES['async-upload']['name'] ) ) . '</strong><br />' .
    9698        esc_html( $id->get_error_message() ) . '</div>';
    9799        exit;
    98100}
  • src/wp-admin/includes/misc.php

     
    313313 * @since 4.9.0
    314314 * @access private
    315315 *
     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 *
    316320 * @param array|string $tree  List of file/folder paths, or filename.
    317321 * @param int          $level The aria-level for the current iteration.
    318322 * @param int          $size  The aria-setsize for the current iteration.
     
    321325function wp_print_theme_file_tree( $tree, $level = 2, $size = 1, $index = 1 ) {
    322326        global $relative_file, $stylesheet;
    323327
     328        echo $relative_file;
    324329        if ( is_array( $tree ) ) {
    325330                $index = 0;
    326331                $size  = count( $tree );