Make WordPress Core

Changeset 40650


Ignore:
Timestamp:
05/12/2017 12:49:14 PM (7 years ago)
Author:
joemcgill
Message:

Improve wording of the AYS warning when permanently deleting uploads, tags, posts.

This is a follow up on [40283], which cleans up the wording.

Props azaozz, swissspidy, ocean90.
Fixes #39712.

Location:
trunk/src/wp-includes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/media.php

    r40628 r40650  
    34983498        'trash'                  => _x( 'Trash', 'noun' ),
    34993499        'uploadedToThisPost'     => $post_type_object->labels->uploaded_to_this_item,
    3500         'warnDelete'             => __( "You are about to permanently delete this item.\nThis will remove it from your site.\n 'Cancel' to stop, 'OK' to delete." ),
    3501         'warnBulkDelete'         => __( "You are about to permanently delete these items.\nThis will remove them from your site.\n 'Cancel' to stop, 'OK' to delete." ),
     3500        'warnDelete'             => __( "You are about to permanently delete this item from your site.\nThis action cannot be undone.\n 'Cancel' to stop, 'OK' to delete." ),
     3501        'warnBulkDelete'         => __( "You are about to permanently delete these items from your site.\nThis action cannot be undone.\n 'Cancel' to stop, 'OK' to delete." ),
    35023502        'warnBulkTrash'          => __( "You are about to trash these items.\n  'Cancel' to stop, 'OK' to delete." ),
    35033503        'bulkSelect'             => __( 'Bulk Select' ),
     
    37463746                $srcs = array();
    37473747
    3748                 $shortcode_attrs = shortcode_parse_atts( $shortcode[3] ); 
     3748                $shortcode_attrs = shortcode_parse_atts( $shortcode[3] );
    37493749                if ( ! is_array( $shortcode_attrs ) ) {
    37503750                    $shortcode_attrs = array();
  • trunk/src/wp-includes/script-loader.php

    r40640 r40650  
    7878    $scripts->add( 'common', "/wp-admin/js/common$suffix.js", array('jquery', 'hoverIntent', 'utils'), false, 1 );
    7979    did_action( 'init' ) && $scripts->localize( 'common', 'commonL10n', array(
    80         'warnDelete'   => __( "You are about to permanently delete these items.\nThis will remove them from your site.\n 'Cancel' to stop, 'OK' to delete." ),
     80        'warnDelete'   => __( "You are about to permanently delete these items from your site.\nThis action cannot be undone.\n 'Cancel' to stop, 'OK' to delete." ),
    8181        'dismiss'      => __( 'Dismiss this notice.' ),
    8282        'collapseMenu' => __( 'Collapse Main menu' ),
Note: See TracChangeset for help on using the changeset viewer.