<!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>[50001] trunk/src: External Libraries: First pass at fixing jQuery deprecations in WordPress core and bundled themes.</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/50001">50001</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/50001","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-01-22 12:30:39 +0000 (Fri, 22 Jan 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: First pass at fixing jQuery deprecations in WordPress core and bundled themes.
To be able to disable jQuery Migrate as step 3 of updating the jQuery version shipped with WordPress, all `JQMIGRATE` warnings in the browser console will have to be addressed.
This includes many minor adjustments to a wide array of core files.
Follow-up to:
* Step 1: Disabling jQuery Migrate 1.4.1 in WordPress 5.5: <a href="https://core.trac.wordpress.org/changeset/48323">[48323]</a>, <a href="https://core.trac.wordpress.org/changeset/48324">[48324]</a>
* Step 2: Updating jQuery to 3.5.1 and adding jQuery Migrate 3.3.x in WordPress 5.6: <a href="https://core.trac.wordpress.org/changeset/49101">[49101]</a>, <a href="https://core.trac.wordpress.org/changeset/49338">[49338]</a>, <a href="https://core.trac.wordpress.org/changeset/49615">[49615]</a>, <a href="https://core.trac.wordpress.org/changeset/49649">[49649]</a>
Props Clorith, azaozz.
See <a href="https://core.trac.wordpress.org/ticket/51812">#51812</a>.</pre>
<h3>Modified Paths</h3>
<ul>
<li><a href="#trunksrcjs_enqueuesadminapplicationpasswordsjs">trunk/src/js/_enqueues/admin/application-passwords.js</a></li>
<li><a href="#trunksrcjs_enqueuesadmincommentjs">trunk/src/js/_enqueues/admin/comment.js</a></li>
<li><a href="#trunksrcjs_enqueuesadmincommonjs">trunk/src/js/_enqueues/admin/common.js</a></li>
<li><a href="#trunksrcjs_enqueuesadmineditcommentsjs">trunk/src/js/_enqueues/admin/edit-comments.js</a></li>
<li><a href="#trunksrcjs_enqueuesadmininlineeditpostjs">trunk/src/js/_enqueues/admin/inline-edit-post.js</a></li>
<li><a href="#trunksrcjs_enqueuesadmininlineedittaxjs">trunk/src/js/_enqueues/admin/inline-edit-tax.js</a></li>
<li><a href="#trunksrcjs_enqueuesadminmediauploadjs">trunk/src/js/_enqueues/admin/media-upload.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_enqueuesadminsitehealthjs">trunk/src/js/_enqueues/admin/site-health.js</a></li>
<li><a href="#trunksrcjs_enqueuesadmintagsjs">trunk/src/js/_enqueues/admin/tags.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_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_enqueuesliblinkjs">trunk/src/js/_enqueues/lib/link.js</a></li>
<li><a href="#trunksrcjs_enqueueslibnavmenujs">trunk/src/js/_enqueues/lib/nav-menu.js</a></li>
<li><a href="#trunksrcjs_enqueuesvendorpluploadwppluploadjs">trunk/src/js/_enqueues/vendor/plupload/wp-plupload.js</a></li>
<li><a href="#trunksrcjs_enqueueswpcustomizebasejs">trunk/src/js/_enqueues/wp/customize/base.js</a></li>
<li><a href="#trunksrcjs_enqueueswpcustomizecontrolsjs">trunk/src/js/_enqueues/wp/customize/controls.js</a></li>
<li><a href="#trunksrcjs_enqueueswpcustomizenavmenusjs">trunk/src/js/_enqueues/wp/customize/nav-menus.js</a></li>
<li><a href="#trunksrcjs_enqueueswpdashboardjs">trunk/src/js/_enqueues/wp/dashboard.js</a></li>
<li><a href="#trunksrcjs_enqueueswppasswordstrengthmeterjs">trunk/src/js/_enqueues/wp/password-strength-meter.js</a></li>
<li><a href="#trunksrcjs_enqueueswpthemeplugineditorjs">trunk/src/js/_enqueues/wp/theme-plugin-editor.js</a></li>
<li><a href="#trunksrcjs_enqueueswpthemejs">trunk/src/js/_enqueues/wp/theme.js</a></li>
<li><a href="#trunksrcjs_enqueueswpupdatesjs">trunk/src/js/_enqueues/wp/updates.js</a></li>
<li><a href="#trunksrcjs_enqueueswpwidgetscustomhtmljs">trunk/src/js/_enqueues/wp/widgets/custom-html.js</a></li>
<li><a href="#trunksrcjs_enqueueswpwidgetsmediajs">trunk/src/js/_enqueues/wp/widgets/media.js</a></li>
<li><a href="#trunksrcjsmediaviewsfocusmanagerjs">trunk/src/js/media/views/focus-manager.js</a></li>
<li><a href="#trunksrcjsmediaviewsframeeditattachmentsjs">trunk/src/js/media/views/frame/edit-attachments.js</a></li>
<li><a href="#trunksrcjsmediaviewsmodaljs">trunk/src/js/media/views/modal.js</a></li>
<li><a href="#trunksrcwpadminexportphp">trunk/src/wp-admin/export.php</a></li>
<li><a href="#trunksrcwpadminincludesmsphp">trunk/src/wp-admin/includes/ms.php</a></li>
<li><a href="#trunksrcwpadminincludesoptionsphp">trunk/src/wp-admin/includes/options.php</a></li>
<li><a href="#trunksrcwpcontentthemestwentyelevenjsshowcasejs">trunk/src/wp-content/themes/twentyeleven/js/showcase.js</a></li>
<li><a href="#trunksrcwpcontentthemestwentyfifteenjsfunctionsjs">trunk/src/wp-content/themes/twentyfifteen/js/functions.js</a></li>
<li><a href="#trunksrcwpcontentthemestwentyfourteenjsfunctionsjs">trunk/src/wp-content/themes/twentyfourteen/js/functions.js</a></li>
<li><a href="#trunksrcwpcontentthemestwentyseventeenassetsjsglobaljs">trunk/src/wp-content/themes/twentyseventeen/assets/js/global.js</a></li>
<li><a href="#trunksrcwpcontentthemestwentyseventeenassetsjsnavigationjs">trunk/src/wp-content/themes/twentyseventeen/assets/js/navigation.js</a></li>
<li><a href="#trunksrcwpcontentthemestwentysixteenjsfunctionsjs">trunk/src/wp-content/themes/twentysixteen/js/functions.js</a></li>
<li><a href="#trunksrcwpcontentthemestwentythirteenjsfunctionsjs">trunk/src/wp-content/themes/twentythirteen/js/functions.js</a></li>
</ul>
</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunksrcjs_enqueuesadminapplicationpasswordsjs"></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/application-passwords.js</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/js/_enqueues/admin/application-passwords.js 2021-01-21 12:37:39 UTC (rev 50000)
+++ trunk/src/js/_enqueues/admin/application-passwords.js 2021-01-22 12:30:39 UTC (rev 50001)
</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"> tmplAppPassRow = wp.template( 'application-password-row' ),
</span><span class="cx" style="display: block; padding: 0 10px"> userId = $( '#user_id' ).val();
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $newAppPassButton.click( function( e ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $newAppPassButton.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"> if ( $newAppPassButton.prop( 'aria-disabled' ) ) {
</span></span></pre></div>
<a id="trunksrcjs_enqueuesadmincommentjs"></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/comment.js</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/js/_enqueues/admin/comment.js 2021-01-21 12:37:39 UTC (rev 50000)
+++ trunk/src/js/_enqueues/admin/comment.js 2021-01-22 12:30:39 UTC (rev 50001)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -29,11 +29,11 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @param {Event} event The event object.
</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">- $edittimestamp.click( function( event ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $edittimestamp.on( 'click', function( event ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> if ( $timestampdiv.is( ':hidden' ) ) {
</span><span class="cx" style="display: block; padding: 0 10px"> // Slide down the form and set focus on the first field.
</span><span class="cx" style="display: block; padding: 0 10px"> $timestampdiv.slideDown( 'fast', function() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $( 'input, select', $timestampwrap ).first().focus();
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $( 'input, select', $timestampwrap ).first().trigger( 'focus' );
</ins><span class="cx" style="display: block; padding: 0 10px"> } );
</span><span class="cx" style="display: block; padding: 0 10px"> $(this).hide();
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -49,9 +49,9 @@
</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">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $timestampdiv.find('.cancel-timestamp').click( function( event ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $timestampdiv.find('.cancel-timestamp').on( 'click', function( event ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> // Move focus back to the Edit link.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $edittimestamp.show().focus();
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $edittimestamp.show().trigger( 'focus' );
</ins><span class="cx" style="display: block; padding: 0 10px"> $timestampdiv.slideUp( 'fast' );
</span><span class="cx" style="display: block; padding: 0 10px"> $('#mm').val($('#hidden_mm').val());
</span><span class="cx" style="display: block; padding: 0 10px"> $('#jj').val($('#hidden_jj').val());
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -70,7 +70,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @param {Event} event The event object.
</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">- $timestampdiv.find('.save-timestamp').click( function( event ) { // Crazyhorse - multiple OK cancels.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $timestampdiv.find('.save-timestamp').on( 'click', function( event ) { // Crazyhorse - multiple OK cancels.
</ins><span class="cx" style="display: block; padding: 0 10px"> var aa = $('#aa').val(), mm = $('#mm').val(), jj = $('#jj').val(), hh = $('#hh').val(), mn = $('#mn').val(),
</span><span class="cx" style="display: block; padding: 0 10px"> newD = new Date( aa, mm - 1, jj, hh, mn );
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -96,7 +96,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"> // Move focus back to the Edit link.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $edittimestamp.show().focus();
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $edittimestamp.show().trigger( 'focus' );
</ins><span class="cx" style="display: block; padding: 0 10px"> $timestampdiv.slideUp( 'fast' );
</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-01-21 12:37:39 UTC (rev 50000)
+++ trunk/src/js/_enqueues/admin/common.js 2021-01-22 12:30:39 UTC (rev 50001)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -382,7 +382,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> init : function() {
</span><span class="cx" style="display: block; padding: 0 10px"> var that = this;
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $('.hide-column-tog', '#adv-settings').click( function() {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $('.hide-column-tog', '#adv-settings').on( 'click', function() {
</ins><span class="cx" style="display: block; padding: 0 10px"> var $t = $(this), column = $t.val();
</span><span class="cx" style="display: block; padding: 0 10px"> if ( $t.prop('checked') )
</span><span class="cx" style="display: block; padding: 0 10px"> that.checked(column);
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -500,7 +500,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> .filter( function() { return $( ':input:visible', this ).val() === ''; } )
</span><span class="cx" style="display: block; padding: 0 10px"> .addClass( 'form-invalid' )
</span><span class="cx" style="display: block; padding: 0 10px"> .find( ':input:visible' )
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- .change( function() { $( this ).closest( '.form-invalid' ).removeClass( 'form-invalid' ); } )
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ .on( 'change', function() { $( this ).closest( '.form-invalid' ).removeClass( 'form-invalid' ); } )
</ins><span class="cx" style="display: block; padding: 0 10px"> .length;
</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">@@ -571,7 +571,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> this.toggles = $( '#screen-meta-links' ).find( '.show-settings' );
</span><span class="cx" style="display: block; padding: 0 10px"> this.page = $('#wpcontent');
</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.toggles.click( this.toggleEvent );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ this.toggles.on( 'click', this.toggleEvent );
</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">@@ -617,7 +617,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"> panel.slideDown( 'fast', function() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- panel.focus();
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ panel.trigger( 'focus' );
</ins><span class="cx" style="display: block; padding: 0 10px"> button.addClass( 'screen-meta-active' ).attr( 'aria-expanded', true );
</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">@@ -659,7 +659,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">-$('.contextual-help-tabs').delegate('a', 'click', function(e) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+$('.contextual-help-tabs').on( 'click', 'a', function(e) {
</ins><span class="cx" style="display: block; padding: 0 10px"> var link = $(this),
</span><span class="cx" style="display: block; padding: 0 10px"> panel;
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -798,7 +798,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> if ( permalinkStructureFocused && $permalinkStructure[0].setSelectionRange ) {
</span><span class="cx" style="display: block; padding: 0 10px"> newSelectionStart = ( permalinkStructureValue.substr( 0, selectionStart ) + textToAppend ).length;
</span><span class="cx" style="display: block; padding: 0 10px"> $permalinkStructure[0].setSelectionRange( newSelectionStart, newSelectionStart );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $permalinkStructure.focus();
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $permalinkStructure.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">@@ -1302,7 +1302,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> $( this ).closest( 'tr' ).toggleClass( 'is-expanded' );
</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">- $('#default-password-nag-no').click( function() {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $('#default-password-nag-no').on( 'click', function() {
</ins><span class="cx" style="display: block; padding: 0 10px"> setUserSetting('default_password_nag', 'hide');
</span><span class="cx" style="display: block; padding: 0 10px"> $('div.default-password-nag').hide();
</span><span class="cx" style="display: block; padding: 0 10px"> return false;
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1315,7 +1315,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">- $('#newcontent').bind('keydown.wpevent_InsertTab', function(e) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $('#newcontent').on('keydown.wpevent_InsertTab', function(e) {
</ins><span class="cx" style="display: block; padding: 0 10px"> var el = e.target, selStart, selEnd, val, scroll, sel;
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> // After pressing escape key (keyCode: 27), the tab key should tab out of the textarea.
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1374,7 +1374,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">- pageInput.closest('form').submit( function() {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ pageInput.closest('form').on( 'submit', function() {
</ins><span class="cx" style="display: block; padding: 0 10px"> /*
</span><span class="cx" style="display: block; padding: 0 10px"> * action = bulk action dropdown at the top of the table
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1388,7 +1388,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">- $('.search-box input[type="search"], .search-box input[type="submit"]').mousedown(function () {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $('.search-box input[type="search"], .search-box input[type="submit"]').on( 'mousedown', function () {
</ins><span class="cx" style="display: block; padding: 0 10px"> $('select[name^="action"]').val('-1');
</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">@@ -1689,7 +1689,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> $wpwrap.toggleClass( 'wp-responsive-open' );
</span><span class="cx" style="display: block; padding: 0 10px"> if ( $wpwrap.hasClass( 'wp-responsive-open' ) ) {
</span><span class="cx" style="display: block; padding: 0 10px"> $(this).find('a').attr( 'aria-expanded', 'true' );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $( '#adminmenu a:first' ).focus();
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $( '#adminmenu a:first' ).trigger( 'focus' );
</ins><span class="cx" style="display: block; padding: 0 10px"> } else {
</span><span class="cx" style="display: block; padding: 0 10px"> $(this).find('a').attr( 'aria-expanded', 'false' );
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1978,7 +1978,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> $document.on( 'wp-pin-menu wp-window-resized.pin-menu postboxes-columnchange.pin-menu postbox-toggled.pin-menu wp-collapse-menu.pin-menu wp-scroll-start.pin-menu', setPinMenu );
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> // Set initial focus on a specific element.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $( '.wp-initial-focus' ).focus();
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $( '.wp-initial-focus' ).trigger( 'focus' );
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> // Toggle update details on update-core.php.
</span><span class="cx" style="display: block; padding: 0 10px"> $body.on( 'click', '.js-update-details-toggle', function() {
</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-01-21 12:37:39 UTC (rev 50000)
+++ trunk/src/js/_enqueues/admin/edit-comments.js 2021-01-22 12:30:39 UTC (rev 50001)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -445,7 +445,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> a.attr('class', 'vim-z vim-destructive aria-button-if-js');
</span><span class="cx" style="display: block; padding: 0 10px"> $('.avatar', el).first().clone().prependTo('#undo-' + id + ' .' + action + '-undo-inside');
</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.click(function( e ){
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ a.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"> e.stopPropagation(); // Ticket #35904.
</span><span class="cx" style="display: block; padding: 0 10px"> list.wpList.del(this);
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -762,7 +762,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @global
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> window.theList = $('#the-comment-list').wpList( { alt: '', delBefore: delBefore, dimAfter: dimAfter, delAfter: delAfter, addColor: 'none' } )
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- .bind('wpListDelEnd', function(e, s){
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ .on('wpListDelEnd', function(e, s){
</ins><span class="cx" style="display: block; padding: 0 10px"> var wpListsData = $(s.target).attr('data-wp-lists'), id = s.element.replace(/[^0-9]+/g, '');
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> if ( wpListsData.indexOf(':trash=1') != -1 || wpListsData.indexOf(':spam=1') != -1 )
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -793,9 +793,9 @@
</span><span class="cx" style="display: block; padding: 0 10px"> init : function() {
</span><span class="cx" style="display: block; padding: 0 10px"> var row = $('#replyrow');
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $( '.cancel', row ).click( function() { return commentReply.revert(); } );
- $( '.save', row ).click( function() { return commentReply.send(); } );
- $( 'input#author-name, input#author-email, input#author-url', row ).keypress( function( e ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $( '.cancel', row ).on( 'click', function() { return commentReply.revert(); } );
+ $( '.save', row ).on( 'click', function() { return commentReply.send(); } );
+ $( 'input#author-name, input#author-email, input#author-url', row ).on( 'keypress', function( e ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> if ( e.which == 13 ) {
</span><span class="cx" style="display: block; padding: 0 10px"> commentReply.send();
</span><span class="cx" style="display: block; padding: 0 10px"> e.preventDefault();
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -804,11 +804,11 @@
</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"> // Add events.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $('#the-comment-list .column-comment > p').dblclick(function(){
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $('#the-comment-list .column-comment > p').on( 'dblclick', function(){
</ins><span class="cx" style="display: block; padding: 0 10px"> commentReply.toggle($(this).parent());
</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">- $('#doaction, #post-query-submit').click(function(){
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $('#doaction, #post-query-submit').on( 'click', function(){
</ins><span class="cx" style="display: block; padding: 0 10px"> if ( $('#the-comment-list #replyrow').length > 0 )
</span><span class="cx" style="display: block; padding: 0 10px"> commentReply.close();
</span><span class="cx" style="display: block; padding: 0 10px"> });
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -831,7 +831,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> addEvents : function(r) {
</span><span class="cx" style="display: block; padding: 0 10px"> r.each(function() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $(this).find('.column-comment > p').dblclick(function(){
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $(this).find('.column-comment > p').on( 'dblclick', function(){
</ins><span class="cx" style="display: block; padding: 0 10px"> commentReply.toggle($(this).parent());
</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">@@ -905,7 +905,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> .show()
</span><span class="cx" style="display: block; padding: 0 10px"> .find( '.vim-q' )
</span><span class="cx" style="display: block; padding: 0 10px"> .attr( 'aria-expanded', 'false' )
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- .focus();
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ .trigger( 'focus' );
</ins><span class="cx" style="display: block; padding: 0 10px"> } ).css( 'backgroundColor', '' );
</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">@@ -913,7 +913,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> if ( 'replyto-comment' === this.act ) {
</span><span class="cx" style="display: block; padding: 0 10px"> commentRow.find( '.vim-r' )
</span><span class="cx" style="display: block; padding: 0 10px"> .attr( 'aria-expanded', 'false' )
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- .focus();
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ .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"> // Reset the Quicktags buttons.
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1032,7 +1032,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> else if ( rtop - 20 < scrollTop )
</span><span class="cx" style="display: block; padding: 0 10px"> window.scroll(0, rtop - 35);
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $('#replycontent').focus().keyup(function(e){
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $('#replycontent').trigger( 'focus' ).on( 'keyup', function(e){
</ins><span class="cx" style="display: block; padding: 0 10px"> if ( e.which == 27 )
</span><span class="cx" style="display: block; padding: 0 10px"> commentReply.revert(); // Close on Escape.
</span><span class="cx" style="display: block; padding: 0 10px"> });
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1135,7 +1135,8 @@
</span><span class="cx" style="display: block; padding: 0 10px"> updateCountText( 'span.all-count', 1 );
</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">- c = $.trim(r.data); // Trim leading whitespaces.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ r.data = r.data || '';
+ c = r.data.toString().trim(); // Trim leading whitespaces.
</ins><span class="cx" style="display: block; padding: 0 10px"> $(c).hide();
</span><span class="cx" style="display: block; padding: 0 10px"> $('#replyrow').after(c);
</span><span class="cx" style="display: block; padding: 0 10px">
</span></span></pre></div>
<a id="trunksrcjs_enqueuesadmininlineeditpostjs"></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/inline-edit-post.js</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/js/_enqueues/admin/inline-edit-post.js 2021-01-21 12:37:39 UTC (rev 50000)
+++ trunk/src/js/_enqueues/admin/inline-edit-post.js 2021-01-22 12:30:39 UTC (rev 50001)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -51,7 +51,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @return {boolean} The result of revert.
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- qeRow.keyup(function(e){
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ qeRow.on( 'keyup', function(e){
</ins><span class="cx" style="display: block; padding: 0 10px"> // Revert changes if Escape key is pressed.
</span><span class="cx" style="display: block; padding: 0 10px"> if ( e.which === 27 ) {
</span><span class="cx" style="display: block; padding: 0 10px"> return inlineEditPost.revert();
</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"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @return {boolean} The result of revert.
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- bulkRow.keyup(function(e){
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ bulkRow.on( 'keyup', function(e){
</ins><span class="cx" style="display: block; padding: 0 10px"> // Revert changes if Escape key is pressed.
</span><span class="cx" style="display: block; padding: 0 10px"> if ( e.which === 27 ) {
</span><span class="cx" style="display: block; padding: 0 10px"> return inlineEditPost.revert();
</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"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @return {boolean} The result of revert.
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $( '.cancel', qeRow ).click( function() {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $( '.cancel', qeRow ).on( 'click', function() {
</ins><span class="cx" style="display: block; padding: 0 10px"> return inlineEditPost.revert();
</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">@@ -84,7 +84,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @return {boolean} The result of save.
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $( '.save', qeRow ).click( function() {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $( '.save', qeRow ).on( 'click', function() {
</ins><span class="cx" style="display: block; padding: 0 10px"> return inlineEditPost.save(this);
</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">@@ -93,7 +93,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @return {boolean} The result of save.
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $('td', qeRow).keydown(function(e){
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $('td', qeRow).on( 'keydown', function(e){
</ins><span class="cx" style="display: block; padding: 0 10px"> if ( e.which === 13 && ! $( e.target ).hasClass( 'cancel' ) ) {
</span><span class="cx" style="display: block; padding: 0 10px"> return inlineEditPost.save(this);
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -104,7 +104,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @return {boolean} The result of revert.
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $( '.cancel', bulkRow ).click( function() {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $( '.cancel', bulkRow ).on( 'click', function() {
</ins><span class="cx" style="display: block; padding: 0 10px"> return inlineEditPost.revert();
</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">@@ -111,7 +111,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><span class="cx" style="display: block; padding: 0 10px"> * Disables the password input field when the private post checkbox is checked.
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $('#inline-edit .inline-edit-private input[value="private"]').click( function(){
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $('#inline-edit .inline-edit-private input[value="private"]').on( 'click', function(){
</ins><span class="cx" style="display: block; padding: 0 10px"> var pw = $('input.inline-edit-password-input');
</span><span class="cx" style="display: block; padding: 0 10px"> if ( $(this).prop('checked') ) {
</span><span class="cx" style="display: block; padding: 0 10px"> pw.val('').prop('disabled', true);
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -139,7 +139,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><span class="cx" style="display: block; padding: 0 10px"> * Adds onclick events to the apply buttons.
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $('#doaction').click(function(e){
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $('#doaction').on( 'click', function(e){
</ins><span class="cx" style="display: block; padding: 0 10px"> var n;
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> t.whichBulkButtonId = $( this ).attr( 'id' );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -215,7 +215,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @listens click
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $('#bulk-titles a').click(function(){
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $('#bulk-titles a').on( 'click', function(){
</ins><span class="cx" style="display: block; padding: 0 10px"> var id = $(this).attr('id').substr(1);
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> $('table.widefat input[value="' + id + '"]').prop('checked', false);
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -383,7 +383,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"> $(editRow).attr('id', 'edit-'+id).addClass('inline-editor').show();
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $('.ptitle', editRow).focus();
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $('.ptitle', editRow).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">@@ -434,7 +434,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> // Move focus back to the Quick Edit button. $( this ) is the row being animated.
</span><span class="cx" style="display: block; padding: 0 10px"> $( this ).find( '.editinline' )
</span><span class="cx" style="display: block; padding: 0 10px"> .attr( 'aria-expanded', 'false' )
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- .focus();
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ .trigger( 'focus' );
</ins><span class="cx" style="display: block; padding: 0 10px"> wp.a11y.speak( wp.i18n.__( 'Changes saved.' ) );
</span><span class="cx" style="display: block; padding: 0 10px"> });
</span><span class="cx" style="display: block; padding: 0 10px"> } else {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -481,7 +481,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> $('#inlineedit').append( $('#bulk-edit') );
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> // Move focus back to the Bulk Action button that was activated.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $( '#' + inlineEditPost.whichBulkButtonId ).focus();
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $( '#' + inlineEditPost.whichBulkButtonId ).trigger( 'focus' );
</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"> // Remove both the inline-editor and its hidden tr siblings.
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -491,7 +491,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> // Show the post row and move focus back to the Quick Edit button.
</span><span class="cx" style="display: block; padding: 0 10px"> $( this.what + id ).show().find( '.editinline' )
</span><span class="cx" style="display: block; padding: 0 10px"> .attr( 'aria-expanded', 'false' )
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- .focus();
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ .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_enqueuesadmininlineedittaxjs"></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/inline-edit-tax.js</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/js/_enqueues/admin/inline-edit-tax.js 2021-01-21 12:37:39 UTC (rev 50000)
+++ trunk/src/js/_enqueues/admin/inline-edit-tax.js 2021-01-22 12:30:39 UTC (rev 50001)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -47,7 +47,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @param {Object} e The keyup event that has been triggered.
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- row.keyup( function( e ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ row.on( 'keyup', function( e ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> // 27 = [Escape].
</span><span class="cx" style="display: block; padding: 0 10px"> if ( e.which === 27 ) {
</span><span class="cx" style="display: block; padding: 0 10px"> return inlineEditTax.revert();
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -57,7 +57,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><span class="cx" style="display: block; padding: 0 10px"> * Cancels inline editing when clicking the cancel button.
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $( '.cancel', row ).click( function() {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $( '.cancel', row ).on( 'click', function() {
</ins><span class="cx" style="display: block; padding: 0 10px"> return inlineEditTax.revert();
</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">@@ -64,7 +64,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><span class="cx" style="display: block; padding: 0 10px"> * Saves the inline edits when clicking the save button.
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $( '.save', row ).click( function() {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $( '.save', row ).on( 'click', function() {
</ins><span class="cx" style="display: block; padding: 0 10px"> return inlineEditTax.save(this);
</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">@@ -71,7 +71,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><span class="cx" style="display: block; padding: 0 10px"> * Saves the inline edits when pressing Enter inside the inline editor.
</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, select', row ).keydown( function( e ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $( 'input, select', row ).on( 'keydown', function( e ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> // 13 = [Enter].
</span><span class="cx" style="display: block; padding: 0 10px"> if ( e.which === 13 ) {
</span><span class="cx" style="display: block; padding: 0 10px"> return inlineEditTax.save( this );
</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"> * Saves the inline edits on submitting the inline edit form.
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $( '#posts-filter input[type="submit"]' ).mousedown( function() {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $( '#posts-filter input[type="submit"]' ).on( 'mousedown', function() {
</ins><span class="cx" style="display: block; padding: 0 10px"> t.revert();
</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">@@ -143,7 +143,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> $(':input[name="slug"]', editRow).val( val );
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> $(editRow).attr('id', 'edit-'+id).addClass('inline-editor').show();
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $('.ptitle', editRow).eq(0).focus();
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $('.ptitle', editRow).eq(0).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">@@ -223,7 +223,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> // Move focus back to the Quick Edit button.
</span><span class="cx" style="display: block; padding: 0 10px"> row.find( '.editinline' )
</span><span class="cx" style="display: block; padding: 0 10px"> .attr( 'aria-expanded', 'false' )
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- .focus();
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ .trigger( 'focus' );
</ins><span class="cx" style="display: block; padding: 0 10px"> wp.a11y.speak( wp.i18n.__( 'Changes saved.' ) );
</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">@@ -268,7 +268,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> // Show the taxonomy row and move focus back to the Quick Edit button.
</span><span class="cx" style="display: block; padding: 0 10px"> $( this.what + id ).show().find( '.editinline' )
</span><span class="cx" style="display: block; padding: 0 10px"> .attr( 'aria-expanded', 'false' )
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- .focus();
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ .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_enqueuesadminmediauploadjs"></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-upload.js</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/js/_enqueues/admin/media-upload.js 2021-01-21 12:37:39 UTC (rev 50000)
+++ trunk/src/js/_enqueues/admin/media-upload.js 2021-01-22 12:30:39 UTC (rev 50001)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -108,6 +108,6 @@
</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"> // Add handler to recalculates the ThickBox position when the window is resized.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $(window).resize(function(){ tb_position(); });
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $(window).on( 'resize', function(){ tb_position(); });
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> })(jQuery);
</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-01-21 12:37:39 UTC (rev 50000)
+++ trunk/src/js/_enqueues/admin/media.js 2021-01-22 12:30:39 UTC (rev 50001)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -158,13 +158,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"> // Prevents form submission if no post has been selected.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $( '#find-posts-submit' ).click( function( event ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $( '#find-posts-submit' ).on( 'click', function( event ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> if ( ! $( '#find-posts-response input[type="radio"]:checked' ).length )
</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="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> // Submits the search query when hitting the enter key in the search input.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $( '#find-posts .find-box-search :input' ).keypress( function( event ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $( '#find-posts .find-box-search :input' ).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"> findPosts.send();
</span><span class="cx" style="display: block; padding: 0 10px"> return false;
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -172,13 +172,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"> // Binds the click event to the search button.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $( '#find-posts-search' ).click( findPosts.send );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $( '#find-posts-search' ).on( 'click', findPosts.send );
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> // Binds the close dialog click event.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $( '#find-posts-close' ).click( findPosts.close );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $( '#find-posts-close' ).on( 'click', findPosts.close );
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> // Binds the bulk action events to the submit buttons.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $( '#doaction' ).click( function( event ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $( '#doaction' ).on( 'click', function( event ) {
</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"> * Handle the bulk action based on its value.
</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-01-21 12:37:39 UTC (rev 50000)
+++ trunk/src/js/_enqueues/admin/plugin-install.js 2021-01-22 12:30:39 UTC (rev 50001)
</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"> };
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $( window ).resize( function() {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $( window ).on( 'resize', function() {
</ins><span class="cx" style="display: block; padding: 0 10px"> tb_position();
</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">@@ -185,7 +185,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"> /* Plugin install related JS */
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $( '#plugin-information-tabs a' ).click( function( event ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $( '#plugin-information-tabs a' ).on( 'click', function( event ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> var tab = $( this ).attr( 'name' );
</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_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-01-21 12:37:39 UTC (rev 50000)
+++ trunk/src/js/_enqueues/admin/post.js 2021-01-22 12:30:39 UTC (rev 50001)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -213,7 +213,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"> wrap.show().find('.currently-editing').text( received.lock_error.text );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- wrap.find('.wp-tab-first').focus();
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ wrap.find('.wp-tab-first').trigger( 'focus' );
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px"> } else if ( received.new_lock ) {
</span><span class="cx" style="display: block; padding: 0 10px"> $('#active_post_lock').val( received.new_lock );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -327,14 +327,14 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> // [Shift] + [Tab] on first tab cycles back to last tab.
</span><span class="cx" style="display: block; padding: 0 10px"> if ( target.hasClass('wp-tab-first') && e.shiftKey ) {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $(this).find('.wp-tab-last').focus();
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $(this).find('.wp-tab-last').trigger( 'focus' );
</ins><span class="cx" style="display: block; padding: 0 10px"> e.preventDefault();
</span><span class="cx" style="display: block; padding: 0 10px"> // [Tab] on last tab cycles back to first tab.
</span><span class="cx" style="display: block; padding: 0 10px"> } else if ( target.hasClass('wp-tab-last') && ! e.shiftKey ) {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $(this).find('.wp-tab-first').focus();
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $(this).find('.wp-tab-first').trigger( 'focus' );
</ins><span class="cx" style="display: block; padding: 0 10px"> e.preventDefault();
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- }).filter(':visible').find('.wp-tab-first').focus();
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ }).filter(':visible').find('.wp-tab-first').trigger( 'focus' );
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> // Set the heartbeat interval to 15 seconds if post lock dialogs are enabled.
</span><span class="cx" style="display: block; padding: 0 10px"> if ( wp.heartbeat && $('#post-lock-dialog').length ) {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -437,7 +437,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> if ( editor && ! editor.isHidden() ) {
</span><span class="cx" style="display: block; padding: 0 10px"> editor.focus();
</span><span class="cx" style="display: block; padding: 0 10px"> } else if ( $textarea.length ) {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $textarea.focus();
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $textarea.trigger( 'focus' );
</ins><span class="cx" style="display: block; padding: 0 10px"> } else {
</span><span class="cx" style="display: block; padding: 0 10px"> return;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -578,7 +578,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"> // @todo Move to jQuery 1.3+, support for multiple hierarchical taxonomies, see wp-lists.js.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $('a', '#' + taxonomy + '-tabs').click( function( e ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $('a', '#' + taxonomy + '-tabs').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"> 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="lines" style="display: block; padding: 0 10px; color: #888">@@ -608,8 +608,8 @@
</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"> // After submitting a new taxonomy, re-focus the input field.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $('#' + taxonomy + '-add-submit').click( function() {
- $('#new' + taxonomy).focus();
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $('#' + taxonomy + '-add-submit').on( 'click', function() {
+ $('#new' + taxonomy).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">@@ -658,11 +658,11 @@
</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"> // Add new taxonomy button toggles input form visibility.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $('#' + taxonomy + '-add-toggle').click( function( e ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $('#' + taxonomy + '-add-toggle').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"> $('#' + taxonomy + '-adder').toggleClass( 'wp-hidden-children' );
</span><span class="cx" style="display: block; padding: 0 10px"> $('a[href="#' + taxonomy + '-all"]', '#' + taxonomy + '-tabs').click();
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $('#new'+taxonomy).focus();
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $('#new'+taxonomy).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"> // Sync checked items between "All {taxonomy}" and "Most used" lists.
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -834,12 +834,12 @@
</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"> // Show the visibility options and hide the toggle button when opened.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $( '#visibility .edit-visibility').click( function( e ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $( '#visibility .edit-visibility').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"> if ( $postVisibilitySelect.is(':hidden') ) {
</span><span class="cx" style="display: block; padding: 0 10px"> updateVisibility();
</span><span class="cx" style="display: block; padding: 0 10px"> $postVisibilitySelect.slideDown( 'fast', function() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $postVisibilitySelect.find( 'input[type="radio"]' ).first().focus();
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $postVisibilitySelect.find( 'input[type="radio"]' ).first().trigger( 'focus' );
</ins><span class="cx" style="display: block; padding: 0 10px"> } );
</span><span class="cx" style="display: block; padding: 0 10px"> $(this).hide();
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -846,23 +846,23 @@
</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"> // Cancel visibility selection area and hide it from view.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $postVisibilitySelect.find('.cancel-post-visibility').click( function( event ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $postVisibilitySelect.find('.cancel-post-visibility').on( 'click', function( event ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> $postVisibilitySelect.slideUp('fast');
</span><span class="cx" style="display: block; padding: 0 10px"> $('#visibility-radio-' + $('#hidden-post-visibility').val()).prop('checked', true);
</span><span class="cx" style="display: block; padding: 0 10px"> $('#post_password').val($('#hidden-post-password').val());
</span><span class="cx" style="display: block; padding: 0 10px"> $('#sticky').prop('checked', $('#hidden-post-sticky').prop('checked'));
</span><span class="cx" style="display: block; padding: 0 10px"> $('#post-visibility-display').html(visibility);
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $('#visibility .edit-visibility').show().focus();
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $('#visibility .edit-visibility').show().trigger( 'focus' );
</ins><span class="cx" style="display: block; padding: 0 10px"> updateText();
</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="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> // Set the selected visibility as current.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $postVisibilitySelect.find('.save-post-visibility').click( function( event ) { // Crazyhorse - multiple OK cancels.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $postVisibilitySelect.find('.save-post-visibility').on( 'click', function( event ) { // Crazyhorse - multiple OK cancels.
</ins><span class="cx" style="display: block; padding: 0 10px"> var visibilityLabel = '', selectedVisibility = $postVisibilitySelect.find('input:radio:checked').val();
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> $postVisibilitySelect.slideUp('fast');
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $('#visibility .edit-visibility').show().focus();
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $('#visibility .edit-visibility').show().trigger( 'focus' );
</ins><span class="cx" style="display: block; padding: 0 10px"> updateText();
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> if ( 'public' !== selectedVisibility ) {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -886,15 +886,15 @@
</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"> // When the selection changes, update labels.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $postVisibilitySelect.find('input:radio').change( function() {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $postVisibilitySelect.find('input:radio').on( 'change', function() {
</ins><span class="cx" style="display: block; padding: 0 10px"> updateVisibility();
</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"> // Edit publish time click.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $timestampdiv.siblings('a.edit-timestamp').click( function( event ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $timestampdiv.siblings('a.edit-timestamp').on( 'click', function( event ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> if ( $timestampdiv.is( ':hidden' ) ) {
</span><span class="cx" style="display: block; padding: 0 10px"> $timestampdiv.slideDown( 'fast', function() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $( 'input, select', $timestampdiv.find( '.timestamp-wrap' ) ).first().focus();
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $( 'input, select', $timestampdiv.find( '.timestamp-wrap' ) ).first().trigger( 'focus' );
</ins><span class="cx" style="display: block; padding: 0 10px"> } );
</span><span class="cx" style="display: block; padding: 0 10px"> $(this).hide();
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -902,8 +902,8 @@
</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"> // Cancel editing the publish time and hide the settings.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $timestampdiv.find('.cancel-timestamp').click( function( event ) {
- $timestampdiv.slideUp('fast').siblings('a.edit-timestamp').show().focus();
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $timestampdiv.find('.cancel-timestamp').on( 'click', function( event ) {
+ $timestampdiv.slideUp('fast').siblings('a.edit-timestamp').show().trigger( 'focus' );
</ins><span class="cx" style="display: block; padding: 0 10px"> $('#mm').val($('#hidden_mm').val());
</span><span class="cx" style="display: block; padding: 0 10px"> $('#jj').val($('#hidden_jj').val());
</span><span class="cx" style="display: block; padding: 0 10px"> $('#aa').val($('#hidden_aa').val());
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -914,10 +914,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"> // Save the changed timestamp.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $timestampdiv.find('.save-timestamp').click( function( event ) { // Crazyhorse - multiple OK cancels.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $timestampdiv.find('.save-timestamp').on( 'click', function( event ) { // Crazyhorse - multiple OK cancels.
</ins><span class="cx" style="display: block; padding: 0 10px"> if ( updateText() ) {
</span><span class="cx" style="display: block; padding: 0 10px"> $timestampdiv.slideUp('fast');
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $timestampdiv.siblings('a.edit-timestamp').show().focus();
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $timestampdiv.siblings('a.edit-timestamp').show().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">@@ -937,10 +937,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"> // Post Status edit click.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $postStatusSelect.siblings('a.edit-post-status').click( function( event ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $postStatusSelect.siblings('a.edit-post-status').on( 'click', function( event ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> if ( $postStatusSelect.is( ':hidden' ) ) {
</span><span class="cx" style="display: block; padding: 0 10px"> $postStatusSelect.slideDown( 'fast', function() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $postStatusSelect.find('select').focus();
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $postStatusSelect.find('select').trigger( 'focus' );
</ins><span class="cx" style="display: block; padding: 0 10px"> } );
</span><span class="cx" style="display: block; padding: 0 10px"> $(this).hide();
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -948,15 +948,15 @@
</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"> // Save the Post Status changes and hide the options.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $postStatusSelect.find('.save-post-status').click( function( event ) {
- $postStatusSelect.slideUp( 'fast' ).siblings( 'a.edit-post-status' ).show().focus();
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $postStatusSelect.find('.save-post-status').on( 'click', function( event ) {
+ $postStatusSelect.slideUp( 'fast' ).siblings( 'a.edit-post-status' ).show().trigger( 'focus' );
</ins><span class="cx" style="display: block; padding: 0 10px"> updateText();
</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="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> // Cancel Post Status editing and hide the options.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $postStatusSelect.find('.cancel-post-status').click( function( event ) {
- $postStatusSelect.slideUp( 'fast' ).siblings( 'a.edit-post-status' ).show().focus();
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $postStatusSelect.find('.cancel-post-status').on( 'click', function( event ) {
+ $postStatusSelect.slideUp( 'fast' ).siblings( 'a.edit-post-status' ).show().trigger( 'focus' );
</ins><span class="cx" style="display: block; padding: 0 10px"> $('#post_status').val( $('#hidden_post_status').val() );
</span><span class="cx" style="display: block; padding: 0 10px"> updateText();
</span><span class="cx" style="display: block; padding: 0 10px"> event.preventDefault();
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -997,7 +997,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> buttons.html( '<button type="button" class="save button button-small">' + __( 'OK' ) + '</button> <button type="button" class="cancel button-link">' + __( 'Cancel' ) + '</button>' );
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> // Save permalink changes.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- buttons.children( '.save' ).click( function() {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ buttons.children( '.save' ).on( 'click', function() {
</ins><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><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1026,7 +1026,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> buttons.html(buttonsOrig);
</span><span class="cx" style="display: block; padding: 0 10px"> permalink.html(permalinkOrig);
</span><span class="cx" style="display: block; padding: 0 10px"> real_slug.val(new_slug);
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $( '.edit-slug' ).focus();
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $( '.edit-slug' ).trigger( 'focus' );
</ins><span class="cx" style="display: block; padding: 0 10px"> wp.a11y.speak( __( 'Permalink saved' ) );
</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">@@ -1033,13 +1033,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"> // Cancel editing of permalink.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- buttons.children( '.cancel' ).click( function() {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ buttons.children( '.cancel' ).on( 'click', function() {
</ins><span class="cx" style="display: block; padding: 0 10px"> $('#view-post-btn').show();
</span><span class="cx" style="display: block; padding: 0 10px"> $el.html(revert_e);
</span><span class="cx" style="display: block; padding: 0 10px"> buttons.html(buttonsOrig);
</span><span class="cx" style="display: block; padding: 0 10px"> permalink.html(permalinkOrig);
</span><span class="cx" style="display: block; padding: 0 10px"> real_slug.val(revert_slug);
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $( '.edit-slug' ).focus();
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $( '.edit-slug' ).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"> // If more than 1/4th of 'full' is '%', make it empty.
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1049,7 +1049,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px"> slug_value = ( c > full.length / 4 ) ? '' : full;
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $el.html( '<input type="text" id="new-post-slug" value="' + slug_value + '" autocomplete="off" />' ).children( 'input' ).keydown( function( e ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $el.html( '<input type="text" id="new-post-slug" value="' + slug_value + '" autocomplete="off" />' ).children( 'input' ).on( 'keydown', function( e ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> var key = e.which;
</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="lines" style="display: block; padding: 0 10px; color: #888">@@ -1060,9 +1060,9 @@
</span><span class="cx" style="display: block; padding: 0 10px"> if ( 27 === key ) {
</span><span class="cx" style="display: block; padding: 0 10px"> buttons.children( '.cancel' ).click();
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- } ).keyup( function() {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ } ).on( 'keyup', function() {
</ins><span class="cx" style="display: block; padding: 0 10px"> real_slug.val( this.value );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- }).focus();
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ }).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"> $( '#titlediv' ).on( 'click', '.edit-slug', function() {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1154,7 +1154,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> height = parseInt( $('#content_ifr').css('height'), 10 ) + toolbarHeight - 28;
</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">- $textarea.focus();
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $textarea.trigger( 'focus' );
</ins><span class="cx" style="display: block; padding: 0 10px"> height = parseInt( $textarea.css('height'), 10 );
</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_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-01-21 12:37:39 UTC (rev 50000)
+++ trunk/src/js/_enqueues/admin/postbox.js 2021-01-22 12:30:39 UTC (rev 50001)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -67,9 +67,9 @@
</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 ( id ) {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- if ( !p.hasClass('closed') && $.isFunction( postboxes.pbshow ) ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ if ( !p.hasClass('closed') && typeof postboxes.pbshow === 'function' ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> postboxes.pbshow( id );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- } else if ( p.hasClass('closed') && $.isFunction( postboxes.pbhide ) ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ } else if ( p.hasClass('closed') && typeof postboxes.pbhide === 'function' ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> postboxes.pbhide( id );
</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">@@ -267,7 +267,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 2.7.0
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $('.postbox .hndle a').click( function(e) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $('.postbox .hndle a').on( 'click', function(e) {
</ins><span class="cx" style="display: block; padding: 0 10px"> e.stopPropagation();
</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">@@ -302,7 +302,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">- $('.hide-postbox-tog').bind('click.postboxes', function() {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $('.hide-postbox-tog').on('click.postboxes', function() {
</ins><span class="cx" style="display: block; padding: 0 10px"> var $el = $(this),
</span><span class="cx" style="display: block; padding: 0 10px"> boxId = $el.val(),
</span><span class="cx" style="display: block; padding: 0 10px"> $postbox = $( '#' + boxId );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -309,12 +309,12 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> if ( $el.prop( 'checked' ) ) {
</span><span class="cx" style="display: block; padding: 0 10px"> $postbox.show();
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- if ( $.isFunction( postboxes.pbshow ) ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ if ( typeof postboxes.pbshow === 'function' ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> postboxes.pbshow( boxId );
</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"> $postbox.hide();
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- if ( $.isFunction( postboxes.pbhide ) ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ if ( typeof postboxes.pbhide === 'function' ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> postboxes.pbhide( boxId );
</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">@@ -336,7 +336,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">- $('.columns-prefs input[type="radio"]').bind('click.postboxes', function(){
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $('.columns-prefs input[type="radio"]').on('click.postboxes', function(){
</ins><span class="cx" style="display: block; padding: 0 10px"> var n = parseInt($(this).val(), 10);
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> if ( n ) {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -420,7 +420,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 ( isMobile ) {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $(document.body).bind('orientationchange.postboxes', function(){ postboxes._pb_change(); });
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $(document.body).on('orientationchange.postboxes', function(){ postboxes._pb_change(); });
</ins><span class="cx" style="display: block; padding: 0 10px"> this._pb_change();
</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_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-01-21 12:37:39 UTC (rev 50000)
+++ trunk/src/js/_enqueues/admin/privacy-tools.js 2021-01-22 12:30:39 UTC (rev 50001)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -56,7 +56,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> });
</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">- $( '.export-personal-data-handle' ).click( function( event ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $( '.export-personal-data-handle' ).on( 'click', function( event ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> var $this = $( this ),
</span><span class="cx" style="display: block; padding: 0 10px"> $action = $this.parents( '.export-personal-data' ),
</span><span class="cx" style="display: block; padding: 0 10px"> $requestRow = $this.parents( 'tr' ),
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -159,7 +159,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> doNextExport( 1, 1 );
</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">- $( '.remove-personal-data-handle' ).click( function( event ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $( '.remove-personal-data-handle' ).on( 'click', function( event ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> var $this = $( this ),
</span><span class="cx" style="display: block; padding: 0 10px"> $action = $this.parents( '.remove-personal-data' ),
</span><span class="cx" style="display: block; padding: 0 10px"> $requestRow = $this.parents( 'tr' ),
</span></span></pre></div>
<a id="trunksrcjs_enqueuesadminsitehealthjs"></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/site-health.js</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/js/_enqueues/admin/site-health.js 2021-01-21 12:37:39 UTC (rev 50000)
+++ trunk/src/js/_enqueues/admin/site-health.js 2021-01-22 12:30:39 UTC (rev 50001)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -205,7 +205,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> val = 100;
</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">- pct = ( ( 100 - val ) / 100 ) * c;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ pct = ( ( 100 - val ) / 100 ) * c + 'px';
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> $circle.css( { strokeDashoffset: pct } );
</span><span class="cx" style="display: block; padding: 0 10px">
</span></span></pre></div>
<a id="trunksrcjs_enqueuesadmintagsjs"></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.js</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/js/_enqueues/admin/tags.js 2021-01-21 12:37:39 UTC (rev 50000)
+++ trunk/src/js/_enqueues/admin/tags.js 2021-01-22 12:30:39 UTC (rev 50001)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -98,7 +98,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 cancel the default event handling.
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $('#submit').click(function(){
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $('#submit').on( 'click', function(){
</ins><span class="cx" style="display: block; padding: 0 10px"> var form = $(this).parents('form');
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> if ( ! validateForm( form ) )
</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-01-21 12:37:39 UTC (rev 50000)
+++ trunk/src/js/_enqueues/admin/user-profile.js 2021-01-22 12:30:39 UTC (rev 50001)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -108,7 +108,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> $weakRow = $( '.pw-weak' );
</span><span class="cx" style="display: block; padding: 0 10px"> $weakCheckbox = $weakRow.find( '.pw-checkbox' );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $weakCheckbox.change( function() {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $weakCheckbox.on( 'change', function() {
</ins><span class="cx" style="display: block; padding: 0 10px"> $submitButtons.prop( 'disabled', ! $weakCheckbox.prop( 'checked' ) );
</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">@@ -265,12 +265,12 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> $( '#pass1' ).val( '' ).on( 'input' + ' pwupdate', check_pass_strength );
</span><span class="cx" style="display: block; padding: 0 10px"> $('#pass-strength-result').show();
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $('.color-palette').click( function() {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $('.color-palette').on( 'click', function() {
</ins><span class="cx" style="display: block; padding: 0 10px"> $(this).siblings('input[name="admin_color"]').prop('checked', true);
</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 ( select.length ) {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $('#first_name, #last_name, #nickname').bind( 'blur.user_profile', function() {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $('#first_name, #last_name, #nickname').on( 'blur.user_profile', function() {
</ins><span class="cx" style="display: block; padding: 0 10px"> var dub = [],
</span><span class="cx" style="display: block; padding: 0 10px"> inputs = {
</span><span class="cx" style="display: block; padding: 0 10px"> display_nickname : $('#nickname').val() || '',
</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-01-21 12:37:39 UTC (rev 50000)
+++ trunk/src/js/_enqueues/admin/widgets.js 2021-01-22 12:30:39 UTC (rev 50001)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -36,7 +36,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * Toggle the widgets containers when clicked and update the toggle
</span><span class="cx" style="display: block; padding: 0 10px"> * button `aria-expanded` attribute value.
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- .click( function() {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ .on( 'click', function() {
</ins><span class="cx" style="display: block; padding: 0 10px"> var $this = $( this ),
</span><span class="cx" style="display: block; padding: 0 10px"> $wrap = $this.closest( '.widgets-holder-wrap '),
</span><span class="cx" style="display: block; padding: 0 10px"> $toggle = $this.find( '.handlediv' );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -101,7 +101,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"> // Handle the widgets containers in the left column.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $( '#widgets-left .sidebar-name' ).click( function() {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $( '#widgets-left .sidebar-name' ).on( 'click', function() {
</ins><span class="cx" style="display: block; padding: 0 10px"> var $wrap = $( this ).closest( '.widgets-holder-wrap' );
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> $wrap
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -112,7 +112,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> $document.triggerHandler( 'wp-pin-menu' );
</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">- $(document.body).bind('click.widgets-toggle', function(e) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $(document.body).on('click.widgets-toggle', function(e) {
</ins><span class="cx" style="display: block; padding: 0 10px"> var target = $(e.target), css = {},
</span><span class="cx" style="display: block; padding: 0 10px"> widget, inside, targetWidth, widgetWidth, margin, saveButton, widgetId,
</span><span class="cx" style="display: block; padding: 0 10px"> toggleBtn = target.closest( '.widget' ).find( '.widget-top button.widget-action' );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -419,7 +419,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> // Area Chooser.
</span><span class="cx" style="display: block; padding: 0 10px"> $( '#widgets-right .widgets-holder-wrap' ).each( function( index, element ) {
</span><span class="cx" style="display: block; padding: 0 10px"> var $element = $( element ),
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- name = $element.find( '.sidebar-name h2' ).text(),
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ name = $element.find( '.sidebar-name h2' ).text() || '',
</ins><span class="cx" style="display: block; padding: 0 10px"> ariaLabel = $element.find( '.sidebar-name' ).data( 'add-to' ),
</span><span class="cx" style="display: block; padding: 0 10px"> id = $element.find( '.widgets-sortables' ).attr( 'id' ),
</span><span class="cx" style="display: block; padding: 0 10px"> li = $( '<li>' ),
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -428,7 +428,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> 'aria-pressed': 'false',
</span><span class="cx" style="display: block; padding: 0 10px"> 'class': 'widgets-chooser-button',
</span><span class="cx" style="display: block; padding: 0 10px"> 'aria-label': ariaLabel
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- } ).text( $.trim( name ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ } ).text( name.toString().trim() );
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> li.append( button );
</span><span class="cx" style="display: block; padding: 0 10px">
</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-01-21 12:37:39 UTC (rev 50000)
+++ trunk/src/js/_enqueues/lib/ajax-response.js 2021-01-22 12:30:39 UTC (rev 50001)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -66,5 +66,5 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> // Basic form validation.
</span><span class="cx" style="display: block; padding: 0 10px"> jQuery(document).ready( function($){
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $('form.validate').submit( function() { return wpAjax.validateForm( $(this) ); } );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $('form.validate').on( 'submit', function() { return wpAjax.validateForm( $(this) ); } );
</ins><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-01-21 12:37:39 UTC (rev 50000)
+++ trunk/src/js/_enqueues/lib/color-picker.js 2021-01-22 12:30:39 UTC (rev 50001)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -232,7 +232,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 3.5.0
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- self.toggler.click( function(){
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ self.toggler.on( 'click', function(){
</ins><span class="cx" style="display: block; padding: 0 10px"> if ( self.toggler.hasClass( 'wp-picker-open' ) ) {
</span><span class="cx" style="display: block; padding: 0 10px"> self.close();
</span><span class="cx" style="display: block; padding: 0 10px"> } else {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -250,7 +250,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">- self.element.change( function( event ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ self.element.on( 'change', function( event ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> var me = $( this ),
</span><span class="cx" style="display: block; padding: 0 10px"> val = me.val();
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -272,7 +272,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">- self.button.click( function( event ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ self.button.on( 'click', function( event ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> var me = $( this );
</span><span class="cx" style="display: block; padding: 0 10px"> if ( me.hasClass( 'wp-picker-clear' ) ) {
</span><span class="cx" style="display: block; padding: 0 10px"> self.element.val( '' );
</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-01-21 12:37:39 UTC (rev 50000)
+++ trunk/src/js/_enqueues/lib/link.js 2021-01-22 12:30:39 UTC (rev 50001)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -54,14 +54,14 @@
</span><span class="cx" style="display: block; padding: 0 10px"> inputs.queryNoticeTextHint = inputs.queryNotice.find( '.query-notice-hint' );
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> // Bind event handlers.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- inputs.dialog.keydown( wpLink.keydown );
- inputs.dialog.keyup( wpLink.keyup );
- inputs.submit.click( function( event ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ inputs.dialog.on( 'keydown', wpLink.keydown );
+ inputs.dialog.on( 'keyup', wpLink.keyup );
+ inputs.submit.on( 'click', function( event ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> event.preventDefault();
</span><span class="cx" style="display: block; padding: 0 10px"> wpLink.update();
</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">- inputs.close.add( inputs.backdrop ).add( '#wp-link-cancel button' ).click( function( event ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ inputs.close.add( inputs.backdrop ).add( '#wp-link-cancel button' ).on( 'click', function( event ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> event.preventDefault();
</span><span class="cx" style="display: block; padding: 0 10px"> wpLink.close();
</span><span class="cx" style="display: block; padding: 0 10px"> });
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -625,7 +625,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> this.change( search );
</span><span class="cx" style="display: block; padding: 0 10px"> this.refresh();
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $( '#wp-link .query-results, #wp-link #link-selector' ).scroll( function() {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $( '#wp-link .query-results, #wp-link #link-selector' ).on( 'scroll', function() {
</ins><span class="cx" style="display: block; padding: 0 10px"> self.maybeLoad();
</span><span class="cx" style="display: block; padding: 0 10px"> });
</span><span class="cx" style="display: block; padding: 0 10px"> element.on( 'click', 'li', function( event ) {
</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-01-21 12:37:39 UTC (rev 50000)
+++ trunk/src/js/_enqueues/lib/nav-menu.js 2021-01-22 12:30:39 UTC (rev 50001)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -390,7 +390,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> thisItem.shiftHorizontally( 1 );
</span><span class="cx" style="display: block; padding: 0 10px"> break;
</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.focus();
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $this.trigger( 'focus' );
</ins><span class="cx" style="display: block; padding: 0 10px"> api.registerChange();
</span><span class="cx" style="display: block; padding: 0 10px"> api.refreshKeyboardAccessibility();
</span><span class="cx" style="display: block; padding: 0 10px"> api.refreshAdvancedAccessibility();
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -572,7 +572,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> break;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px"> // Put focus back on same menu item.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $( '#edit-' + thisItemData['menu-item-db-id'] ).focus();
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $( '#edit-' + thisItemData['menu-item-db-id'] ).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><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -608,7 +608,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> // Hide fields.
</span><span class="cx" style="display: block; padding: 0 10px"> api.menuList.hideAdvancedMenuItemFields();
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $('.hide-postbox-tog').click(function () {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $('.hide-postbox-tog').on( 'click', function () {
</ins><span class="cx" style="display: block; padding: 0 10px"> var hidden = $( '.accordion-container li.accordion-section' ).filter(':hidden').map(function() { return this.id; }).get().join(',');
</span><span class="cx" style="display: block; padding: 0 10px"> $.post(ajaxurl, {
</span><span class="cx" style="display: block; padding: 0 10px"> action: 'closed-postboxes',
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -809,7 +809,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"> initManageLocations : function () {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $('#menu-locations-wrap form').submit(function(){
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $('#menu-locations-wrap form').on( 'submit', function(){
</ins><span class="cx" style="display: block; padding: 0 10px"> window.onbeforeunload = null;
</span><span class="cx" style="display: block; padding: 0 10px"> });
</span><span class="cx" style="display: block; padding: 0 10px"> $('.menu-location-menus select').on('change', function () {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -823,7 +823,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> attachMenuEditListeners : function() {
</span><span class="cx" style="display: block; padding: 0 10px"> var that = this;
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $('#update-nav-menu').bind('click', function(e) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $('#update-nav-menu').on('click', function(e) {
</ins><span class="cx" style="display: block; padding: 0 10px"> if ( e.target && e.target.className ) {
</span><span class="cx" style="display: block; padding: 0 10px"> if ( -1 != e.target.className.indexOf('item-edit') ) {
</span><span class="cx" style="display: block; padding: 0 10px"> return that.eventOnClickEditLink(e.target);
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -852,7 +852,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px"> }, 500 ) );
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $('#add-custom-links input[type="text"]').keypress(function(e){
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $('#add-custom-links input[type="text"]').on( 'keypress', function(e){
</ins><span class="cx" style="display: block; padding: 0 10px"> $('#customlinkdiv').removeClass('form-invalid');
</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="lines" style="display: block; padding: 0 10px; color: #888">@@ -867,7 +867,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * When a navigation menu is saved, store a JSON representation of all form data
</span><span class="cx" style="display: block; padding: 0 10px"> * in a single input to avoid PHP `max_input_vars` limitations. See #14134.
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $( '#update-nav-menu' ).submit( function() {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $( '#update-nav-menu' ).on( 'submit', function() {
</ins><span class="cx" style="display: block; padding: 0 10px"> var navMenuData = $( '#update-nav-menu' ).serializeArray();
</span><span class="cx" style="display: block; padding: 0 10px"> $( '[name="nav-menu-data"]' ).val( JSON.stringify( navMenuData ) );
</span><span class="cx" style="display: block; padding: 0 10px"> });
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -877,7 +877,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> var loc = $('#nav-menu-theme-locations'), params = {};
</span><span class="cx" style="display: block; padding: 0 10px"> params.action = 'menu-locations-save';
</span><span class="cx" style="display: block; padding: 0 10px"> params['menu-settings-column-nonce'] = $('#menu-settings-column-nonce').val();
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- loc.find('input[type="submit"]').click(function() {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ loc.find('input[type="submit"]').on( 'click', function() {
</ins><span class="cx" style="display: block; padding: 0 10px"> loc.find('select').each(function() {
</span><span class="cx" style="display: block; padding: 0 10px"> params[this.name] = $(this).val();
</span><span class="cx" style="display: block; padding: 0 10px"> });
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -947,9 +947,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"> addCustomLink : function( processMethod ) {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- var url = $('#custom-menu-item-url').val().trim(),
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ var url = $('#custom-menu-item-url').val().toString(),
</ins><span class="cx" style="display: block; padding: 0 10px"> label = $('#custom-menu-item-name').val();
</span><span class="cx" style="display: block; padding: 0 10px">
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ if ( '' !== url ) {
+ url = url.trim();
+ }
+
</ins><span class="cx" style="display: block; padding: 0 10px"> processMethod = processMethod || api.addMenuItemToBottom;
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> if ( '' === url || 'https://' == url || 'http://' == url ) {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -999,7 +1003,8 @@
</span><span class="cx" style="display: block; padding: 0 10px"> $.post( ajaxurl, params, function(menuMarkup) {
</span><span class="cx" style="display: block; padding: 0 10px"> var ins = $('#menu-instructions');
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- menuMarkup = $.trim( menuMarkup ); // Trim leading whitespaces.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ menuMarkup = menuMarkup || '';
+ menuMarkup = menuMarkup.toString().trim(); // Trim leading whitespaces.
</ins><span class="cx" style="display: block; padding: 0 10px"> processMethod(menuMarkup, params);
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> // Make it stand out a bit more visually, by adding a fadeIn.
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1043,7 +1048,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"> attachUnsavedChangesListener : function() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $('#menu-management input, #menu-management select, #menu-management, #menu-management textarea, .menu-location-menus select').change(function(){
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $('#menu-management input, #menu-management select, #menu-management, #menu-management textarea, .menu-location-menus select').on( 'change', function(){
</ins><span class="cx" style="display: block; padding: 0 10px"> api.registerChange();
</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">@@ -1063,7 +1068,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"> attachTabsPanelListeners : function() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $('#menu-settings-column').bind('click', function(e) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $('#menu-settings-column').on('click', function(e) {
</ins><span class="cx" style="display: block; padding: 0 10px"> var selectAreaMatch, selectAll, panelId, wrapper, items,
</span><span class="cx" style="display: block; padding: 0 10px"> target = $(e.target);
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1083,7 +1088,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> target.parent().addClass('tabs');
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> // Select the search bar.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $('.quick-search', wrapper).focus();
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $('.quick-search', wrapper).trigger( 'focus' );
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> // Hide controls in the search tab if no items found.
</span><span class="cx" style="display: block; padding: 0 10px"> if ( ! wrapper.find( '.tabs-panel-active .menu-item-title' ).length ) {
</span></span></pre></div>
<a id="trunksrcjs_enqueuesvendorpluploadwppluploadjs"></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/plupload/wp-plupload.js</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/js/_enqueues/vendor/plupload/wp-plupload.js 2021-01-21 12:37:39 UTC (rev 50000)
+++ trunk/src/js/_enqueues/vendor/plupload/wp-plupload.js 2021-01-22 12:30:39 UTC (rev 50001)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -70,7 +70,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> // Proxy all methods so this always refers to the current instance.
</span><span class="cx" style="display: block; padding: 0 10px"> for ( key in this ) {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- if ( $.isFunction( this[ key ] ) ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ if ( typeof this[ key ] === 'function' ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> this[ key ] = $.proxy( this[ key ], this );
</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">@@ -284,7 +284,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"> // 'dragenter' doesn't fire correctly, simulate it with a limited 'dragover'.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- dropzone.bind( 'dragover.wp-uploader', function() {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ dropzone.on( 'dragover.wp-uploader', function() {
</ins><span class="cx" style="display: block; padding: 0 10px"> if ( timer ) {
</span><span class="cx" style="display: block; padding: 0 10px"> clearTimeout( timer );
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -297,7 +297,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> active = true;
</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">- dropzone.bind('dragleave.wp-uploader, drop.wp-uploader', function() {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ dropzone.on('dragleave.wp-uploader, drop.wp-uploader', function() {
</ins><span class="cx" style="display: block; padding: 0 10px"> /*
</span><span class="cx" style="display: block; padding: 0 10px"> * Using an instant timer prevents the drag-over class
</span><span class="cx" style="display: block; padding: 0 10px"> * from being quickly removed and re-added when elements
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -440,7 +440,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> if ( pluploadError.code === plupload[ key ] ) {
</span><span class="cx" style="display: block; padding: 0 10px"> message = Uploader.errorMap[ key ];
</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( message ) ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ if ( typeof message === 'function' ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> message = message( pluploadError.file, pluploadError );
</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_enqueueswpcustomizebasejs"></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/customize/base.js</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/js/_enqueues/wp/customize/base.js 2021-01-21 12:37:39 UTC (rev 50000)
+++ trunk/src/js/_enqueues/wp/customize/base.js 2021-01-22 12:30:39 UTC (rev 50001)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -501,7 +501,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> dfd = $.Deferred();
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> // If the last argument is a callback, bind it to .done().
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- if ( $.isFunction( ids[ ids.length - 1 ] ) ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ if ( typeof ids[ ids.length - 1 ] === 'function' ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> dfd.done( ids.pop() );
</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">@@ -609,7 +609,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.bind( this.update );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- this.element.bind( this.events, this.refresh );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ this.element.on( this.events, this.refresh );
</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"> find: function( selector ) {
</span></span></pre></div>
<a id="trunksrcjs_enqueueswpcustomizecontrolsjs"></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/customize/controls.js</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/js/_enqueues/wp/customize/controls.js 2021-01-21 12:37:39 UTC (rev 50000)
+++ trunk/src/js/_enqueues/wp/customize/controls.js 2021-01-22 12:30:39 UTC (rev 50001)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1342,10 +1342,10 @@
</span><span class="cx" style="display: block; padding: 0 10px"> template = wp.template( 'customize-' + container.containerType + '-default' );
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px"> if ( template && container.container ) {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- return $.trim( template( _.extend(
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ return template( _.extend(
</ins><span class="cx" style="display: block; padding: 0 10px"> { id: container.id },
</span><span class="cx" style="display: block; padding: 0 10px"> container.params
</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">+ ) ).toString().trim();
</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"> return '<li></li>';
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1597,7 +1597,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> sectionTitle.attr( 'tabindex', '-1' );
</span><span class="cx" style="display: block; padding: 0 10px"> backBtn.attr( 'tabindex', '0' );
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- backBtn.focus();
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ backBtn.trigger( 'focus' );
</ins><span class="cx" style="display: block; padding: 0 10px"> content.css( 'top', '' );
</span><span class="cx" style="display: block; padding: 0 10px"> container.scrollTop( 0 );
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1645,7 +1645,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> backBtn.attr( 'tabindex', '-1' );
</span><span class="cx" style="display: block; padding: 0 10px"> sectionTitle.attr( 'tabindex', '0' );
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- sectionTitle.focus();
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ sectionTitle.trigger( 'focus' );
</ins><span class="cx" style="display: block; padding: 0 10px"> content.css( 'top', '' );
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> if ( args.completeCallback ) {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -2734,7 +2734,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> backBtn.attr( 'tabindex', '-1' );
</span><span class="cx" style="display: block; padding: 0 10px"> sectionTitle.attr( 'tabindex', '0' );
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- sectionTitle.focus();
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ sectionTitle.trigger( 'focus' );
</ins><span class="cx" style="display: block; padding: 0 10px"> content.css( 'top', '' );
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> if ( args.completeCallback ) {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -4485,7 +4485,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> y = control.settings.y.get();
</span><span class="cx" style="display: block; padding: 0 10px"> inputValue = String( x ) + ' ' + String( y );
</span><span class="cx" style="display: block; padding: 0 10px"> radioInput = control.container.find( 'input[name="background-position"][value="' + inputValue + '"]' );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- radioInput.click();
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ radioInput.trigger( 'click' );
</ins><span class="cx" style="display: block; padding: 0 10px"> } );
</span><span class="cx" style="display: block; padding: 0 10px"> control.settings.x.bind( updateRadios );
</span><span class="cx" style="display: block; padding: 0 10px"> control.settings.y.bind( updateRadios );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -5452,7 +5452,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> controls = section.controls();
</span><span class="cx" style="display: block; padding: 0 10px"> controlIndex = controls.indexOf( control );
</span><span class="cx" style="display: block; padding: 0 10px"> if ( controls.length === controlIndex + 1 ) {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $( '#customize-footer-actions .collapse-sidebar' ).focus();
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $( '#customize-footer-actions .collapse-sidebar' ).trigger( 'focus' );
</ins><span class="cx" style="display: block; padding: 0 10px"> } else {
</span><span class="cx" style="display: block; padding: 0 10px"> controls[ controlIndex + 1 ].container.find( ':focusable:first' ).focus();
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -6336,7 +6336,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"> previewFrame.container.append( form );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- form.submit();
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ form.trigger( 'submit' );
</ins><span class="cx" style="display: block; padding: 0 10px"> form.remove(); // No need to keep the form around after submitted.
</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">@@ -7081,7 +7081,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> // Restore focus if there was a reflow and there was an active (focused) element.
</span><span class="cx" style="display: block; padding: 0 10px"> if ( wasReflowed && activeElement ) {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- activeElement.focus();
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ activeElement.trigger( 'focus' );
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px"> api.trigger( 'pane-contents-reflowed' );
</span><span class="cx" style="display: block; padding: 0 10px"> }, api );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -8397,10 +8397,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"> // Button bindings.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- saveBtn.click( function( event ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ saveBtn.on( 'click', function( event ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> api.previewer.save();
</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">- }).keydown( function( event ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ }).on( 'keydown', function( event ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> if ( 9 === event.which ) { // Tab.
</span><span class="cx" style="display: block; padding: 0 10px"> return;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -8410,7 +8410,7 @@
</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="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- closeBtn.keydown( function( event ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ closeBtn.on( 'keydown', function( event ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> if ( 9 === event.which ) { // Tab.
</span><span class="cx" style="display: block; padding: 0 10px"> return;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -8752,7 +8752,8 @@
</span><span class="cx" style="display: block; padding: 0 10px"> if ( title.length ) {
</span><span class="cx" style="display: block; padding: 0 10px"> api( 'blogname', function( setting ) {
</span><span class="cx" style="display: block; padding: 0 10px"> var updateTitle = function() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- title.text( $.trim( setting() ) || api.l10n.untitledBlogName );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ var blogTitle = setting() || '';
+ title.text( blogTitle.toString().trim() || api.l10n.untitledBlogName );
</ins><span class="cx" style="display: block; padding: 0 10px"> };
</span><span class="cx" style="display: block; padding: 0 10px"> setting.bind( updateTitle );
</span><span class="cx" style="display: block; padding: 0 10px"> updateTitle();
</span></span></pre></div>
<a id="trunksrcjs_enqueueswpcustomizenavmenusjs"></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/customize/nav-menus.js</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/js/_enqueues/wp/customize/nav-menus.js 2021-01-21 12:37:39 UTC (rev 50000)
+++ trunk/src/js/_enqueues/wp/customize/nav-menus.js 2021-01-22 12:30:39 UTC (rev 50001)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -226,7 +226,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"> // Load available items if it looks like we'll need them.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- api.panel( 'nav_menus' ).container.bind( 'expanded', function() {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ api.panel( 'nav_menus' ).container.on( 'expanded', function() {
</ins><span class="cx" style="display: block; padding: 0 10px"> if ( ! self.rendered ) {
</span><span class="cx" style="display: block; padding: 0 10px"> self.initList();
</span><span class="cx" style="display: block; padding: 0 10px"> self.rendered = true;
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -234,7 +234,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"> // Load more items.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- this.sectionContent.scroll( function() {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ this.sectionContent.on( 'scroll', function() {
</ins><span class="cx" style="display: block; padding: 0 10px"> var totalHeight = self.$el.find( '.accordion-section.open .available-menu-items-list' ).prop( 'scrollHeight' ),
</span><span class="cx" style="display: block; padding: 0 10px"> visibleHeight = self.$el.find( '.accordion-section.open' ).height();
</span><span class="cx" style="display: block; padding: 0 10px">
</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"> */
</span><span class="cx" style="display: block; padding: 0 10px"> ready: function() {
</span><span class="cx" style="display: block; padding: 0 10px"> var panel = this;
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- panel.container.find( '.hide-column-tog' ).click( function() {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ panel.container.find( '.hide-column-tog' ).on( 'click', function() {
</ins><span class="cx" style="display: block; padding: 0 10px"> panel.saveManageColumnsState();
</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">@@ -3421,7 +3421,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> function displayNavMenuName( name ) {
</span><span class="cx" style="display: block; padding: 0 10px"> name = name || '';
</span><span class="cx" style="display: block; padding: 0 10px"> name = wp.sanitize.stripTagsAndEncodeText( name ); // Remove any potential tags from name.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- name = $.trim( name );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ name = name.toString().trim();
</ins><span class="cx" style="display: block; padding: 0 10px"> return name || api.Menus.data.l10n.unnamed;
</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_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-01-21 12:37:39 UTC (rev 50000)
+++ trunk/src/js/_enqueues/wp/dashboard.js 2021-01-22 12:30:39 UTC (rev 50001)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -40,7 +40,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"> // Hide the welcome panel when the dismiss button or close button is clicked.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $('.welcome-panel-close, .welcome-panel-dismiss a', welcomePanel).click( function(e) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $('.welcome-panel-close, .welcome-panel-dismiss a', welcomePanel).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"> welcomePanel.addClass('hidden');
</span><span class="cx" style="display: block; padding: 0 10px"> updateWelcomePanel( 0 );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -48,7 +48,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"> // Set welcome panel visibility based on Welcome Option checkbox value.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- welcomePanelHide.click( function() {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ welcomePanelHide.on( 'click', function() {
</ins><span class="cx" style="display: block; padding: 0 10px"> welcomePanel.toggleClass('hidden', ! this.checked );
</span><span class="cx" style="display: block; padding: 0 10px"> updateWelcomePanel( this.checked ? 1 : 0 );
</span><span class="cx" style="display: block; padding: 0 10px"> });
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -136,7 +136,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> // Enable the submit buttons.
</span><span class="cx" style="display: block; padding: 0 10px"> $( '#quick-press .submit input[type="submit"], #quick-press .submit input[type="reset"]' ).prop( 'disabled' , 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">- t = $('#quick-press').submit( function( e ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ t = $('#quick-press').on( 'submit', 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"> // Show a spinner.
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -172,7 +172,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"> // Change the QuickPost action to the publish value.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $('#publish').click( function() { act.val( 'post-quickpress-publish' ); } );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $('#publish').on( 'click', function() { act.val( 'post-quickpress-publish' ); } );
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> $('#quick-press').on( 'click focusin', function() {
</span><span class="cx" style="display: block; padding: 0 10px"> wpActiveEditor = 'content';
</span></span></pre></div>
<a id="trunksrcjs_enqueueswppasswordstrengthmeterjs"></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/password-strength-meter.js</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/js/_enqueues/wp/password-strength-meter.js 2021-01-21 12:37:39 UTC (rev 50000)
+++ trunk/src/js/_enqueues/wp/password-strength-meter.js 2021-01-22 12:30:39 UTC (rev 50001)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -32,7 +32,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @return {number} The password strength score.
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> meter : function( password1, disallowedList, password2 ) {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- if ( ! $.isArray( disallowedList ) )
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ if ( ! Array.isArray( disallowedList ) )
</ins><span class="cx" style="display: block; padding: 0 10px"> disallowedList = [ disallowedList.toString() ];
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> if (password1 != password2 && password2 && password2.length > 0)
</span></span></pre></div>
<a id="trunksrcjs_enqueueswpthemeplugineditorjs"></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/theme-plugin-editor.js</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/js/_enqueues/wp/theme-plugin-editor.js 2021-01-21 12:37:39 UTC (rev 50000)
+++ trunk/src/js/_enqueues/wp/theme-plugin-editor.js 2021-01-22 12:30:39 UTC (rev 50001)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -101,7 +101,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> // Reveal the modal and set focus on the go back button.
</span><span class="cx" style="display: block; padding: 0 10px"> component.warning
</span><span class="cx" style="display: block; padding: 0 10px"> .removeClass( 'hidden' )
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- .find( '.file-editor-warning-go-back' ).focus();
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ .find( '.file-editor-warning-go-back' ).trigger( 'focus' );
</ins><span class="cx" style="display: block; padding: 0 10px"> // Get the links and buttons within the modal.
</span><span class="cx" style="display: block; padding: 0 10px"> component.warningTabbables = component.warning.find( 'a, button' );
</span><span class="cx" style="display: block; padding: 0 10px"> // Attach event handlers.
</span></span></pre></div>
<a id="trunksrcjs_enqueueswpthemejs"></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/theme.js</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/js/_enqueues/wp/theme.js 2021-01-21 12:37:39 UTC (rev 50000)
+++ trunk/src/js/_enqueues/wp/theme.js 2021-01-22 12:30:39 UTC (rev 50001)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -73,7 +73,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> this.SearchView = options.SearchView ? options.SearchView : themes.view.Search;
</span><span class="cx" style="display: block; padding: 0 10px"> // Bind to the scroll event and throttle
</span><span class="cx" style="display: block; padding: 0 10px"> // the results from this.scroller.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- this.window.bind( 'scroll', _.throttle( this.scroller, 300 ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ this.window.on( 'scroll', _.throttle( this.scroller, 300 ) );
</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"> // Main render control.
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -550,7 +550,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> // Render and append.
</span><span class="cx" style="display: block; padding: 0 10px"> preview.render();
</span><span class="cx" style="display: block; padding: 0 10px"> this.setNavButtonsState();
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $( '.next-theme' ).focus();
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $( '.next-theme' ).trigger( 'focus' );
</ins><span class="cx" style="display: block; padding: 0 10px"> })
</span><span class="cx" style="display: block; padding: 0 10px"> .listenTo( preview, 'theme:previous', function() {
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -580,7 +580,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> // Render and append.
</span><span class="cx" style="display: block; padding: 0 10px"> preview.render();
</span><span class="cx" style="display: block; padding: 0 10px"> this.setNavButtonsState();
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $( '.previous-theme' ).focus();
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $( '.previous-theme' ).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"> this.listenTo( preview, 'preview:close', function() {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -602,7 +602,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> .addClass( 'disabled' )
</span><span class="cx" style="display: block; padding: 0 10px"> .prop( 'disabled', true );
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- nextThemeButton.focus();
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ nextThemeButton.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"> // Disable next if the next model is undefined.
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -611,7 +611,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> .addClass( 'disabled' )
</span><span class="cx" style="display: block; padding: 0 10px"> .prop( 'disabled', true );
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- previousThemeButton.focus();
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ previousThemeButton.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">@@ -705,7 +705,7 @@
</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 primary action control.
</span><span class="cx" style="display: block; padding: 0 10px"> _.delay( function() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $( '.theme-overlay' ).focus();
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $( '.theme-overlay' ).trigger( 'focus' );
</ins><span class="cx" style="display: block; padding: 0 10px"> }, 100 );
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> // Constrain tabbing within the modal.
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -716,10 +716,10 @@
</span><span class="cx" style="display: block; padding: 0 10px"> // Check for the Tab key.
</span><span class="cx" style="display: block; padding: 0 10px"> if ( 9 === event.which ) {
</span><span class="cx" style="display: block; padding: 0 10px"> if ( $firstFocusable[0] === event.target && event.shiftKey ) {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $lastFocusable.focus();
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $lastFocusable.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 ( $lastFocusable[0] === event.target && ! event.shiftKey ) {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $firstFocusable.focus();
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $firstFocusable.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 class="lines" style="display: block; padding: 0 10px; color: #888">@@ -764,7 +764,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> // Return focus to the theme div.
</span><span class="cx" style="display: block; padding: 0 10px"> if ( themes.focusedTheme ) {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- themes.focusedTheme.focus();
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ themes.focusedTheme.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">@@ -952,7 +952,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> // Return focus to the theme div.
</span><span class="cx" style="display: block; padding: 0 10px"> if ( themes.focusedTheme ) {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- themes.focusedTheme.focus();
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ themes.focusedTheme.trigger( 'focus' );
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px"> }).removeClass( 'iframe-ready' );
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -2049,7 +2049,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> // The `search` route event. The router populates the input field.
</span><span class="cx" style="display: block; padding: 0 10px"> themes.router.on( 'route:search', function() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $( '.wp-filter-search' ).focus().trigger( 'keyup' );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $( '.wp-filter-search' ).trigger( 'focus' ).trigger( 'keyup' );
</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"> this.extraRoutes();
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -2101,7 +2101,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> adminbar_height = parseInt( $('#wpadminbar').css('height'), 10 );
</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 ( tbWindow.size() ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ if ( tbWindow.length >= 1 ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> tbWindow.width( W - 50 ).height( H - 45 - adminbar_height );
</span><span class="cx" style="display: block; padding: 0 10px"> $('#TB_iframeContent').width( W - 50 ).height( H - 75 - adminbar_height );
</span><span class="cx" style="display: block; padding: 0 10px"> tbWindow.css({'margin-left': '-' + parseInt( ( ( W - 50 ) / 2 ), 10 ) + 'px'});
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -2111,5 +2111,5 @@
</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">- $(window).resize(function(){ tb_position(); });
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $(window).on( 'resize', function(){ tb_position(); });
</ins><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-01-21 12:37:39 UTC (rev 50000)
+++ trunk/src/js/_enqueues/wp/updates.js 2021-01-22 12:30:39 UTC (rev 50001)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1552,7 +1552,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> if ( -1 !== _.indexOf( themes.disabled, response.slug ) ) {
</span><span class="cx" style="display: block; padding: 0 10px"> themes.disabled = _.without( themes.disabled, response.slug );
</span><span class="cx" style="display: block; padding: 0 10px"> if ( themes.disabled.length ) {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $views.find( '.disabled .count' ).text( '(' + themes.disabled.length + ')' );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $views.find( '.disabled .count' ).text( '(' + themes.disabled.length + ')' );
</ins><span class="cx" style="display: block; padding: 0 10px"> } else {
</span><span class="cx" style="display: block; padding: 0 10px"> $views.find( '.disabled' ).remove();
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1566,7 +1566,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> $views.find( '.auto-update-enabled' ).remove();
</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">-
</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 ( -1 !== _.indexOf( themes['auto-update-disabled'], response.slug ) ) {
</span><span class="cx" style="display: block; padding: 0 10px"> themes['auto-update-disabled'] = _.without( themes['auto-update-disabled'], response.slug );
</span><span class="cx" style="display: block; padding: 0 10px"> if ( themes['auto-update-disabled'].length ) {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -2045,7 +2045,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> $filesystemForm.on( 'change', 'input[name="connection_type"]', function() {
</span><span class="cx" style="display: block; padding: 0 10px"> $( '#ssh-keys' ).toggleClass( 'hidden', ( 'ssh' !== $( this ).val() ) );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- } ).change();
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ } ).trigger( 'change' );
</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"> * Handles events after the credential modal was closed.
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -2765,7 +2765,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"> try {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- message = $.parseJSON( originalEvent.data );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ message = JSON.parse( originalEvent.data );
</ins><span class="cx" style="display: block; padding: 0 10px"> } catch ( e ) {
</span><span class="cx" style="display: block; padding: 0 10px"> return;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span></span></pre></div>
<a id="trunksrcjs_enqueueswpwidgetscustomhtmljs"></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/custom-html.js</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/js/_enqueues/wp/widgets/custom-html.js 2021-01-21 12:37:39 UTC (rev 50000)
+++ trunk/src/js/_enqueues/wp/widgets/custom-html.js 2021-01-22 12:30:39 UTC (rev 50001)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -446,9 +446,15 @@
</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"> // Accessibility mode.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $( window ).on( 'load', function() {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ if ( document.readyState === 'complete' ) {
+ // Page is fully loaded.
</ins><span class="cx" style="display: block; padding: 0 10px"> component.setupAccessibleMode();
</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">+ } else {
+ // Page is still loading.
+ $( window ).on( 'load', function() {
+ component.setupAccessibleMode();
+ });
+ }
</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_enqueueswpwidgetsmediajs"></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/media.js</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/js/_enqueues/wp/widgets/media.js 2021-01-21 12:37:39 UTC (rev 50000)
+++ trunk/src/js/_enqueues/wp/widgets/media.js 2021-01-22 12:30:39 UTC (rev 50001)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1320,9 +1320,15 @@
</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"> // Accessibility mode.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $( window ).on( 'load', function() {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ if ( document.readyState === 'complete' ) {
+ // Page is fully loaded.
</ins><span class="cx" style="display: block; padding: 0 10px"> component.setupAccessibleMode();
</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">+ } else {
+ // Page is still loading.
+ $( window ).on( 'load', function() {
+ component.setupAccessibleMode();
+ });
+ }
</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="trunksrcjsmediaviewsfocusmanagerjs"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/js/media/views/focus-manager.js</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/js/media/views/focus-manager.js 2021-01-21 12:37:39 UTC (rev 50000)
+++ trunk/src/js/media/views/focus-manager.js 2021-01-22 12:30:39 UTC (rev 50001)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -69,7 +69,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"> focus: function() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- this.$( '.media-modal' ).focus();
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ this.$( '.media-modal' ).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="trunksrcjsmediaviewsframeeditattachmentsjs"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/js/media/views/frame/edit-attachments.js</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/js/media/views/frame/edit-attachments.js 2021-01-21 12:37:39 UTC (rev 50000)
+++ trunk/src/js/media/views/frame/edit-attachments.js 2021-01-22 12:30:39 UTC (rev 50001)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -94,7 +94,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> // Remove the keydown event.
</span><span class="cx" style="display: block; padding: 0 10px"> $( 'body' ).off( 'keydown.media-modal' );
</span><span class="cx" style="display: block; padding: 0 10px"> // Move focus back to the original item in the grid if possible.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $( 'li.attachment[data-id="' + this.model.get( 'id' ) +'"]' ).focus();
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $( 'li.attachment[data-id="' + this.model.get( 'id' ) +'"]' ).trigger( 'focus' );
</ins><span class="cx" style="display: block; padding: 0 10px"> this.resetRoute();
</span><span class="cx" style="display: block; padding: 0 10px"> }, this ) );
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -232,7 +232,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @param {string} which A CSS selector to target the button to focus.
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> focusNavButton: function( which ) {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $( which ).focus();
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $( which ).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"> getCurrentIndex: function() {
</span></span></pre></div>
<a id="trunksrcjsmediaviewsmodaljs"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/js/media/views/modal.js</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/js/media/views/modal.js 2021-01-21 12:37:39 UTC (rev 50000)
+++ trunk/src/js/media/views/modal.js 2021-01-22 12:30:39 UTC (rev 50001)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -115,7 +115,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"> // Set initial focus on the content instead of this view element, to avoid page scrolling.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- this.$( '.media-modal' ).focus();
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ this.$( '.media-modal' ).trigger( 'focus' );
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> // Hide the page content from assistive technologies.
</span><span class="cx" style="display: block; padding: 0 10px"> this.focusManager.setAriaHiddenOnBodyChildren( $el );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -136,7 +136,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> $( 'body' ).removeClass( 'modal-open' );
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> // Hide modal and remove restricted media modal tab focus once it's closed.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- this.$el.hide().undelegate( 'keydown' );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ this.$el.hide().off( 'keydown' );
</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"> * Make visible again to assistive technologies all body children that
</span></span></pre></div>
<a id="trunksrcwpadminexportphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/wp-admin/export.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-admin/export.php 2021-01-21 12:37:39 UTC (rev 50000)
+++ trunk/src/wp-admin/export.php 2021-01-22 12:30:39 UTC (rev 50001)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -29,7 +29,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> var form = $('#export-filters'),
</span><span class="cx" style="display: block; padding: 0 10px"> filters = form.find('.export-filters');
</span><span class="cx" style="display: block; padding: 0 10px"> filters.hide();
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- form.find('input:radio').change(function() {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ form.find('input:radio').on( 'change', function() {
</ins><span class="cx" style="display: block; padding: 0 10px"> filters.slideUp('fast');
</span><span class="cx" style="display: block; padding: 0 10px"> switch ( $(this).val() ) {
</span><span class="cx" style="display: block; padding: 0 10px"> case 'attachment': $('#attachment-filters').slideDown(); break;
</span></span></pre></div>
<a id="trunksrcwpadminincludesmsphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/wp-admin/includes/ms.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-admin/includes/ms.php 2021-01-21 12:37:39 UTC (rev 50000)
+++ trunk/src/wp-admin/includes/ms.php 2021-01-22 12:30:39 UTC (rev 50001)
</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"> <script type="text/javascript">
</span><span class="cx" style="display: block; padding: 0 10px"> jQuery(document).ready( function($) {
</span><span class="cx" style="display: block; padding: 0 10px"> var languageSelect = $( '#WPLANG' );
</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"> // Don't show a spinner for English and installed languages,
</span><span class="cx" style="display: block; padding: 0 10px"> // as there is nothing to download.
</span><span class="cx" style="display: block; padding: 0 10px"> if ( ! languageSelect.find( 'option:selected' ).data( 'installed' ) ) {
</span></span></pre></div>
<a id="trunksrcwpadminincludesoptionsphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/wp-admin/includes/options.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-admin/includes/options.php 2021-01-21 12:37:39 UTC (rev 50000)
+++ trunk/src/wp-admin/includes/options.php 2021-01-22 12:30:39 UTC (rev 50001)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -18,7 +18,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> (function($){
</span><span class="cx" style="display: block; padding: 0 10px"> var parent = $( '#show_avatars' ),
</span><span class="cx" style="display: block; padding: 0 10px"> children = $( '.avatar-settings' );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- parent.change(function(){
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ parent.on( 'change', function(){
</ins><span class="cx" style="display: block; padding: 0 10px"> children.toggleClass( 'hide-if-js', ! this.checked );
</span><span class="cx" style="display: block; padding: 0 10px"> });
</span><span class="cx" style="display: block; padding: 0 10px"> })(jQuery);
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -49,7 +49,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> $siteName.text( title );
</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">- $( 'input[name="date_format"]' ).click( function() {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $( 'input[name="date_format"]' ).on( 'click', function() {
</ins><span class="cx" style="display: block; padding: 0 10px"> if ( 'date_format_custom_radio' !== $(this).attr( 'id' ) )
</span><span class="cx" style="display: block; padding: 0 10px"> $( 'input[name="date_format_custom"]' ).val( $( this ).val() ).closest( 'fieldset' ).find( '.example' ).text( $( this ).parent( 'label' ).children( '.format-i18n' ).text() );
</span><span class="cx" style="display: block; padding: 0 10px"> });
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -58,7 +58,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> $( '#date_format_custom_radio' ).prop( 'checked', true );
</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">- $( 'input[name="time_format"]' ).click( function() {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $( 'input[name="time_format"]' ).on( 'click', function() {
</ins><span class="cx" style="display: block; padding: 0 10px"> if ( 'time_format_custom_radio' !== $(this).attr( 'id' ) )
</span><span class="cx" style="display: block; padding: 0 10px"> $( 'input[name="time_format_custom"]' ).val( $( this ).val() ).closest( 'fieldset' ).find( '.example' ).text( $( this ).parent( 'label' ).children( '.format-i18n' ).text() );
</span><span class="cx" style="display: block; padding: 0 10px"> });
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -89,7 +89,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"> var languageSelect = $( '#WPLANG' );
</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"> // Don't show a spinner for English and installed languages,
</span><span class="cx" style="display: block; padding: 0 10px"> // as there is nothing to download.
</span><span class="cx" style="display: block; padding: 0 10px"> if ( ! languageSelect.find( 'option:selected' ).data( 'installed' ) ) {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -117,7 +117,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> selects.prop( 'disabled', ! staticPage.prop('checked') );
</span><span class="cx" style="display: block; padding: 0 10px"> };
</span><span class="cx" style="display: block; padding: 0 10px"> check_disabled();
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- section.find( 'input:radio' ).change( check_disabled );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ section.find( 'input:radio' ).on( 'change', check_disabled );
</ins><span class="cx" style="display: block; padding: 0 10px"> });
</span><span class="cx" style="display: block; padding: 0 10px"> </script>
</span><span class="cx" style="display: block; padding: 0 10px"> <?php
</span></span></pre></div>
<a id="trunksrcwpcontentthemestwentyelevenjsshowcasejs"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/wp-content/themes/twentyeleven/js/showcase.js</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-content/themes/twentyeleven/js/showcase.js 2021-01-21 12:37:39 UTC (rev 50000)
+++ trunk/src/wp-content/themes/twentyeleven/js/showcase.js 2021-01-22 12:30:39 UTC (rev 50001)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1,6 +1,6 @@
</span><span class="cx" style="display: block; padding: 0 10px"> (function($) {
</span><span class="cx" style="display: block; padding: 0 10px"> $(document).ready( function() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $('.feature-slider a').click(function(e) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $('.feature-slider a').on( 'click', function(e) {
</ins><span class="cx" style="display: block; padding: 0 10px"> $('.featured-posts section.featured-post').css({
</span><span class="cx" style="display: block; padding: 0 10px"> opacity: 0,
</span><span class="cx" style="display: block; padding: 0 10px"> visibility: 'hidden'
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -14,4 +14,4 @@
</span><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><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="trunksrcwpcontentthemestwentyfifteenjsfunctionsjs"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/wp-content/themes/twentyfifteen/js/functions.js</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-content/themes/twentyfifteen/js/functions.js 2021-01-21 12:37:39 UTC (rev 50000)
+++ trunk/src/wp-content/themes/twentyfifteen/js/functions.js 2021-01-22 12:30:39 UTC (rev 50001)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -17,7 +17,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> container.find( '.current-menu-ancestor > button' ).addClass( 'toggle-on' );
</span><span class="cx" style="display: block; padding: 0 10px"> container.find( '.current-menu-ancestor > .sub-menu' ).addClass( 'toggled-on' );
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- container.find( '.dropdown-toggle' ).click( function( e ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ container.find( '.dropdown-toggle' ).on( 'click', function( e ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> var _this = $( this );
</span><span class="cx" style="display: block; padding: 0 10px"> e.preventDefault();
</span><span class="cx" style="display: block; padding: 0 10px"> _this.toggleClass( 'toggle-on' );
</span></span></pre></div>
<a id="trunksrcwpcontentthemestwentyfourteenjsfunctionsjs"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/wp-content/themes/twentyfourteen/js/functions.js</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-content/themes/twentyfourteen/js/functions.js 2021-01-21 12:37:39 UTC (rev 50000)
+++ trunk/src/wp-content/themes/twentyfourteen/js/functions.js 2021-01-22 12:30:39 UTC (rev 50001)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -147,12 +147,12 @@
</span><span class="cx" style="display: block; padding: 0 10px"> onResizeARIA();
</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">- _window.load( function() {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ _window.on( 'load', function() {
</ins><span class="cx" style="display: block; padding: 0 10px"> var footerSidebar,
</span><span class="cx" style="display: block; padding: 0 10px"> isCustomizeSelectiveRefresh = ( 'undefined' !== typeof wp && wp.customize && wp.customize.selectiveRefresh );
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> // Arrange footer widgets vertically.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- if ( $.isFunction( $.fn.masonry ) ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ if ( typeof $.fn.masonry === 'function' ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> footerSidebar = $( '#footer-sidebar' );
</span><span class="cx" style="display: block; padding: 0 10px"> footerSidebar.masonry( {
</span><span class="cx" style="display: block; padding: 0 10px"> itemSelector: '.widget',
</span></span></pre></div>
<a id="trunksrcwpcontentthemestwentyseventeenassetsjsglobaljs"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/wp-content/themes/twentyseventeen/assets/js/global.js</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-content/themes/twentyseventeen/assets/js/global.js 2021-01-21 12:37:39 UTC (rev 50000)
+++ trunk/src/wp-content/themes/twentyseventeen/assets/js/global.js 2021-01-22 12:30:39 UTC (rev 50001)
</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"> resizeTimer;
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> // Ensure the sticky navigation doesn't cover current focused links.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $( 'a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), iframe, object, embed, [tabindex], [contenteditable]', '.site-content-contain' ).filter( ':visible' ).focus( function() {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $( 'a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), iframe, object, embed, [tabindex], [contenteditable]', '.site-content-contain' ).filter( ':visible' ).on( 'focus', function() {
</ins><span class="cx" style="display: block; padding: 0 10px"> if ( $navigation.hasClass( 'site-navigation-fixed' ) ) {
</span><span class="cx" style="display: block; padding: 0 10px"> var windowScrollTop = $( window ).scrollTop(),
</span><span class="cx" style="display: block; padding: 0 10px"> fixedNavHeight = $navigation.height(),
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -197,7 +197,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> navigationOuterHeight = 0;
</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">- $menuScrollDown.click( function( e ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $menuScrollDown.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"> $( window ).scrollTo( '#primary', {
</span><span class="cx" style="display: block; padding: 0 10px"> duration: 600,
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -228,13 +228,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"> // Also want to make sure the navigation is where it should be on resize.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $( window ).resize( function() {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $( window ).on( 'resize', function() {
</ins><span class="cx" style="display: block; padding: 0 10px"> setNavProps();
</span><span class="cx" style="display: block; padding: 0 10px"> setTimeout( adjustScrollClass, 500 );
</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">- $( window ).resize( function() {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $( window ).on( 'resize', function() {
</ins><span class="cx" style="display: block; padding: 0 10px"> clearTimeout( resizeTimer );
</span><span class="cx" style="display: block; padding: 0 10px"> resizeTimer = setTimeout( function() {
</span><span class="cx" style="display: block; padding: 0 10px"> belowEntryMetaClass( 'blockquote.alignleft, blockquote.alignright' );
</span></span></pre></div>
<a id="trunksrcwpcontentthemestwentyseventeenassetsjsnavigationjs"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/wp-content/themes/twentyseventeen/assets/js/navigation.js</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-content/themes/twentyseventeen/assets/js/navigation.js 2021-01-21 12:37:39 UTC (rev 50000)
+++ trunk/src/wp-content/themes/twentyseventeen/assets/js/navigation.js 2021-01-22 12:30:39 UTC (rev 50001)
</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"> // Set the active submenu initial state.
</span><span class="cx" style="display: block; padding: 0 10px"> container.find( '.current-menu-ancestor > .sub-menu' ).addClass( 'toggled-on' );
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- container.find( '.dropdown-toggle' ).click( function( e ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ container.find( '.dropdown-toggle' ).on( 'click', function( e ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> var _this = $( this ),
</span><span class="cx" style="display: block; padding: 0 10px"> screenReaderSpan = _this.find( '.screen-reader-text' );
</span><span class="cx" style="display: block; padding: 0 10px">
</span></span></pre></div>
<a id="trunksrcwpcontentthemestwentysixteenjsfunctionsjs"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/wp-content/themes/twentysixteen/js/functions.js</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-content/themes/twentysixteen/js/functions.js 2021-01-21 12:37:39 UTC (rev 50000)
+++ trunk/src/wp-content/themes/twentysixteen/js/functions.js 2021-01-22 12:30:39 UTC (rev 50001)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -28,7 +28,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> // Add menu items with submenus to aria-haspopup="true".
</span><span class="cx" style="display: block; padding: 0 10px"> container.find( '.menu-item-has-children' ).attr( 'aria-haspopup', 'true' );
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- container.find( '.dropdown-toggle' ).click( function( e ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ container.find( '.dropdown-toggle' ).on( 'click', function( e ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> var _this = $( this ),
</span><span class="cx" style="display: block; padding: 0 10px"> screenReaderSpan = _this.find( '.screen-reader-text' );
</span><span class="cx" style="display: block; padding: 0 10px">
</span></span></pre></div>
<a id="trunksrcwpcontentthemestwentythirteenjsfunctionsjs"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/wp-content/themes/twentythirteen/js/functions.js</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-content/themes/twentythirteen/js/functions.js 2021-01-21 12:37:39 UTC (rev 50000)
+++ trunk/src/wp-content/themes/twentythirteen/js/functions.js 2021-01-22 12:30:39 UTC (rev 50001)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -123,7 +123,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> $( function() {
</span><span class="cx" style="display: block; padding: 0 10px"> var columnWidth, widgetArea;
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- if ( ! $.isFunction( $.fn.masonry ) ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ if ( typeof $.fn.masonry !== 'function' ) {
</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"> columnWidth = body.is( '.sidebar' ) ? 228 : 245;
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -164,4 +164,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>
</div>
</body>
</html>