<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[36984] trunk/src/wp-includes: TinyMCE, inline link:</title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta" style="font-size: 105%">
<dt style="float: left; width: 6em; font-weight: bold">Revision</dt> <dd><a style="font-weight: bold" href="https://core.trac.wordpress.org/changeset/36984">36984</a><script type="application/ld+json">{"@context":"http://schema.org","@type":"EmailMessage","description":"Review this Commit","action":{"@type":"ViewAction","url":"https://core.trac.wordpress.org/changeset/36984","name":"Review Commit"}}</script></dd>
<dt style="float: left; width: 6em; font-weight: bold">Author</dt> <dd>azaozz</dd>
<dt style="float: left; width: 6em; font-weight: bold">Date</dt> <dd>2016-03-14 00:52:20 +0000 (Mon, 14 Mar 2016)</dd>
</dl>

<pre style='padding-left: 1em; margin: 2em 0; border-left: 2px solid #ccc; line-height: 1.25; font-size: 105%; font-family: sans-serif'>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 <a href="https://core.trac.wordpress.org/ticket/33301">#33301</a>.</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunksrcwpincludesjstinymcepluginswplinkpluginjs">trunk/src/wp-includes/js/tinymce/plugins/wplink/plugin.js</a></li>
<li><a href="#trunksrcwpincludesjswplinkjs">trunk/src/wp-includes/js/wplink.js</a></li>
<li><a href="#trunksrcwpincludesscriptloaderphp">trunk/src/wp-includes/script-loader.php</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunksrcwpincludesjstinymcepluginswplinkpluginjs"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/wp-includes/js/tinymce/plugins/wplink/plugin.js</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/js/tinymce/plugins/wplink/plugin.js 2016-03-13 22:55:01 UTC (rev 36983)
+++ trunk/src/wp-includes/js/tinymce/plugins/wplink/plugin.js   2016-03-14 00:52:20 UTC (rev 36984)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -56,7 +56,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                renderHtml: function() {
</span><span class="cx" style="display: block; padding: 0 10px">                        return (
</span><span class="cx" style="display: block; padding: 0 10px">                                '<div id="' + this._id + '" class="wp-link-input">' +
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                        '<input type="text" value="" tabindex="-1" placeholder="' + tinymce.translate('Paste URL or type to search') + '" />' +
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                                 '<input type="text" value="" placeholder="' + tinymce.translate( 'Paste URL or type to search' ) + '" />' +
</ins><span class="cx" style="display: block; padding: 0 10px">                                         '<input type="text" style="display:none" value="" />' +
</span><span class="cx" style="display: block; padding: 0 10px">                                '</div>'
</span><span class="cx" style="display: block; padding: 0 10px">                        );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -235,6 +235,11 @@
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                        inputInstance.reset();
</span><span class="cx" style="display: block; padding: 0 10px">                        editor.nodeChanged();
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+
+                       // Audible confirmation message when a link has been inserted in the Editor.
+                       if ( typeof window.wp !== 'undefined' && window.wp.a11y && typeof window.wpLinkL10n !== 'undefined' ) {
+                               window.wp.a11y.speak( window.wpLinkL10n.linkInserted );
+                       }
</ins><span class="cx" style="display: block; padding: 0 10px">                 } );
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                editor.addCommand( 'wp_link_cancel', function() {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -371,11 +376,22 @@
</span><span class="cx" style="display: block; padding: 0 10px">                                                },
</span><span class="cx" style="display: block; padding: 0 10px">                                                focus: function( event, ui ) {
</span><span class="cx" style="display: block; padding: 0 10px">                                                        $input.attr( 'aria-activedescendant', 'mce-wp-autocomplete-' + ui.item.ID );
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                                                        /*
+                                                        * Don't empty the URL input field, when using the arrow keys to
+                                                        * highlight items. See api.jqueryui.com/autocomplete/#event-focus
+                                                        */
</ins><span class="cx" style="display: block; padding: 0 10px">                                                         event.preventDefault();
</span><span class="cx" style="display: block; padding: 0 10px">                                                },
</span><span class="cx" style="display: block; padding: 0 10px">                                                select: function( event, ui ) {
</span><span class="cx" style="display: block; padding: 0 10px">                                                        $input.val( ui.item.permalink );
</span><span class="cx" style="display: block; padding: 0 10px">                                                        $( element.firstChild.nextSibling ).val( ui.item.title );
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+
+                                                       if ( 9 === event.keyCode && typeof window.wp !== 'undefined' &&
+                                                               window.wp.a11y && typeof window.wpLinkL10n !== 'undefined' ) {
+                                                               // Audible confirmation message when a link has been selected.
+                                                               window.wp.a11y.speak( window.wpLinkL10n.linkSelected );
+                                                       }
+
</ins><span class="cx" style="display: block; padding: 0 10px">                                                         return false;
</span><span class="cx" style="display: block; padding: 0 10px">                                                },
</span><span class="cx" style="display: block; padding: 0 10px">                                                open: function() {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -413,13 +429,21 @@
</span><span class="cx" style="display: block; padding: 0 10px">                                                'aria-autocomplete': 'list',
</span><span class="cx" style="display: block; padding: 0 10px">                                                'aria-expanded': 'false',
</span><span class="cx" style="display: block; padding: 0 10px">                                                'aria-owns': $input.autocomplete( 'widget' ).attr( 'id' )
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                        }  )
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                                 } )
</ins><span class="cx" style="display: block; padding: 0 10px">                                         .on( 'focus', function() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                                $input.autocomplete( 'search' );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                                         var inputValue = $input.val();
+                                               /*
+                                                * Don't trigger a search if the URL field already has a link or is empty.
+                                                * Also, avoids screen readers announce `No search results`.
+                                                */
+                                               if ( inputValue && ! /^https?:/.test( inputValue ) ) {
+                                                       $input.autocomplete( 'search' );
+                                               }
</ins><span class="cx" style="display: block; padding: 0 10px">                                         } )
</span><span class="cx" style="display: block; padding: 0 10px">                                        .autocomplete( 'widget' )
</span><span class="cx" style="display: block; padding: 0 10px">                                                .addClass( 'wplink-autocomplete' )
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                                .attr( 'role', 'listbox' );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                                         .attr( 'role', 'listbox' )
+                                               .removeAttr( 'tabindex' ); // Remove the `tabindex=0` attribute added by jQuery UI.
</ins><span class="cx" style="display: block; padding: 0 10px">                                 }
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                                tinymce.$( input ).on( 'keydown', function( event ) {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -483,7 +507,20 @@
</span><span class="cx" style="display: block; padding: 0 10px">                                        var url = inputInstance.getURL() || null,
</span><span class="cx" style="display: block; padding: 0 10px">                                                text = inputInstance.getLinkText() || null;
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                        editor.focus(); // Needed for IE
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                                 /*
+                                        * Accessibility note: moving focus back to the editor confuses
+                                        * screen readers. They will announce again the Editor ARIA role
+                                        * `application` and the iframe `title` attribute.
+                                        *
+                                        * Unfortunately IE looses the selection when the editor iframe
+                                        * looses focus, so without returning focus to the editor, the code
+                                        * in the modal will not be able to get the selection, place the caret
+                                        * at the same location, etc.
+                                        */
+                                       if ( tinymce.Env.ie ) {
+                                               editor.focus(); // Needed for IE
+                                       }
+
</ins><span class="cx" style="display: block; padding: 0 10px">                                         window.wpLink.open( editor.id, url, text, linkNode );
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                                        editToolbar.tempHide = true;
</span></span></pre></div>
<a id="trunksrcwpincludesjswplinkjs"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/wp-includes/js/wplink.js</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/js/wplink.js        2016-03-13 22:55:01 UTC (rev 36983)
+++ trunk/src/wp-includes/js/wplink.js  2016-03-14 00:52:20 UTC (rev 36984)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1,7 +1,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px"> var wpLink;
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-( function( $, wpLinkL10n ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+( function( $, wpLinkL10n, wp ) {
</ins><span class="cx" style="display: block; padding: 0 10px">         var editor, correctedURL, linkNode,
</span><span class="cx" style="display: block; padding: 0 10px">                inputs = {},
</span><span class="cx" style="display: block; padding: 0 10px">                isTouch = ( 'ontouchend' in document );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -76,6 +76,10 @@
</span><span class="cx" style="display: block; padding: 0 10px">                                },
</span><span class="cx" style="display: block; padding: 0 10px">                                focus: function( event, ui ) {
</span><span class="cx" style="display: block; padding: 0 10px">                                        $input.attr( 'aria-activedescendant', 'mce-wp-autocomplete-' + ui.item.ID );
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                                        /*
+                                        * Don't empty the URL input field, when using the arrow keys to
+                                        * highlight items. See api.jqueryui.com/autocomplete/#event-focus
+                                        */
</ins><span class="cx" style="display: block; padding: 0 10px">                                         event.preventDefault();
</span><span class="cx" style="display: block; padding: 0 10px">                                },
</span><span class="cx" style="display: block; padding: 0 10px">                                select: function( event, ui ) {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -85,6 +89,9 @@
</span><span class="cx" style="display: block; padding: 0 10px">                                                inputs.text.val( ui.item.title );
</span><span class="cx" style="display: block; padding: 0 10px">                                        }
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                                        // Audible confirmation message when a link has been selected.
+                                       wp.a11y.speak( wpLinkL10n.linkSelected );
+
</ins><span class="cx" style="display: block; padding: 0 10px">                                         return false;
</span><span class="cx" style="display: block; padding: 0 10px">                                },
</span><span class="cx" style="display: block; padding: 0 10px">                                open: function() {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -117,15 +124,21 @@
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                        $input.attr( {
</span><span class="cx" style="display: block; padding: 0 10px">                                'aria-owns': $input.autocomplete( 'widget' ).attr( 'id' )
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                        }  )
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                 } )
</ins><span class="cx" style="display: block; padding: 0 10px">                         .on( 'focus', function() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                $input.autocomplete( 'search' );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                         var inputValue = $input.val();
+                               /*
+                                * Don't trigger a search if the URL field already has a link or is empty.
+                                * Also, avoids screen readers announce `No search results`.
+                                */
+                               if ( inputValue && ! /^https?:/.test( inputValue ) ) {
+                                       $input.autocomplete( 'search' );
+                               }
</ins><span class="cx" style="display: block; padding: 0 10px">                         } )
</span><span class="cx" style="display: block; padding: 0 10px">                        .autocomplete( 'widget' )
</span><span class="cx" style="display: block; padding: 0 10px">                                .addClass( 'wplink-autocomplete' )
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                .attr( 'role', 'listbox' );
-
-
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                         .attr( 'role', 'listbox' )
+                               .removeAttr( 'tabindex' ); // Remove the `tabindex=0` attribute added by jQuery UI.
</ins><span class="cx" style="display: block; padding: 0 10px">                 },
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                // If URL wasn't corrected last time and doesn't start with http:, https:, ? # or /, prepend http://
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -170,7 +183,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                                        editor = null;
</span><span class="cx" style="display: block; padding: 0 10px">                                }
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                if ( editor && window.tinymce.isIE && ! editor.windowManager.wplinkBookmark ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                         if ( editor && window.tinymce.isIE ) {
</ins><span class="cx" style="display: block; padding: 0 10px">                                         editor.windowManager.wplinkBookmark = editor.selection.getBookmark();
</span><span class="cx" style="display: block; padding: 0 10px">                                }
</span><span class="cx" style="display: block; padding: 0 10px">                        }
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -402,6 +415,9 @@
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                        wpLink.close();
</span><span class="cx" style="display: block; padding: 0 10px">                        textarea.focus();
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+
+                       // Audible confirmation message when a link has been inserted in the Editor.
+                       wp.a11y.speak( wpLinkL10n.linkInserted );
</ins><span class="cx" style="display: block; padding: 0 10px">                 },
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                mceUpdate: function() {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -450,6 +466,9 @@
</span><span class="cx" style="display: block; padding: 0 10px">                        wpLink.close( 'noReset' );
</span><span class="cx" style="display: block; padding: 0 10px">                        editor.focus();
</span><span class="cx" style="display: block; padding: 0 10px">                        editor.nodeChanged();
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+
+                       // Audible confirmation message when a link has been inserted in the Editor.
+                       wp.a11y.speak( wpLinkL10n.linkInserted );
</ins><span class="cx" style="display: block; padding: 0 10px">                 },
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                keydown: function( event ) {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -511,4 +530,4 @@
</span><span class="cx" style="display: block; padding: 0 10px">        };
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">        $( document ).ready( wpLink.init );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-})( jQuery, window.wpLinkL10n );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+})( jQuery, window.wpLinkL10n, window.wp );
</ins></span></pre></div>
<a id="trunksrcwpincludesscriptloaderphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/wp-includes/script-loader.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/script-loader.php   2016-03-13 22:55:01 UTC (rev 36983)
+++ trunk/src/wp-includes/script-loader.php     2016-03-14 00:52:20 UTC (rev 36984)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -204,7 +204,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">        $scripts->add( 'jquery-effects-transfer', "/wp-includes/js/jquery/ui/effect-transfer$dev_suffix.js", array('jquery-effects-core'), '1.11.4', 1 );
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">        $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 );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-        $scripts->add( 'jquery-ui-autocomplete', "/wp-includes/js/jquery/ui/autocomplete$dev_suffix.js", array('jquery-ui-menu'), '1.11.4', 1 );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $scripts->add( 'jquery-ui-autocomplete', "/wp-includes/js/jquery/ui/autocomplete$dev_suffix.js", array( 'jquery-ui-menu', 'wp-a11y' ), '1.11.4', 1 );
</ins><span class="cx" style="display: block; padding: 0 10px">         $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 );
</span><span class="cx" style="display: block; padding: 0 10px">        $scripts->add( 'jquery-ui-datepicker', "/wp-includes/js/jquery/ui/datepicker$dev_suffix.js", array('jquery-ui-core'), '1.11.4', 1 );
</span><span class="cx" style="display: block; padding: 0 10px">        $scripts->add( 'jquery-ui-dialog', "/wp-includes/js/jquery/ui/dialog$dev_suffix.js", array('jquery-ui-resizable', 'jquery-ui-draggable', 'jquery-ui-button', 'jquery-ui-position'), '1.11.4', 1 );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -226,10 +226,10 @@
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">        // Strings for 'jquery-ui-autocomplete' live region messages
</span><span class="cx" style="display: block; padding: 0 10px">        did_action( 'init' ) && $scripts->localize( 'jquery-ui-autocomplete', 'uiAutocompleteL10n', array(
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                        'noResults' => __( 'No search results.' ),
-                       /* translators: Number of results found when using jQuery UI Autocomplete */
-                       'oneResult' => __( '1 result found. Use up and down arrow keys to navigate.' ),
-                       'manyResults' => __( '%d results found. Use up and down arrow keys to navigate.' ),
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         'noResults' => __( 'No search results.' ),
+               /* translators: Number of results found when using jQuery UI Autocomplete */
+               'oneResult' => __( '1 result found. Use up and down arrow keys to navigate.' ),
+               'manyResults' => __( '%d results found. Use up and down arrow keys to navigate.' ),
</ins><span class="cx" style="display: block; padding: 0 10px">         ) );
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">        // deprecated, not used in core, most functionality is included in jQuery 1.3
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -252,13 +252,13 @@
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">        $scripts->add( 'thickbox', "/wp-includes/js/thickbox/thickbox.js", array('jquery'), '3.1-20121105', 1 );
</span><span class="cx" style="display: block; padding: 0 10px">        did_action( 'init' ) && $scripts->localize( 'thickbox', 'thickboxL10n', array(
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                        'next' => __('Next &gt;'),
-                       'prev' => __('&lt; Prev'),
-                       'image' => __('Image'),
-                       'of' => __('of'),
-                       'close' => __('Close'),
-                       'noiframes' => __('This feature requires inline frames. You have iframes disabled or your browser does not support them.'),
-                       'loadingAnimation' => includes_url('js/thickbox/loadingAnimation.gif'),
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         'next' => __('Next &gt;'),
+               'prev' => __('&lt; Prev'),
+               'image' => __('Image'),
+               'of' => __('of'),
+               'close' => __('Close'),
+               'noiframes' => __('This feature requires inline frames. You have iframes disabled or your browser does not support them.'),
+               'loadingAnimation' => includes_url('js/thickbox/loadingAnimation.gif'),
</ins><span class="cx" style="display: block; padding: 0 10px">         ) );
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">        $scripts->add( 'jcrop', "/wp-includes/js/jcrop/jquery.Jcrop.min.js", array('jquery'), '0.9.12');
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -401,13 +401,15 @@
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">        $scripts->add( 'admin-bar', "/wp-includes/js/admin-bar$suffix.js", array(), false, 1 );
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-        $scripts->add( 'wplink', "/wp-includes/js/wplink$suffix.js", array( 'jquery' ), false, 1 );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $scripts->add( 'wplink', "/wp-includes/js/wplink$suffix.js", array( 'jquery', 'wp-a11y' ), false, 1 );
</ins><span class="cx" style="display: block; padding: 0 10px">         did_action( 'init' ) && $scripts->localize( 'wplink', 'wpLinkL10n', array(
</span><span class="cx" style="display: block; padding: 0 10px">                'title' => __('Insert/edit link'),
</span><span class="cx" style="display: block; padding: 0 10px">                'update' => __('Update'),
</span><span class="cx" style="display: block; padding: 0 10px">                'save' => __('Add Link'),
</span><span class="cx" style="display: block; padding: 0 10px">                'noTitle' => __('(no title)'),
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                'noMatchesFound' => __('No results found.')
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         'noMatchesFound' => __('No results found.'),
+               'linkSelected' => __( 'Link selected.' ),
+               'linkInserted' => __( 'Link inserted.' ),
</ins><span class="cx" style="display: block; padding: 0 10px">         ) );
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">        $scripts->add( 'wpdialogs', "/wp-includes/js/wpdialog$suffix.js", array( 'jquery-ui-dialog' ), false, 1 );
</span></span></pre>
</div>
</div>

</body>
</html>