Make WordPress Core


Ignore:
Timestamp:
03/14/2016 12:52:20 AM (8 years ago)
Author:
azaozz
Message:

TinyMCE, inline link:

  • Add audible confirmation when a link has been selected or inserted in the editor for both the inline dialog and the modal.
  • Do not auto-search when the URL field is empty or already contains an URL.
  • Remove a few redundant tabindex.

Props afercia, azaozz.
See #33301.

File:
1 edited

Legend:

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

    r36964 r36984  
    205205
    206206    $scripts->add( 'jquery-ui-accordion', "/wp-includes/js/jquery/ui/accordion$dev_suffix.js", array('jquery-ui-core', 'jquery-ui-widget'), '1.11.4', 1 );
    207     $scripts->add( 'jquery-ui-autocomplete', "/wp-includes/js/jquery/ui/autocomplete$dev_suffix.js", array('jquery-ui-menu'), '1.11.4', 1 );
     207    $scripts->add( 'jquery-ui-autocomplete', "/wp-includes/js/jquery/ui/autocomplete$dev_suffix.js", array( 'jquery-ui-menu', 'wp-a11y' ), '1.11.4', 1 );
    208208    $scripts->add( 'jquery-ui-button', "/wp-includes/js/jquery/ui/button$dev_suffix.js", array('jquery-ui-core', 'jquery-ui-widget'), '1.11.4', 1 );
    209209    $scripts->add( 'jquery-ui-datepicker', "/wp-includes/js/jquery/ui/datepicker$dev_suffix.js", array('jquery-ui-core'), '1.11.4', 1 );
     
    227227    // Strings for 'jquery-ui-autocomplete' live region messages
    228228    did_action( 'init' ) && $scripts->localize( 'jquery-ui-autocomplete', 'uiAutocompleteL10n', array(
    229             'noResults' => __( 'No search results.' ),
    230             /* translators: Number of results found when using jQuery UI Autocomplete */
    231             'oneResult' => __( '1 result found. Use up and down arrow keys to navigate.' ),
    232             'manyResults' => __( '%d results found. Use up and down arrow keys to navigate.' ),
     229        'noResults' => __( 'No search results.' ),
     230        /* translators: Number of results found when using jQuery UI Autocomplete */
     231        'oneResult' => __( '1 result found. Use up and down arrow keys to navigate.' ),
     232        'manyResults' => __( '%d results found. Use up and down arrow keys to navigate.' ),
    233233    ) );
    234234
     
    253253    $scripts->add( 'thickbox', "/wp-includes/js/thickbox/thickbox.js", array('jquery'), '3.1-20121105', 1 );
    254254    did_action( 'init' ) && $scripts->localize( 'thickbox', 'thickboxL10n', array(
    255             'next' => __('Next >'),
    256             'prev' => __('< Prev'),
    257             'image' => __('Image'),
    258             'of' => __('of'),
    259             'close' => __('Close'),
    260             'noiframes' => __('This feature requires inline frames. You have iframes disabled or your browser does not support them.'),
    261             'loadingAnimation' => includes_url('js/thickbox/loadingAnimation.gif'),
     255        'next' => __('Next >'),
     256        'prev' => __('< Prev'),
     257        'image' => __('Image'),
     258        'of' => __('of'),
     259        'close' => __('Close'),
     260        'noiframes' => __('This feature requires inline frames. You have iframes disabled or your browser does not support them.'),
     261        'loadingAnimation' => includes_url('js/thickbox/loadingAnimation.gif'),
    262262    ) );
    263263
     
    402402    $scripts->add( 'admin-bar', "/wp-includes/js/admin-bar$suffix.js", array(), false, 1 );
    403403
    404     $scripts->add( 'wplink', "/wp-includes/js/wplink$suffix.js", array( 'jquery' ), false, 1 );
     404    $scripts->add( 'wplink', "/wp-includes/js/wplink$suffix.js", array( 'jquery', 'wp-a11y' ), false, 1 );
    405405    did_action( 'init' ) && $scripts->localize( 'wplink', 'wpLinkL10n', array(
    406406        'title' => __('Insert/edit link'),
     
    408408        'save' => __('Add Link'),
    409409        'noTitle' => __('(no title)'),
    410         'noMatchesFound' => __('No results found.')
     410        'noMatchesFound' => __('No results found.'),
     411        'linkSelected' => __( 'Link selected.' ),
     412        'linkInserted' => __( 'Link inserted.' ),
    411413    ) );
    412414
Note: See TracChangeset for help on using the changeset viewer.