WordPress.org

Make WordPress Core

Ticket #19689: dismiss_context.patch

File dismiss_context.patch, 3.3 KB (added by pavelevap, 3 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', 'Cancel upload' ) . '</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

     
    11941194                } 
    11951195                $notice .= "<p class='browser-update-nag{$browser_nag_class}'>{$msg}</p>"; 
    11961196                $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>'; 
    1197                 $notice .= '<p class="hide-if-no-js"><a href="" class="dismiss">' . __( 'Dismiss' ) . '</a></p>'; 
     1197                $notice .= '<p class="hide-if-no-js"><a href="" class="dismiss">' . _x( 'Dismiss', 'Close info window' ) . '</a></p>'; 
    11981198                $notice .= '<div class="clear"></div>'; 
    11991199        } 
    12001200 
     
    12861286        ?> 
    12871287        <div id="welcome-panel" class="<?php echo esc_attr( $classes ); ?>"> 
    12881288        <?php wp_nonce_field( 'welcome-panel-nonce', 'welcomepanelnonce', false ); ?> 
    1289         <a class="welcome-panel-close" href="<?php echo esc_url( admin_url( '?welcome=0' ) ); ?>"><?php _e('Dismiss'); ?></a> 
     1289        <a class="welcome-panel-close" href="<?php echo esc_url( admin_url( '?welcome=0' ) ); ?>"><?php _ex( 'Dismiss', 'Close info window' ); ?></a> 
    12901290        <div class="wp-badge"><?php printf( __( 'Version %s' ), $display_version ); ?></div> 
    12911291 
    12921292        <div class="welcome-panel-content"> 
  • wp-includes/script-loader.php

     
    9898 
    9999        $scripts->add( 'wp-pointer', "/wp-includes/js/wp-pointer$suffix.js", array( 'jquery-ui-widget', 'jquery-ui-position' ), '20111129a', 1 ); 
    100100        $scripts->localize( 'wp-pointer', 'wpPointerL10n', array( 
    101                 'dismiss' => __('Dismiss'), 
     101                'dismiss' => _x( 'Dismiss', 'Close info window' ), 
    102102        ) ); 
    103103 
    104104        $scripts->add( 'autosave', "/wp-includes/js/autosave$suffix.js", array('schedule', 'wp-ajax-response'), '20111129', 1 ); 
     
    207207                'security_error' => __('Security error.'), 
    208208                'file_cancelled' => __('File canceled.'), 
    209209                'upload_stopped' => __('Upload stopped.'), 
    210                 'dismiss' => __('Dismiss'), 
     210                'dismiss' => _x( 'Dismiss', 'Cancel upload' ), 
    211211                'crunching' => __('Crunching&hellip;'), 
    212212                'deleted' => __('moved to the trash.'), 
    213213                'error_uploading' => __('&#8220;%s&#8221; has failed to upload.')