WordPress.org

Make WordPress Core

Ticket #44360: 44360.async-upload.php-2.diff

File 44360.async-upload.php-2.diff, 886 bytes (added by subrataemfluence, 13 months ago)

Corrected grammar error

  • async-upload.php

    diff --git src/wp-admin/async-upload.php b/async-upload.php
    index cf4670b..0efa57b 100755
    old new $id = media_handle_upload( 'async-upload', $post_id ); 
    9191if ( is_wp_error( $id ) ) {
    9292        echo '<div class="error-div error">
    9393        <button type="button" class="dismiss button-link" onclick="jQuery(this).parents(\'div.media-item\').slideUp(200, function(){jQuery(this).remove();});">' . __( 'Dismiss' ) . '</button>
    94         <strong>' . sprintf( __( '&#8220;%s&#8221; has failed to upload.' ), esc_html( $_FILES['async-upload']['name'] ) ) . '</strong><br />' .
     94        <strong>' .
     95                /* translators: %s: Name of the file that has failed to upload. */
     96                sprintf( __( '&#8220;%s&#8221; has failed to upload.' ), esc_html( $_FILES['async-upload']['name'] ) ) . '</strong><br />' .
    9597        esc_html( $id->get_error_message() ) . '</div>';
    9698        exit;
    9799}