<!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>[50420] trunk/src: External Libraries: Further fix jQuery deprecations in WordPress core.</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 { white-space: pre-line; 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/50420">50420</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/50420","name":"Review Commit"}}</script></dd>
<dt style="float: left; width: 6em; font-weight: bold">Author</dt> <dd>SergeyBiryukov</dd>
<dt style="float: left; width: 6em; font-weight: bold">Date</dt> <dd>2021-02-23 19:43:23 +0000 (Tue, 23 Feb 2021)</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'>External Libraries: Further fix jQuery deprecations in WordPress core.
This includes many minor adjustments to a wide array of core files to replace shorthands with full declarations.
Follow-up to <a href="https://core.trac.wordpress.org/changeset/50001">[50001]</a>, <a href="https://core.trac.wordpress.org/changeset/50270">[50270]</a>, <a href="https://core.trac.wordpress.org/changeset/50367">[50367]</a>.
Props Clorith, hellofromTonya, peterwilsoncc, adamsilverstein, aristath.
See <a href="https://core.trac.wordpress.org/ticket/51812">#51812</a>.</pre>
<h3>Modified Paths</h3>
<ul>
<li><a href="#trunksrcjs_enqueuesadminauthappjs">trunk/src/js/_enqueues/admin/auth-app.js</a></li>
<li><a href="#trunksrcjs_enqueuesadmincommonjs">trunk/src/js/_enqueues/admin/common.js</a></li>
<li><a href="#trunksrcjs_enqueuesadmincustombackgroundjs">trunk/src/js/_enqueues/admin/custom-background.js</a></li>
<li><a href="#trunksrcjs_enqueuesadmincustomheaderjs">trunk/src/js/_enqueues/admin/custom-header.js</a></li>
<li><a href="#trunksrcjs_enqueuesadmineditcommentsjs">trunk/src/js/_enqueues/admin/edit-comments.js</a></li>
<li><a href="#trunksrcjs_enqueuesadminlinkjs">trunk/src/js/_enqueues/admin/link.js</a></li>
<li><a href="#trunksrcjs_enqueuesadminmediajs">trunk/src/js/_enqueues/admin/media.js</a></li>
<li><a href="#trunksrcjs_enqueuesadminplugininstalljs">trunk/src/js/_enqueues/admin/plugin-install.js</a></li>
<li><a href="#trunksrcjs_enqueuesadminpostjs">trunk/src/js/_enqueues/admin/post.js</a></li>
<li><a href="#trunksrcjs_enqueuesadminpostboxjs">trunk/src/js/_enqueues/admin/postbox.js</a></li>
<li><a href="#trunksrcjs_enqueuesadminprivacytoolsjs">trunk/src/js/_enqueues/admin/privacy-tools.js</a></li>
<li><a href="#trunksrcjs_enqueuesadmintagsboxjs">trunk/src/js/_enqueues/admin/tags-box.js</a></li>
<li><a href="#trunksrcjs_enqueuesadminuserprofilejs">trunk/src/js/_enqueues/admin/user-profile.js</a></li>
<li><a href="#trunksrcjs_enqueuesadminwidgetsjs">trunk/src/js/_enqueues/admin/widgets.js</a></li>
<li><a href="#trunksrcjs_enqueuesdeprecatedmediagalleryjs">trunk/src/js/_enqueues/deprecated/media-gallery.js</a></li>
<li><a href="#trunksrcjs_enqueueslibajaxresponsejs">trunk/src/js/_enqueues/lib/ajax-response.js</a></li>
<li><a href="#trunksrcjs_enqueueslibcolorpickerjs">trunk/src/js/_enqueues/lib/color-picker.js</a></li>
<li><a href="#trunksrcjs_enqueueslibgalleryjs">trunk/src/js/_enqueues/lib/gallery.js</a></li>
<li><a href="#trunksrcjs_enqueueslibimageeditjs">trunk/src/js/_enqueues/lib/image-edit.js</a></li>
<li><a href="#trunksrcjs_enqueuesliblanguagechooserjs">trunk/src/js/_enqueues/lib/language-chooser.js</a></li>
<li><a href="#trunksrcjs_enqueuesliblinkjs">trunk/src/js/_enqueues/lib/link.js</a></li>
<li><a href="#trunksrcjs_enqueuesliblistsjs">trunk/src/js/_enqueues/lib/lists.js</a></li>
<li><a href="#trunksrcjs_enqueueslibnavmenujs">trunk/src/js/_enqueues/lib/nav-menu.js</a></li>
<li><a href="#trunksrcjs_enqueuesvendorjqueryjqueryhotkeysjs">trunk/src/js/_enqueues/vendor/jquery/jquery.hotkeys.js</a></li>
<li><a href="#trunksrcjs_enqueuesvendorjqueryjqueryserializeobjectjs">trunk/src/js/_enqueues/vendor/jquery/jquery.serialize-object.js</a></li>
<li><a href="#trunksrcjs_enqueuesvendorjqueryjquerytablehotkeysjs">trunk/src/js/_enqueues/vendor/jquery/jquery.table-hotkeys.js</a></li>
<li><a href="#trunksrcjs_enqueueswpautosavejs">trunk/src/js/_enqueues/wp/autosave.js</a></li>
<li><a href="#trunksrcjs_enqueueswpdashboardjs">trunk/src/js/_enqueues/wp/dashboard.js</a></li>
<li><a href="#trunksrcjs_enqueueswpsvgpainterjs">trunk/src/js/_enqueues/wp/svg-painter.js</a></li>
<li><a href="#trunksrcjs_enqueueswpupdatesjs">trunk/src/js/_enqueues/wp/updates.js</a></li>
<li><a href="#trunksrcjs_enqueueswpwidgetstextjs">trunk/src/js/_enqueues/wp/widgets/text.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="trunksrcjs_enqueuesadminauthappjs"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/js/_enqueues/admin/auth-app.js</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/js/_enqueues/admin/auth-app.js 2021-02-23 19:16:26 UTC (rev 50419)
+++ trunk/src/js/_enqueues/admin/auth-app.js 2021-02-23 19:43:23 UTC (rev 50420)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -15,7 +15,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> rejectUrl: authApp.reject
</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">- $approveBtn.click( function( e ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $approveBtn.on( 'click', function( e ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> var name = $appNameField.val(),
</span><span class="cx" style="display: block; padding: 0 10px"> appId = $( 'input[name="app_id"]', $form ).val();
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -26,7 +26,7 @@
</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"> if ( 0 === name.length ) {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $appNameField.focus();
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $appNameField.trigger( 'focus' );
</ins><span class="cx" style="display: block; padding: 0 10px"> return;
</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">@@ -102,7 +102,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> $( 'input', $notice ).val( response.password );
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> $form.replaceWith( $notice );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $notice.focus();
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $notice.trigger( 'focus' );
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px"> } ).fail( function( jqXHR, textStatus, errorThrown ) {
</span><span class="cx" style="display: block; padding: 0 10px"> var errorMessage = errorThrown,
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -140,7 +140,7 @@
</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">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $rejectBtn.click( function( e ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $rejectBtn.on( 'click', function( e ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> e.preventDefault();
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span></span></pre></div>
<a id="trunksrcjs_enqueuesadmincommonjs"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/js/_enqueues/admin/common.js</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/js/_enqueues/admin/common.js 2021-02-23 19:16:26 UTC (rev 50419)
+++ trunk/src/js/_enqueues/admin/common.js 2021-02-23 19:43:23 UTC (rev 50420)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -840,7 +840,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @return {void}
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> $adminmenu.on('click.wp-submenu-head', '.wp-submenu-head', function(e){
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $(e.target).parent().siblings('a').get(0).click();
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $(e.target).parent().siblings('a').get(0).trigger( 'click' );
</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"> /**
</span></span></pre></div>
<a id="trunksrcjs_enqueuesadmincustombackgroundjs"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/js/_enqueues/admin/custom-background.js</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/js/_enqueues/admin/custom-background.js 2021-02-23 19:16:26 UTC (rev 50419)
+++ trunk/src/js/_enqueues/admin/custom-background.js 2021-02-23 19:43:23 UTC (rev 50420)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -39,7 +39,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @return {void}
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $( 'select[name="background-size"]' ).change( function() {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $( 'select[name="background-size"]' ).on( 'change', function() {
</ins><span class="cx" style="display: block; padding: 0 10px"> bgImage.css( 'background-size', $( this ).val() );
</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">@@ -50,7 +50,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @return {void}
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $( 'input[name="background-position"]' ).change( function() {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $( 'input[name="background-position"]' ).on( 'change', function() {
</ins><span class="cx" style="display: block; padding: 0 10px"> bgImage.css( 'background-position', $( this ).val() );
</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">@@ -61,7 +61,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @return {void}
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $( 'input[name="background-repeat"]' ).change( function() {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $( 'input[name="background-repeat"]' ).on( 'change', function() {
</ins><span class="cx" style="display: block; padding: 0 10px"> bgImage.css( 'background-repeat', $( this ).is( ':checked' ) ? 'repeat' : 'no-repeat' );
</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">@@ -72,7 +72,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @return {void}
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $( 'input[name="background-attachment"]' ).change( function() {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $( 'input[name="background-attachment"]' ).on( 'change', function() {
</ins><span class="cx" style="display: block; padding: 0 10px"> bgImage.css( 'background-attachment', $( this ).is( ':checked' ) ? 'scroll' : 'fixed' );
</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">@@ -83,7 +83,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @return {void}
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $('#choose-from-library-link').click( function( event ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $('#choose-from-library-link').on( 'click', function( event ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> var $el = $(this);
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> event.preventDefault();
</span></span></pre></div>
<a id="trunksrcjs_enqueuesadmincustomheaderjs"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/js/_enqueues/admin/custom-header.js</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/js/_enqueues/admin/custom-header.js 2021-02-23 19:16:26 UTC (rev 50419)
+++ trunk/src/js/_enqueues/admin/custom-header.js 2021-02-23 19:43:23 UTC (rev 50420)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -35,7 +35,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @return {void}
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $('#choose-from-library-link').click( function( event ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $('#choose-from-library-link').on( 'click', function( event ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> var $el = $(this);
</span><span class="cx" style="display: block; padding: 0 10px"> event.preventDefault();
</span><span class="cx" style="display: block; padding: 0 10px">
</span></span></pre></div>
<a id="trunksrcjs_enqueuesadmineditcommentsjs"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/js/_enqueues/admin/edit-comments.js</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/js/_enqueues/admin/edit-comments.js 2021-02-23 19:16:26 UTC (rev 50419)
+++ trunk/src/js/_enqueues/admin/edit-comments.js 2021-02-23 19:43:23 UTC (rev 50420)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -850,7 +850,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> toggle : function(el) {
</span><span class="cx" style="display: block; padding: 0 10px"> if ( 'none' !== $( el ).css( 'display' ) && ( $( '#replyrow' ).parent().is('#com-reply') || window.confirm( __( 'Are you sure you want to edit this comment?\nThe changes you made will be lost.' ) ) ) ) {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $( el ).find( 'button.vim-q' ).click();
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $( el ).find( 'button.vim-q' ).trigger( 'click' );
</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">
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1298,7 +1298,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> return function() {
</span><span class="cx" style="display: block; padding: 0 10px"> var scope = $('select[name="action"]');
</span><span class="cx" style="display: block; padding: 0 10px"> $('option[value="' + value + '"]', scope).prop('selected', true);
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $('#doaction').click();
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $('#doaction').trigger( 'click' );
</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">
</span></span></pre></div>
<a id="trunksrcjs_enqueuesadminlinkjs"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/js/_enqueues/admin/link.js</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/js/_enqueues/admin/link.js 2021-02-23 19:16:26 UTC (rev 50419)
+++ trunk/src/js/_enqueues/admin/link.js 2021-02-23 19:43:23 UTC (rev 50420)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -8,7 +8,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> var newCat, noSyncChecks = false, syncChecks, catAddAfter;
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $('#link_name').focus();
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $('#link_name').trigger( 'focus' );
</ins><span class="cx" style="display: block; padding: 0 10px"> // Postboxes.
</span><span class="cx" style="display: block; padding: 0 10px"> postboxes.add_postbox_toggles('link');
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -19,7 +19,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @return {boolean} Always returns false to prevent the default behavior.
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $('#category-tabs a').click(function(){
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $('#category-tabs a').on( 'click', function(){
</ins><span class="cx" style="display: block; padding: 0 10px"> var t = $(this).attr('href');
</span><span class="cx" style="display: block; padding: 0 10px"> $(this).parent().addClass('tabs').siblings('li').removeClass('tabs');
</span><span class="cx" style="display: block; padding: 0 10px"> $('.tabs-panel').hide();
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -31,7 +31,7 @@
</span><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"> if ( getUserSetting('cats') )
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $('#category-tabs a[href="#categories-pop"]').click();
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $('#category-tabs a[href="#categories-pop"]').trigger( 'click' );
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> // Ajax Cat.
</span><span class="cx" style="display: block; padding: 0 10px"> newCat = $('#newcat').one( 'focus', function() { $(this).val( '' ).removeClass( 'form-input-tip' ); } );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -41,7 +41,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @return {void}
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $('#link-category-add-submit').click( function() { newCat.focus(); } );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $('#link-category-add-submit').on( 'click', function() { newCat.focus(); } );
</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"> * Synchronize category checkboxes.
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -82,7 +82,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> var t = $($(this).text());
</span><span class="cx" style="display: block; padding: 0 10px"> t.find( 'label' ).each( function() {
</span><span class="cx" style="display: block; padding: 0 10px"> var th = $(this), val = th.find('input').val(), id = th.find('input')[0].id, name = $.trim( th.text() ), o;
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $('#' + id).change( syncChecks );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $('#' + id).on( 'change', syncChecks );
</ins><span class="cx" style="display: block; padding: 0 10px"> o = $( '<option value="' + parseInt( val, 10 ) + '"></option>' ).text( name );
</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">@@ -108,13 +108,13 @@
</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"> // All categories is the default tab, so we delete the user setting.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $('a[href="#categories-all"]').click(function(){deleteUserSetting('cats');});
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $('a[href="#categories-all"]').on( 'click', function(){deleteUserSetting('cats');});
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> // Set a preference for the popular categories to cookies.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $('a[href="#categories-pop"]').click(function(){setUserSetting('cats','pop');});
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $('a[href="#categories-pop"]').on( 'click', function(){setUserSetting('cats','pop');});
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> if ( 'pop' == getUserSetting('cats') )
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $('a[href="#categories-pop"]').click();
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $('a[href="#categories-pop"]').trigger( 'click' );
</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"> * Adds event handler that shows the interface controls to add a new category.
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -125,12 +125,12 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @return {boolean} Always returns false to prevent regular link
</span><span class="cx" style="display: block; padding: 0 10px"> * functionality.
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $('#category-add-toggle').click( function() {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $('#category-add-toggle').on( 'click', function() {
</ins><span class="cx" style="display: block; padding: 0 10px"> $(this).parents('div:first').toggleClass( 'wp-hidden-children' );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $('#category-tabs a[href="#categories-all"]').click();
- $('#newcategory').focus();
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $('#category-tabs a[href="#categories-all"]').trigger( 'click' );
+ $('#newcategory').trigger( 'focus' );
</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">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $('.categorychecklist :checkbox').change( syncChecks ).filter( ':checked' ).change();
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $('.categorychecklist :checkbox').on( 'change', syncChecks ).filter( ':checked' ).trigger( 'change' );
</ins><span class="cx" style="display: block; padding: 0 10px"> });
</span></span></pre></div>
<a id="trunksrcjs_enqueuesadminmediajs"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/js/_enqueues/admin/media.js</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/js/_enqueues/admin/media.js 2021-02-23 19:16:26 UTC (rev 50419)
+++ trunk/src/js/_enqueues/admin/media.js 2021-02-23 19:43:23 UTC (rev 50420)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -46,7 +46,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> $( '#find-posts' ).show();
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> // Close the dialog when the escape key is pressed.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $('#find-posts-input').focus().keyup( function( event ){
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $('#find-posts-input').trigger( 'focus' ).on( 'keyup', function( event ){
</ins><span class="cx" style="display: block; padding: 0 10px"> if ( event.which == 27 ) {
</span><span class="cx" style="display: block; padding: 0 10px"> findPosts.close();
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span></span></pre></div>
<a id="trunksrcjs_enqueuesadminplugininstalljs"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/js/_enqueues/admin/plugin-install.js</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/js/_enqueues/admin/plugin-install.js 2021-02-23 19:16:26 UTC (rev 50419)
+++ trunk/src/js/_enqueues/admin/plugin-install.js 2021-02-23 19:43:23 UTC (rev 50420)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -75,7 +75,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> .on( 'thickbox:removed', function() {
</span><span class="cx" style="display: block; padding: 0 10px"> // Set focus back to the element that opened the modal dialog.
</span><span class="cx" style="display: block; padding: 0 10px"> // Note: IE 8 would need this wrapped in a fake setTimeout `0`.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $focusedBefore.focus();
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $focusedBefore.trigger( 'focus' );
</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"> function iframeLoaded() {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -88,7 +88,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> handleTabbables();
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> // Set initial focus on the "Close" button.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $firstTabbable.focus();
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $firstTabbable.trigger( 'focus' );
</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"> * When the "Install" button is disabled (e.g. the Plugin is already installed)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -141,10 +141,10 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> if ( $lastTabbable[0] === event.target && ! event.shiftKey ) {
</span><span class="cx" style="display: block; padding: 0 10px"> event.preventDefault();
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $firstTabbable.focus();
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $firstTabbable.trigger( 'focus' );
</ins><span class="cx" style="display: block; padding: 0 10px"> } else if ( $firstTabbable[0] === event.target && event.shiftKey ) {
</span><span class="cx" style="display: block; padding: 0 10px"> event.preventDefault();
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $lastTabbable.focus();
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $lastTabbable.trigger( 'focus' );
</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">
</span></span></pre></div>
<a id="trunksrcjs_enqueuesadminpostjs"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/js/_enqueues/admin/post.js</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/js/_enqueues/admin/post.js 2021-02-23 19:16:26 UTC (rev 50419)
+++ trunk/src/js/_enqueues/admin/post.js 2021-02-23 19:43:23 UTC (rev 50420)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -68,7 +68,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> $('#the-comment-list').append( r.responses[0].data );
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> theList = theExtraList = null;
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $( 'a[className*=\':\']' ).unbind();
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $( 'a[className*=\':\']' ).off();
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> // If the offset is over the total number of comments we cannot fetch any more, so hide the button.
</span><span class="cx" style="display: block; padding: 0 10px"> if ( commentsBox.st > commentsBox.total )
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -414,7 +414,7 @@
</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"> $previewField.val('dopreview');
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $form.attr( 'target', target ).submit().attr( 'target', '' );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $form.attr( 'target', target ).trigger( 'submit' ).attr( 'target', '' );
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> // Workaround for WebKit bug preventing a form submitting twice to the same action.
</span><span class="cx" style="display: block; padding: 0 10px"> // https://bugs.webkit.org/show_bug.cgi?id=28633
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -448,7 +448,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> // Auto save new posts after a title is typed.
</span><span class="cx" style="display: block; padding: 0 10px"> if ( $( '#auto_draft' ).val() ) {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $( '#title' ).blur( function() {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $( '#title' ).on( 'blur', function() {
</ins><span class="cx" style="display: block; padding: 0 10px"> var cancel;
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> if ( ! this.value || $('#edit-slug-box > *').length ) {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -592,7 +592,7 @@
</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"> if ( getUserSetting( settingName ) )
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $('a[href="#' + taxonomy + '-pop"]', '#' + taxonomy + '-tabs').click();
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $('a[href="#' + taxonomy + '-pop"]', '#' + taxonomy + '-tabs').trigger( 'click' );
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> // Add category button controls.
</span><span class="cx" style="display: block; padding: 0 10px"> $('#new' + taxonomy).one( 'focus', function() {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -600,10 +600,10 @@
</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"> // On [Enter] submit the taxonomy.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $('#new' + taxonomy).keypress( function(event){
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $('#new' + taxonomy).on( 'keypress', function(event){
</ins><span class="cx" style="display: block; padding: 0 10px"> if( 13 === event.keyCode ) {
</span><span class="cx" style="display: block; padding: 0 10px"> event.preventDefault();
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $('#' + taxonomy + '-add-submit').click();
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $('#' + taxonomy + '-add-submit').trigger( 'click' );
</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">
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1001,7 +1001,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> var new_slug = $el.children( 'input' ).val();
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> if ( new_slug == $('#editable-post-name-full').text() ) {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- buttons.children('.cancel').click();
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ buttons.children('.cancel').trigger( 'click' );
</ins><span class="cx" style="display: block; padding: 0 10px"> return;
</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">@@ -1054,11 +1054,11 @@
</span><span class="cx" style="display: block; padding: 0 10px"> // On [Enter], just save the new slug, don't save the post.
</span><span class="cx" style="display: block; padding: 0 10px"> if ( 13 === key ) {
</span><span class="cx" style="display: block; padding: 0 10px"> e.preventDefault();
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- buttons.children( '.save' ).click();
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ buttons.children( '.save' ).trigger( 'click' );
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px"> // On [Esc] cancel the editing.
</span><span class="cx" style="display: block; padding: 0 10px"> if ( 27 === key ) {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- buttons.children( '.cancel' ).click();
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ buttons.children( '.cancel' ).trigger( 'click' );
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px"> } ).on( 'keyup', function() {
</span><span class="cx" style="display: block; padding: 0 10px"> real_slug.val( this.value );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1177,7 +1177,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> } else {
</span><span class="cx" style="display: block; padding: 0 10px"> mce = false;
</span><span class="cx" style="display: block; padding: 0 10px"> offset = $textarea.height() - event.pageY;
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $textarea.blur();
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $textarea.trigger( 'blur' );
</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"> $document.on( 'mousemove.wp-editor-resize', dragging )
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1261,7 +1261,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> // Clear the selection and move focus back to the trigger.
</span><span class="cx" style="display: block; padding: 0 10px"> event.clearSelection();
</span><span class="cx" style="display: block; padding: 0 10px"> // Handle ClipboardJS focus bug, see https://github.com/zenorocha/clipboard.js/issues/680
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- triggerElement.focus();
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ triggerElement.trigger( 'focus' );
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> // Show success visual feedback.
</span><span class="cx" style="display: block; padding: 0 10px"> clearTimeout( copyAttachmentURLSuccessTimeout );
</span></span></pre></div>
<a id="trunksrcjs_enqueuesadminpostboxjs"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/js/_enqueues/admin/postbox.js</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/js/_enqueues/admin/postbox.js 2021-02-23 19:16:26 UTC (rev 50419)
+++ trunk/src/js/_enqueues/admin/postbox.js 2021-02-23 19:43:23 UTC (rev 50420)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -127,7 +127,7 @@
</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"> postbox.prevAll( '.postbox:visible' ).eq( 0 ).before( postbox );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- button.focus();
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ button.trigger( 'focus' );
</ins><span class="cx" style="display: block; padding: 0 10px"> postboxes.updateOrderButtonsProperties();
</span><span class="cx" style="display: block; padding: 0 10px"> postboxes.save_order( postboxes.page );
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -141,7 +141,7 @@
</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"> postbox.nextAll( '.postbox:visible' ).eq( 0 ).after( postbox );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- button.focus();
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ button.trigger( 'focus' );
</ins><span class="cx" style="display: block; padding: 0 10px"> postboxes.updateOrderButtonsProperties();
</span><span class="cx" style="display: block; padding: 0 10px"> postboxes.save_order( postboxes.page );
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span></span></pre></div>
<a id="trunksrcjs_enqueuesadminprivacytoolsjs"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/js/_enqueues/admin/privacy-tools.js</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/js/_enqueues/admin/privacy-tools.js 2021-02-23 19:16:26 UTC (rev 50419)
+++ trunk/src/js/_enqueues/admin/privacy-tools.js 2021-02-23 19:43:23 UTC (rev 50420)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -328,7 +328,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> // Label handling to focus the create page button on Privacy settings page.
</span><span class="cx" style="display: block; padding: 0 10px"> $( 'body.options-privacy-php label[for=create-page]' ).on( 'click', function( e ) {
</span><span class="cx" style="display: block; padding: 0 10px"> e.preventDefault();
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $( 'input#create-page' ).focus();
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $( 'input#create-page' ).trigger( 'focus' );
</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"> // Accordion handling in various new Privacy settings pages.
</span></span></pre></div>
<a id="trunksrcjs_enqueuesadmintagsboxjs"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/js/_enqueues/admin/tags-box.js</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/js/_enqueues/admin/tags-box.js 2021-02-23 19:16:26 UTC (rev 50419)
+++ trunk/src/js/_enqueues/admin/tags-box.js 2021-02-23 19:43:23 UTC (rev 50420)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -188,7 +188,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * key this will fire the `keyup` event on the input.
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> if ( 13 === e.keyCode || 32 === e.keyCode ) {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $( this ).closest( '.tagsdiv' ).find( 'input.newtag' ).focus();
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $( this ).closest( '.tagsdiv' ).find( 'input.newtag' ).trigger( 'focus' );
</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"> tagBox.userAction = 'remove';
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -255,7 +255,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> if ( ! a )
</span><span class="cx" style="display: block; padding: 0 10px"> newtag.val('');
</span><span class="cx" style="display: block; padding: 0 10px"> if ( 'undefined' == typeof( f ) )
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- newtag.focus();
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ newtag.trigger( 'focus' );
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> return false;
</span><span class="cx" style="display: block; padding: 0 10px"> },
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -303,7 +303,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @return {boolean} Returns false to prevent the default action.
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $( 'a', r ).click( function() {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $( 'a', r ).on( 'click', function() {
</ins><span class="cx" style="display: block; padding: 0 10px"> tagBox.userAction = 'add';
</span><span class="cx" style="display: block; padding: 0 10px"> tagBox.flushTags( $( '#' + tax ), this );
</span><span class="cx" style="display: block; padding: 0 10px"> return false;
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -368,7 +368,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> tagBox.quickClicks( this );
</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">- $( '.tagadd', ajaxtag ).click( function() {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $( '.tagadd', ajaxtag ).on( 'click', function() {
</ins><span class="cx" style="display: block; padding: 0 10px"> tagBox.userAction = 'add';
</span><span class="cx" style="display: block; padding: 0 10px"> tagBox.flushTags( $( this ).closest( '.tagsdiv' ) );
</span><span class="cx" style="display: block; padding: 0 10px"> });
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -385,7 +385,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @return {void}
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $( 'input.newtag', ajaxtag ).keypress( function( event ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $( 'input.newtag', ajaxtag ).on( 'keypress', function( event ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> if ( 13 == event.which ) {
</span><span class="cx" style="display: block; padding: 0 10px"> tagBox.userAction = 'add';
</span><span class="cx" style="display: block; padding: 0 10px"> tagBox.flushTags( $( this ).closest( '.tagsdiv' ) );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -404,7 +404,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @return {void}
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $('#post').submit(function(){
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $('#post').on( 'submit', function(){
</ins><span class="cx" style="display: block; padding: 0 10px"> $('div.tagsdiv').each( function() {
</span><span class="cx" style="display: block; padding: 0 10px"> tagBox.flushTags(this, false, 1);
</span><span class="cx" style="display: block; padding: 0 10px"> });
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -419,14 +419,14 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @return {void}
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $('.tagcloud-link').click(function(){
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $('.tagcloud-link').on( 'click', function(){
</ins><span class="cx" style="display: block; padding: 0 10px"> // On the first click, fetch the tag cloud and insert it in the DOM.
</span><span class="cx" style="display: block; padding: 0 10px"> tagBox.get( $( this ).attr( 'id' ) );
</span><span class="cx" style="display: block; padding: 0 10px"> // Update button state, remove previous click event and attach a new one to toggle the cloud.
</span><span class="cx" style="display: block; padding: 0 10px"> $( this )
</span><span class="cx" style="display: block; padding: 0 10px"> .attr( 'aria-expanded', 'true' )
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- .unbind()
- .click( function() {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ .off()
+ .on( 'click', function() {
</ins><span class="cx" style="display: block; padding: 0 10px"> $( this )
</span><span class="cx" style="display: block; padding: 0 10px"> .attr( 'aria-expanded', 'false' === $( this ).attr( 'aria-expanded' ) ? 'true' : 'false' )
</span><span class="cx" style="display: block; padding: 0 10px"> .siblings( '.the-tagcloud' ).toggle();
</span></span></pre></div>
<a id="trunksrcjs_enqueuesadminuserprofilejs"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/js/_enqueues/admin/user-profile.js</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/js/_enqueues/admin/user-profile.js 2021-02-23 19:16:26 UTC (rev 50419)
+++ trunk/src/js/_enqueues/admin/user-profile.js 2021-02-23 19:43:23 UTC (rev 50420)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -408,7 +408,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> // Repaint icons.
</span><span class="cx" style="display: block; padding: 0 10px"> if ( typeof wp !== 'undefined' && wp.svgPainter ) {
</span><span class="cx" style="display: block; padding: 0 10px"> try {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- colors = $.parseJSON( $this.children( '.icon_colors' ).val() );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ colors = JSON.parse( $this.children( '.icon_colors' ).val() );
</ins><span class="cx" style="display: block; padding: 0 10px"> } catch ( error ) {}
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> if ( colors ) {
</span></span></pre></div>
<a id="trunksrcjs_enqueuesadminwidgetsjs"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/js/_enqueues/admin/widgets.js</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/js/_enqueues/admin/widgets.js 2021-02-23 19:16:26 UTC (rev 50419)
+++ trunk/src/js/_enqueues/admin/widgets.js 2021-02-23 19:43:23 UTC (rev 50420)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -81,7 +81,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> });
</span><span class="cx" style="display: block; padding: 0 10px"> unsavedWidgetsElements.each( function() {
</span><span class="cx" style="display: block; padding: 0 10px"> if ( ! $( this ).hasClass( 'open' ) ) {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $( this ).find( '.widget-title-action:first' ).click();
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $( this ).find( '.widget-title-action:first' ).trigger( 'click' );
</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">
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -92,7 +92,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> } else {
</span><span class="cx" style="display: block; padding: 0 10px"> this.scrollIntoView();
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $( this ).find( '.widget-inside :tabbable:first' ).focus();
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $( this ).find( '.widget-inside :tabbable:first' ).trigger( 'focus' );
</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"> event.returnValue = wp.i18n.__( 'The changes you made will be lost if you navigate away from this page.' );
</span></span></pre></div>
<a id="trunksrcjs_enqueuesdeprecatedmediagalleryjs"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/js/_enqueues/deprecated/media-gallery.js</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/js/_enqueues/deprecated/media-gallery.js 2021-02-23 19:16:26 UTC (rev 50419)
+++ trunk/src/js/_enqueues/deprecated/media-gallery.js 2021-02-23 19:43:23 UTC (rev 50420)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -10,7 +10,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><span class="cx" style="display: block; padding: 0 10px"> * Adds a click event handler to the element with a 'wp-gallery' class.
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $( 'body' ).bind( 'click.wp-gallery', function(e) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $( 'body' ).on( 'click.wp-gallery', function(e) {
</ins><span class="cx" style="display: block; padding: 0 10px"> var target = $( e.target ), id, img_size, nonceValue;
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> if ( target.hasClass( 'wp-set-header' ) ) {
</span></span></pre></div>
<a id="trunksrcjs_enqueueslibajaxresponsejs"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/js/_enqueues/lib/ajax-response.js</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/js/_enqueues/lib/ajax-response.js 2021-02-23 19:16:26 UTC (rev 50419)
+++ trunk/src/js/_enqueues/lib/ajax-response.js 2021-02-23 19:43:23 UTC (rev 50420)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -11,7 +11,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> q = s.split('?'); if ( q[1] ) { s = q[1]; }
</span><span class="cx" style="display: block; padding: 0 10px"> pp = s.split('&');
</span><span class="cx" style="display: block; padding: 0 10px"> for ( i in pp ) {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- if ( jQuery.isFunction(pp.hasOwnProperty) && !pp.hasOwnProperty(i) ) { continue; }
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ if ( typeof pp.hasOwnProperty === 'function' && !pp.hasOwnProperty(i) ) { continue; }
</ins><span class="cx" style="display: block; padding: 0 10px"> p = pp[i].split('=');
</span><span class="cx" style="display: block; padding: 0 10px"> r[p[0]] = p[1];
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span></span></pre></div>
<a id="trunksrcjs_enqueueslibcolorpickerjs"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/js/_enqueues/lib/color-picker.js</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/js/_enqueues/lib/color-picker.js 2021-02-23 19:16:26 UTC (rev 50419)
+++ trunk/src/js/_enqueues/lib/color-picker.js 2021-02-23 19:43:23 UTC (rev 50420)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -67,7 +67,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @return {void}
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> change: function( event, ui ) {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- if ( $.isFunction( self.options.change ) ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ if ( typeof self.options.change === 'function' ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> self.options.change.call( this, event, ui );
</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">@@ -189,7 +189,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> change: function( event, ui ) {
</span><span class="cx" style="display: block; padding: 0 10px"> self.toggler.css( { backgroundColor: ui.color.toString() } );
</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 ( $.isFunction( self.options.change ) ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ if ( typeof self.options.change === 'function' ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> self.options.change.call( this, event, ui );
</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">@@ -257,7 +257,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> if ( val === '' || val === '#' ) {
</span><span class="cx" style="display: block; padding: 0 10px"> self.toggler.css( 'backgroundColor', '' );
</span><span class="cx" style="display: block; padding: 0 10px"> // Fire clear callback if we have one.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- if ( $.isFunction( self.options.clear ) ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ if ( typeof self.options.clear === 'function' ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> self.options.clear.call( this, event );
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span></span></pre></div>
<a id="trunksrcjs_enqueueslibgalleryjs"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/js/_enqueues/lib/gallery.js</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/js/_enqueues/lib/gallery.js 2021-02-23 19:16:26 UTC (rev 50419)
+++ trunk/src/js/_enqueues/lib/gallery.js 2021-02-23 19:43:23 UTC (rev 50420)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -42,21 +42,21 @@
</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">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $('#asc').click( function( e ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $('#asc').on( 'click', function( e ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> e.preventDefault();
</span><span class="cx" style="display: block; padding: 0 10px"> desc = false;
</span><span class="cx" style="display: block; padding: 0 10px"> sortIt();
</span><span class="cx" style="display: block; padding: 0 10px"> });
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $('#desc').click( function( e ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $('#desc').on( 'click', function( e ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> e.preventDefault();
</span><span class="cx" style="display: block; padding: 0 10px"> desc = true;
</span><span class="cx" style="display: block; padding: 0 10px"> sortIt();
</span><span class="cx" style="display: block; padding: 0 10px"> });
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $('#clear').click( function( e ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $('#clear').on( 'click', function( e ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> e.preventDefault();
</span><span class="cx" style="display: block; padding: 0 10px"> clearAll(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">- $('#showall').click( function( e ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $('#showall').on( 'click', function( e ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> e.preventDefault();
</span><span class="cx" style="display: block; padding: 0 10px"> $('#sort-buttons span a').toggle();
</span><span class="cx" style="display: block; padding: 0 10px"> $('a.describe-toggle-on').hide();
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -63,7 +63,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> $('a.describe-toggle-off, table.slidetoggle').show();
</span><span class="cx" style="display: block; padding: 0 10px"> $('img.pinkynail').toggle(false);
</span><span class="cx" style="display: block; padding: 0 10px"> });
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $('#hideall').click( function( e ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $('#hideall').on( 'click', function( e ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> e.preventDefault();
</span><span class="cx" style="display: block; padding: 0 10px"> $('#sort-buttons span a').toggle();
</span><span class="cx" style="display: block; padding: 0 10px"> $('a.describe-toggle-on').show();
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -88,7 +88,7 @@
</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">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-jQuery(window).unload( function () { window.tinymce = window.tinyMCE = window.wpgallery = null; } ); // Cleanup.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+jQuery(window).on( 'unload', function () { window.tinymce = window.tinyMCE = window.wpgallery = null; } ); // Cleanup.
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> /* gallery settings */
</span><span class="cx" style="display: block; padding: 0 10px"> window.tinymce = null;
</span></span></pre></div>
<a id="trunksrcjs_enqueueslibimageeditjs"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/js/_enqueues/lib/image-edit.js</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/js/_enqueues/lib/image-edit.js 2021-02-23 19:16:26 UTC (rev 50419)
+++ trunk/src/js/_enqueues/lib/image-edit.js 2021-02-23 19:43:23 UTC (rev 50420)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -127,7 +127,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> // Key codes 37 through 40 are the arrow keys.
</span><span class="cx" style="display: block; padding: 0 10px"> if ( 36 < k && k < 41 ) {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $(this).blur();
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $(this).trigger( 'blur' );
</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"> // The key code 13 is the Enter key.
</span></span></pre></div>
<a id="trunksrcjs_enqueuesliblanguagechooserjs"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/js/_enqueues/lib/language-chooser.js</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/js/_enqueues/lib/language-chooser.js 2021-02-23 19:16:26 UTC (rev 50419)
+++ trunk/src/js/_enqueues/lib/language-chooser.js 2021-02-23 19:43:23 UTC (rev 50420)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -14,7 +14,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> return;
</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">-select.focus().on( 'change', function() {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+select.trigger( 'focus' ).on( 'change', function() {
</ins><span class="cx" style="display: block; padding: 0 10px"> /*
</span><span class="cx" style="display: block; padding: 0 10px"> * When a language is selected, set matching translation to continue button
</span><span class="cx" style="display: block; padding: 0 10px"> * and attach the language attribute.
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -26,7 +26,7 @@
</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">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-$( 'form' ).submit( function() {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+$( 'form' ).on( 'submit', function() {
</ins><span class="cx" style="display: block; padding: 0 10px"> // Show spinner for languages that need to be downloaded.
</span><span class="cx" style="display: block; padding: 0 10px"> if ( ! select.children( 'option:selected' ).data( 'installed' ) ) {
</span><span class="cx" style="display: block; padding: 0 10px"> $( this ).find( '.step .spinner' ).css( 'visibility', 'visible' );
</span></span></pre></div>
<a id="trunksrcjs_enqueuesliblinkjs"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/js/_enqueues/lib/link.js</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/js/_enqueues/lib/link.js 2021-02-23 19:16:26 UTC (rev 50419)
+++ trunk/src/js/_enqueues/lib/link.js 2021-02-23 19:43:23 UTC (rev 50420)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -181,7 +181,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> if ( isTouch ) {
</span><span class="cx" style="display: block; padding: 0 10px"> // Close the onscreen keyboard.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- inputs.url.focus().blur();
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ inputs.url.trigger( 'focus' ).trigger( 'blur' );
</ins><span class="cx" style="display: block; padding: 0 10px"> } else {
</span><span class="cx" style="display: block; padding: 0 10px"> /*
</span><span class="cx" style="display: block; padding: 0 10px"> * Focus the URL field and highlight its contents.
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -190,7 +190,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> window.setTimeout( function() {
</span><span class="cx" style="display: block; padding: 0 10px"> inputs.url[0].select();
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- inputs.url.focus();
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ inputs.url.trigger( 'focus' );
</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">
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -557,10 +557,10 @@
</span><span class="cx" style="display: block; padding: 0 10px"> // wp-link-submit must always be the last focusable element in the dialog.
</span><span class="cx" style="display: block; padding: 0 10px"> // Following focusable elements will be skipped on keyboard navigation.
</span><span class="cx" style="display: block; padding: 0 10px"> if ( id === 'wp-link-submit' && ! event.shiftKey ) {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- inputs.close.focus();
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ inputs.close.trigger( 'focus' );
</ins><span class="cx" style="display: block; padding: 0 10px"> event.preventDefault();
</span><span class="cx" style="display: block; padding: 0 10px"> } else if ( id === 'wp-link-close' && event.shiftKey ) {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- inputs.submit.focus();
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ inputs.submit.trigger( '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"> }
</span></span></pre></div>
<a id="trunksrcjs_enqueuesliblistsjs"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/js/_enqueues/lib/lists.js</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/js/_enqueues/lib/lists.js 2021-02-23 19:16:26 UTC (rev 50419)
+++ trunk/src/js/_enqueues/lib/lists.js 2021-02-23 19:43:23 UTC (rev 50420)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -271,7 +271,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> target: list.get( 0 )
</span><span class="cx" style="display: block; padding: 0 10px"> }, settings || {} );
</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 ( $.isFunction( settings.confirm ) ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ if ( typeof settings.confirm === 'function' ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> $element = $( '#' + settings.element );
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> if ( 'add' !== action ) {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -337,13 +337,13 @@
</span><span class="cx" style="display: block; padding: 0 10px"> }, wpAjax.unserialize( data[4] || '' ) ) );
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> formValues = $( '#' + settings.element + ' :input' ).not( '[name="_ajax_nonce"], [name="_wpnonce"], [name="action"]' );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- formData = $.isFunction( formValues.fieldSerialize ) ? formValues.fieldSerialize() : formValues.serialize();
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ formData = typeof formValues.fieldSerialize === 'function' ? formValues.fieldSerialize() : formValues.serialize();
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> if ( formData ) {
</span><span class="cx" style="display: block; padding: 0 10px"> settings.data += '&' + formData;
</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 ( $.isFunction( settings.addBefore ) ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ if ( typeof settings.addBefore === 'function' ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> settings = settings.addBefore( settings );
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> if ( ! settings ) {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -381,7 +381,7 @@
</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"> settings.complete = function( jqXHR, status ) {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- if ( $.isFunction( settings.addAfter ) ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ if ( typeof settings.addAfter === 'function' ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> settings.addAfter( returnedResponse, $.extend( {
</span><span class="cx" style="display: block; padding: 0 10px"> xml: jqXHR,
</span><span class="cx" style="display: block; padding: 0 10px"> status: status,
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -427,7 +427,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> id: settings.element.split( '-' ).pop()
</span><span class="cx" style="display: block; padding: 0 10px"> }, wpAjax.unserialize( data[4] || '' ) );
</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 ( $.isFunction( settings.delBefore ) ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ if ( typeof settings.delBefore === 'function' ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> settings = settings.delBefore( settings, list );
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> if ( ! settings ) {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -466,7 +466,7 @@
</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"> settings.complete = function( jqXHR, status ) {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- if ( $.isFunction( settings.delAfter ) ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ if ( typeof settings.delAfter === 'function' ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> $eventTarget.queue( function() {
</span><span class="cx" style="display: block; padding: 0 10px"> settings.delAfter( returnedResponse, $.extend( {
</span><span class="cx" style="display: block; padding: 0 10px"> xml: jqXHR,
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -522,7 +522,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> dimClass: settings.dimClass
</span><span class="cx" style="display: block; padding: 0 10px"> }, wpAjax.unserialize( data[6] || '' ) );
</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 ( $.isFunction( settings.dimBefore ) ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ if ( typeof settings.dimBefore === 'function' ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> settings = settings.dimBefore( settings );
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> if ( ! settings ) {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -591,7 +591,7 @@
</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"> settings.complete = function( jqXHR, status ) {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- if ( $.isFunction( settings.dimAfter ) ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ if ( typeof settings.dimAfter === 'function' ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> $eventTarget.queue( function() {
</span><span class="cx" style="display: block; padding: 0 10px"> settings.dimAfter( returnedResponse, $.extend( {
</span><span class="cx" style="display: block; padding: 0 10px"> xml: jqXHR,
</span></span></pre></div>
<a id="trunksrcjs_enqueueslibnavmenujs"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/js/_enqueues/lib/nav-menu.js</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/js/_enqueues/lib/nav-menu.js 2021-02-23 19:16:26 UTC (rev 50419)
+++ trunk/src/js/_enqueues/lib/nav-menu.js 2021-02-23 19:43:23 UTC (rev 50420)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -857,7 +857,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> if ( e.keyCode === 13 ) {
</span><span class="cx" style="display: block; padding: 0 10px"> e.preventDefault();
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $( '#submit-customlinkdiv' ).click();
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $( '#submit-customlinkdiv' ).trigger( 'click' );
</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"> },
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -967,7 +967,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> // Remove the Ajax spinner.
</span><span class="cx" style="display: block; padding: 0 10px"> $( '.customlinkdiv .spinner' ).removeClass( 'is-active' );
</span><span class="cx" style="display: block; padding: 0 10px"> // Set custom link form back to defaults.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $('#custom-menu-item-name').val('').blur();
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $('#custom-menu-item-name').val('').trigger( 'blur' );
</ins><span class="cx" style="display: block; padding: 0 10px"> $( '#custom-menu-item-url' ).val( '' ).attr( 'placeholder', 'https://' );
</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">@@ -1059,7 +1059,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> };
</span><span class="cx" style="display: block; padding: 0 10px"> } else {
</span><span class="cx" style="display: block; padding: 0 10px"> // Make the post boxes read-only, as they can't be used yet.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $( '#menu-settings-column' ).find( 'input,select' ).end().find( 'a' ).attr( 'href', '#' ).unbind( 'click' );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $( '#menu-settings-column' ).find( 'input,select' ).end().find( 'a' ).attr( 'href', '#' ).off( 'click' );
</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">
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1141,7 +1141,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> $.post( ajaxurl, this.href.replace( /.*\?/, '' ).replace( /action=([^&]*)/, '' ) + '&action=menu-get-metabox',
</span><span class="cx" style="display: block; padding: 0 10px"> function( resp ) {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- var metaBoxData = $.parseJSON( resp ),
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ var metaBoxData = JSON.parse( resp ),
</ins><span class="cx" style="display: block; padding: 0 10px"> toReplace;
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> if ( -1 === resp.indexOf( 'replace-id' ) ) {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1354,4 +1354,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">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-})(jQuery);
</del><span class="cx" style="display: block; padding: 0 10px">\ No newline at end of file
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+})(jQuery);
</ins></span></pre></div>
<a id="trunksrcjs_enqueuesvendorjqueryjqueryhotkeysjs"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/js/_enqueues/vendor/jquery/jquery.hotkeys.js</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/js/_enqueues/vendor/jquery/jquery.hotkeys.js 2021-02-23 19:16:26 UTC (rev 50419)
+++ trunk/src/js/_enqueues/vendor/jquery/jquery.hotkeys.js 2021-02-23 19:43:23 UTC (rev 50420)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -39,7 +39,7 @@
</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"> this.add = function(combi, options, callback) {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- if (jQuery.isFunction(options)){
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ if ( typeof options === 'function' ){
</ins><span class="cx" style="display: block; padding: 0 10px"> callback = options;
</span><span class="cx" style="display: block; padding: 0 10px"> options = {};
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span></span></pre></div>
<a id="trunksrcjs_enqueuesvendorjqueryjqueryserializeobjectjs"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/js/_enqueues/vendor/jquery/jquery.serialize-object.js</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/js/_enqueues/vendor/jquery/jquery.serialize-object.js 2021-02-23 19:16:26 UTC (rev 50419)
+++ trunk/src/js/_enqueues/vendor/jquery/jquery.serialize-object.js 2021-02-23 19:43:23 UTC (rev 50420)
</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><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * jQuery serializeObject - v0.2 - 1/20/2010
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * jQuery serializeObject - v0.2-wp - 1/20/2010
</ins><span class="cx" style="display: block; padding: 0 10px"> * http://benalman.com/projects/jquery-misc-plugins/
</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"> * Copyright (c) 2010 "Cowboy" Ben Alman
</span><span class="cx" style="display: block; padding: 0 10px"> * Dual licensed under the MIT and GPL licenses.
</span><span class="cx" style="display: block; padding: 0 10px"> * http://benalman.com/about/license/
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -12,20 +12,20 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> (function($,undefined){
</span><span class="cx" style="display: block; padding: 0 10px"> '$:nomunge'; // Used by YUI compressor.
</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"> $.fn.serializeObject = function(){
</span><span class="cx" style="display: block; padding: 0 10px"> var obj = {};
</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"> $.each( this.serializeArray(), function(i,o){
</span><span class="cx" style="display: block; padding: 0 10px"> var n = o.name,
</span><span class="cx" style="display: block; padding: 0 10px"> v = o.value;
</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"> obj[n] = obj[n] === undefined ? v
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- : $.isArray( obj[n] ) ? obj[n].concat( v )
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ : Array.isArray( obj[n] ) ? obj[n].concat( v )
</ins><span class="cx" style="display: block; padding: 0 10px"> : [ obj[n], v ];
</span><span class="cx" style="display: block; padding: 0 10px"> });
</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"> return obj;
</span><span class="cx" style="display: block; padding: 0 10px"> };
</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"> })(jQuery);
</span></span></pre></div>
<a id="trunksrcjs_enqueuesvendorjqueryjquerytablehotkeysjs"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/js/_enqueues/vendor/jquery/jquery.table-hotkeys.js</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/js/_enqueues/vendor/jquery/jquery.table-hotkeys.js 2021-02-23 19:16:26 UTC (rev 50419)
+++ trunk/src/js/_enqueues/vendor/jquery/jquery.table-hotkeys.js 2021-02-23 19:43:23 UTC (rev 50420)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -14,7 +14,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> $.table_hotkeys = function(table, keys, opts) {
</span><span class="cx" style="display: block; padding: 0 10px"> opts = $.extend($.table_hotkeys.defaults, opts);
</span><span class="cx" style="display: block; padding: 0 10px"> var selected_class, destructive_class, set_current_row, adjacent_row_callback, get_adjacent_row, adjacent_row, prev_row, next_row, check, get_first_row, get_last_row, make_key_callback, first_row;
</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"> selected_class = opts.class_prefix + opts.selected_suffix;
</span><span class="cx" style="display: block; padding: 0 10px"> destructive_class = opts.class_prefix + opts.destructive_suffix;
</span><span class="cx" style="display: block; padding: 0 10px"> set_current_row = function (tr) {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -24,13 +24,13 @@
</span><span class="cx" style="display: block; padding: 0 10px"> $.table_hotkeys.current_row = tr;
</span><span class="cx" style="display: block; padding: 0 10px"> };
</span><span class="cx" style="display: block; padding: 0 10px"> adjacent_row_callback = function(which) {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- if (!adjacent_row(which) && $.isFunction(opts[which+'_page_link_cb'])) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ if (!adjacent_row(which) && typeof opts[which+'_page_link_cb'] === 'function' ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> opts[which+'_page_link_cb']();
</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"> get_adjacent_row = function(which) {
</span><span class="cx" style="display: block; padding: 0 10px"> var first_row, method;
</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"> if (!$.table_hotkeys.current_row) {
</span><span class="cx" style="display: block; padding: 0 10px"> first_row = get_first_row();
</span><span class="cx" style="display: block; padding: 0 10px"> $.table_hotkeys.current_row = first_row;
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -65,7 +65,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> var clickable = $(expr, $.table_hotkeys.current_row);
</span><span class="cx" style="display: block; padding: 0 10px"> if (!clickable.length) return false;
</span><span class="cx" style="display: block; padding: 0 10px"> if (clickable.is('.'+destructive_class)) next_row() || prev_row();
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- clickable.click();
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ clickable.trigger( 'click' );
</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"> first_row = get_first_row();
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -79,8 +79,8 @@
</span><span class="cx" style="display: block; padding: 0 10px"> $.hotkeys.add(opts.mark_key, opts.hotkeys_opts, check);
</span><span class="cx" style="display: block; padding: 0 10px"> $.each(keys, function() {
</span><span class="cx" style="display: block; padding: 0 10px"> var callback, key;
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-
- if ($.isFunction(this[1])) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+
+ if ( typeof this[1] === 'function' ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> callback = this[1];
</span><span class="cx" style="display: block; padding: 0 10px"> key = this[0];
</span><span class="cx" style="display: block; padding: 0 10px"> $.hotkeys.add(key, opts.hotkeys_opts, function(event) { return callback(event, $.table_hotkeys.current_row); });
</span></span></pre></div>
<a id="trunksrcjs_enqueueswpautosavejs"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/js/_enqueues/wp/autosave.js</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/js/_enqueues/wp/autosave.js 2021-02-23 19:16:26 UTC (rev 50419)
+++ trunk/src/js/_enqueues/wp/autosave.js 2021-02-23 19:43:23 UTC (rev 50420)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -541,7 +541,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> lastCompareString = getCompareString( postData );
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> if ( $( '#title' ).val() !== postData.post_title ) {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $( '#title' ).focus().val( postData.post_title || '' );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $( '#title' ).trigger( 'focus' ).val( postData.post_title || '' );
</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"> $( '#excerpt' ).val( postData.excerpt || '' );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -560,8 +560,8 @@
</span><span class="cx" style="display: block; padding: 0 10px"> } else {
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> // Make sure the Text editor is selected.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $( '#content-html' ).click();
- $( '#content' ).focus();
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $( '#content-html' ).trigger( 'click' );
+ $( '#content' ).trigger( 'focus' );
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> // Using document.execCommand() will let the user undo.
</span><span class="cx" style="display: block; padding: 0 10px"> document.execCommand( 'selectAll' );
</span></span></pre></div>
<a id="trunksrcjs_enqueueswpdashboardjs"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/js/_enqueues/wp/dashboard.js</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/js/_enqueues/wp/dashboard.js 2021-02-23 19:16:26 UTC (rev 50419)
+++ trunk/src/js/_enqueues/wp/dashboard.js 2021-02-23 19:43:23 UTC (rev 50420)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -154,7 +154,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> highlightLatestPost();
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> // Focus the title to allow for quickly drafting another post.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $('#title').focus();
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $('#title').trigger( 'focus' );
</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"> /**
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -391,7 +391,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * lose their place.
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> if ( $target.hasClass( 'community-events-cancel' ) ) {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $toggleButton.focus();
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $toggleButton.trigger( 'focus' );
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px"> } else {
</span><span class="cx" style="display: block; padding: 0 10px"> $toggleButton.attr( 'aria-expanded', 'true' );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -610,7 +610,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * bring the focus back to the toggle button so users relying
</span><span class="cx" style="display: block; padding: 0 10px"> * on screen readers don't lose their place.
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $toggleButton.focus();
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $toggleButton.trigger( 'focus' );
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px"> } else {
</span><span class="cx" style="display: block; padding: 0 10px"> app.toggleLocationForm( 'show' );
</span></span></pre></div>
<a id="trunksrcjs_enqueueswpsvgpainterjs"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/js/_enqueues/wp/svg-painter.js</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/js/_enqueues/wp/svg-painter.js 2021-02-23 19:16:26 UTC (rev 50419)
+++ trunk/src/js/_enqueues/wp/svg-painter.js 2021-02-23 19:43:23 UTC (rev 50420)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -160,17 +160,14 @@
</span><span class="cx" style="display: block; padding: 0 10px"> painter.paintElement( $element, 'base' );
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> // Set hover callbacks.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $menuitem.hover(
- function() {
- painter.paintElement( $element, 'focus' );
- },
- function() {
- // Match the delay from hoverIntent.
- window.setTimeout( function() {
- painter.paintElement( $element, 'base' );
- }, 100 );
- }
- );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $menuitem.on( 'mouseenter', function() {
+ painter.paintElement( $element, 'focus' );
+ } ).on( 'mouseleave', function() {
+ // Match the delay from hoverIntent.
+ window.setTimeout( function() {
+ painter.paintElement( $element, 'base' );
+ }, 100 );
+ } );
</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"> },
</span></span></pre></div>
<a id="trunksrcjs_enqueueswpupdatesjs"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/js/_enqueues/wp/updates.js</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/js/_enqueues/wp/updates.js 2021-02-23 19:16:26 UTC (rev 50419)
+++ trunk/src/js/_enqueues/wp/updates.js 2021-02-23 19:43:23 UTC (rev 50420)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -629,7 +629,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> setTimeout( function() {
</span><span class="cx" style="display: block; padding: 0 10px"> $card
</span><span class="cx" style="display: block; padding: 0 10px"> .removeClass( 'plugin-card-update-failed' )
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- .find( '.column-name a' ).focus();
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ .find( '.column-name a' ).trigger( 'focus' );
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> $card.find( '.update-now' )
</span><span class="cx" style="display: block; padding: 0 10px"> .attr( 'aria-label', false )
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -801,7 +801,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> setTimeout( function() {
</span><span class="cx" style="display: block; padding: 0 10px"> $card
</span><span class="cx" style="display: block; padding: 0 10px"> .removeClass( 'plugin-card-update-failed' )
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- .find( '.column-name a' ).focus();
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ .find( '.column-name a' ).trigger( 'focus' );
</ins><span class="cx" style="display: block; padding: 0 10px"> }, 200 );
</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">@@ -1215,10 +1215,10 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> // Focus on Customize button after updating.
</span><span class="cx" style="display: block; padding: 0 10px"> if ( isModalOpen ) {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $( '.load-customize:visible' ).focus();
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $( '.load-customize:visible' ).trigger( 'focus' );
</ins><span class="cx" style="display: block; padding: 0 10px"> $( '.theme-info .theme-autoupdate' ).find( '.auto-update-time' ).empty();
</span><span class="cx" style="display: block; padding: 0 10px"> } else {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $theme.find( '.load-customize' ).focus();
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $theme.find( '.load-customize' ).trigger( 'focus' );
</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">
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1271,7 +1271,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> } else {
</span><span class="cx" style="display: block; padding: 0 10px"> $notice = $( '.theme-info .notice' ).add( $theme.find( '.notice' ) );
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $( 'body.modal-open' ).length ? $( '.load-customize:visible' ).focus() : $theme.find( '.load-customize' ).focus();
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $( 'body.modal-open' ).length ? $( '.load-customize:visible' ).trigger( 'focus' ) : $theme.find( '.load-customize' ).trigger( 'focus');
</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"> wp.updates.addAdminNotice( {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1768,11 +1768,11 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> // #upgrade button must always be the last focus-able element in the dialog.
</span><span class="cx" style="display: block; padding: 0 10px"> if ( 'upgrade' === event.target.id && ! event.shiftKey ) {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $( '#hostname' ).focus();
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $( '#hostname' ).trigger( 'focus' );
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> event.preventDefault();
</span><span class="cx" style="display: block; padding: 0 10px"> } else if ( 'hostname' === event.target.id && event.shiftKey ) {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $( '#upgrade' ).focus();
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $( '#upgrade' ).trigger( 'focus' );
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> event.preventDefault();
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1789,7 +1789,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> $( 'body' ).addClass( 'modal-open' );
</span><span class="cx" style="display: block; padding: 0 10px"> $modal.show();
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $modal.find( 'input:enabled:first' ).focus();
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $modal.find( 'input:enabled:first' ).trigger( 'focus' );
</ins><span class="cx" style="display: block; padding: 0 10px"> $modal.on( 'keydown', wp.updates.keydown );
</span><span class="cx" style="display: block; padding: 0 10px"> };
</span><span class="cx" style="display: block; padding: 0 10px">
</span></span></pre></div>
<a id="trunksrcjs_enqueueswpwidgetstextjs"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/js/_enqueues/wp/widgets/text.js</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/js/_enqueues/wp/widgets/text.js 2021-02-23 19:16:26 UTC (rev 50419)
+++ trunk/src/js/_enqueues/wp/widgets/text.js 2021-02-23 19:43:23 UTC (rev 50420)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -59,7 +59,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> control.customHtmlWidgetPointer.find( '.close' ).on( 'click', function( event ) {
</span><span class="cx" style="display: block; padding: 0 10px"> event.preventDefault();
</span><span class="cx" style="display: block; padding: 0 10px"> control.customHtmlWidgetPointer.hide();
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $( '#' + control.fields.text.attr( 'id' ) + '-html' ).focus();
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $( '#' + control.fields.text.attr( 'id' ) + '-html' ).trigger( 'focus' );
</ins><span class="cx" style="display: block; padding: 0 10px"> control.dismissPointers( [ 'text_widget_custom_html' ] );
</span><span class="cx" style="display: block; padding: 0 10px"> });
</span><span class="cx" style="display: block; padding: 0 10px"> control.customHtmlWidgetPointer.find( '.add-widget' ).on( 'click', function( event ) {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -278,7 +278,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> showPointerElement = function( pointerElement ) {
</span><span class="cx" style="display: block; padding: 0 10px"> pointerElement.show();
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- pointerElement.find( '.close' ).focus();
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ pointerElement.find( '.close' ).trigger( 'focus' );
</ins><span class="cx" style="display: block; padding: 0 10px"> wp.a11y.speak( pointerElement.find( 'h3, p' ).map( function() {
</span><span class="cx" style="display: block; padding: 0 10px"> return $( this ).text();
</span><span class="cx" style="display: block; padding: 0 10px"> } ).get().join( '\n\n' ) );
</span></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 2021-02-23 19:16:26 UTC (rev 50419)
+++ trunk/src/wp-includes/script-loader.php 2021-02-23 19:43:23 UTC (rev 50420)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -827,7 +827,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> $scripts->add( 'jquery-color', '/wp-includes/js/jquery/jquery.color.min.js', array( 'jquery' ), '2.1.2', 1 );
</span><span class="cx" style="display: block; padding: 0 10px"> $scripts->add( 'schedule', '/wp-includes/js/jquery/jquery.schedule.js', array( 'jquery' ), '20m', 1 );
</span><span class="cx" style="display: block; padding: 0 10px"> $scripts->add( 'jquery-query', '/wp-includes/js/jquery/jquery.query.js', array( 'jquery' ), '2.1.7', 1 );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $scripts->add( 'jquery-serialize-object', '/wp-includes/js/jquery/jquery.serialize-object.js', array( 'jquery' ), '0.2', 1 );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $scripts->add( 'jquery-serialize-object', '/wp-includes/js/jquery/jquery.serialize-object.js', array( 'jquery' ), '0.2-wp', 1 );
</ins><span class="cx" style="display: block; padding: 0 10px"> $scripts->add( 'jquery-hotkeys', "/wp-includes/js/jquery/jquery.hotkeys$suffix.js", array( 'jquery' ), '0.0.2m', 1 );
</span><span class="cx" style="display: block; padding: 0 10px"> $scripts->add( 'jquery-table-hotkeys', "/wp-includes/js/jquery/jquery.table-hotkeys$suffix.js", array( 'jquery', 'jquery-hotkeys' ), false, 1 );
</span><span class="cx" style="display: block; padding: 0 10px"> $scripts->add( 'jquery-touch-punch', '/wp-includes/js/jquery/jquery.ui.touch-punch.js', array( 'jquery-ui-core', 'jquery-ui-mouse' ), '0.2.2', 1 );
</span></span></pre>
</div>
</div>
</body>
</html>