WordPress.org

Make WordPress Core

Ticket #19689: 19689.patch

File 19689.patch, 3.3 KB (added by SergeyBiryukov, 2 years ago)
  • wp-admin/async-upload.php

     
    5252$id = media_handle_upload('async-upload', $_REQUEST['post_id']); 
    5353if ( is_wp_error($id) ) { 
    5454        echo '<div class="error-div"> 
    55         <a class="dismiss" href="#" onclick="jQuery(this).parents(\'div.media-item\').slideUp(200, function(){jQuery(this).remove();});">' . __('Dismiss') . '</a> 
     55        <a class="dismiss" href="#" onclick="jQuery(this).parents(\'div.media-item\').slideUp(200, function(){jQuery(this).remove();});">' . _x( 'Dismiss', 'Close/remove UI item' ) . '</a> 
    5656        <strong>' . sprintf(__('&#8220;%s&#8221; has failed to upload due to an error'), esc_html($_FILES['async-upload']['name']) ) . '</strong><br />' . 
    5757        esc_html($id->get_error_message()) . '</div>'; 
    5858        exit; 
  • wp-admin/includes/dashboard.php

     
    11591159                } 
    11601160                $notice .= "<p class='browser-update-nag{$browser_nag_class}'>{$msg}</p>"; 
    11611161                $notice .= '<p>' . sprintf( __( '<a href="%1$s" class="update-browser-link">Update %2$s</a> or learn how to <a href="%3$s" class="browse-happy-link">browse happy</a>' ), esc_attr( $response['update_url'] ), esc_html( $response['name'] ), 'http://browsehappy.com/' ) . '</p>'; 
    1162                 $notice .= '<p class="hide-if-no-js"><a href="" class="dismiss">' . __( 'Dismiss' ) . '</a></p>'; 
     1162                $notice .= '<p class="hide-if-no-js"><a href="" class="dismiss">' . _x( 'Dismiss', 'Hide info window' ) . '</a></p>'; 
    11631163                $notice .= '<div class="clear"></div>'; 
    11641164        } 
    11651165 
     
    12511251        ?> 
    12521252        <div id="welcome-panel" class="<?php echo esc_attr( $classes ); ?>"> 
    12531253        <?php wp_nonce_field( 'welcome-panel-nonce', 'welcomepanelnonce', false ); ?> 
    1254         <a class="welcome-panel-close" href="<?php echo esc_url( admin_url( '?welcome=0' ) ); ?>"><?php _e('Dismiss'); ?></a> 
     1254        <a class="welcome-panel-close" href="<?php echo esc_url( admin_url( '?welcome=0' ) ); ?>"><?php _ex( 'Dismiss', 'Hide info window' ); ?></a> 
    12551255        <div class="wp-badge"><?php printf( __( 'Version %s' ), $display_version ); ?></div> 
    12561256 
    12571257        <div class="welcome-panel-content"> 
  • wp-includes/script-loader.php

     
    100100 
    101101        $scripts->add( 'wp-pointer', "/wp-includes/js/wp-pointer$suffix.js", array( 'jquery-ui-widget', 'jquery-ui-position' ), '20111129a', 1 ); 
    102102        $scripts->localize( 'wp-pointer', 'wpPointerL10n', array( 
    103                 'dismiss' => __('Dismiss'), 
     103                'dismiss' => _x( 'Dismiss', 'Close/remove UI item' ), 
    104104        ) ); 
    105105 
    106106        $scripts->add( 'autosave', "/wp-includes/js/autosave$suffix.js", array('schedule', 'wp-ajax-response'), false, 1 ); 
     
    211211                'security_error' => __('Security error.'), 
    212212                'file_cancelled' => __('File canceled.'), 
    213213                'upload_stopped' => __('Upload stopped.'), 
    214                 'dismiss' => __('Dismiss'), 
     214                'dismiss' => _x( 'Dismiss', 'Close/remove UI item' ), 
    215215                'crunching' => __('Crunching&hellip;'), 
    216216                'deleted' => __('moved to the trash.'), 
    217217                'error_uploading' => __('&#8220;%s&#8221; has failed to upload.')