<!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>[50547] trunk/src/js: External Libraries: Further fix jQuery deprecations in WordPress core.</title>
</head>
<body>
<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; }
#msg dl a { font-weight: bold}
#msg dl a:link { color:#fc3; }
#msg dl a:active { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { white-space: pre-line; overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta" style="font-size: 105%">
<dt style="float: left; width: 6em; font-weight: bold">Revision</dt> <dd><a style="font-weight: bold" href="https://core.trac.wordpress.org/changeset/50547">50547</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/50547","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-03-18 18:59:34 +0000 (Thu, 18 Mar 2021)</dd>
</dl>
<pre style='padding-left: 1em; margin: 2em 0; border-left: 2px solid #ccc; line-height: 1.25; font-size: 105%; font-family: sans-serif'>External Libraries: Further fix jQuery deprecations in WordPress core.
Follow-up to <a href="https://core.trac.wordpress.org/changeset/50001">[50001]</a>, <a href="https://core.trac.wordpress.org/changeset/50270">[50270]</a>, <a href="https://core.trac.wordpress.org/changeset/50367">[50367]</a>, <a href="https://core.trac.wordpress.org/changeset/50383">[50383]</a>, <a href="https://core.trac.wordpress.org/changeset/50410">[50410]</a>, <a href="https://core.trac.wordpress.org/changeset/50420">[50420]</a>, <a href="https://core.trac.wordpress.org/changeset/50429">[50429]</a>.
Props Clorith.
See <a href="https://core.trac.wordpress.org/ticket/51812">#51812</a>.</pre>
<h3>Modified Paths</h3>
<ul>
<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_enqueuesadmincustombackgroundjs">trunk/src/js/_enqueues/admin/custom-background.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_enqueuesadminlinkjs">trunk/src/js/_enqueues/admin/link.js</a></li>
<li><a href="#trunksrcjs_enqueuesadminmediajs">trunk/src/js/_enqueues/admin/media.js</a></li>
<li><a href="#trunksrcjs_enqueuesadminplugininstalljs">trunk/src/js/_enqueues/admin/plugin-install.js</a></li>
<li><a href="#trunksrcjs_enqueuesadminpostjs">trunk/src/js/_enqueues/admin/post.js</a></li>
<li><a href="#trunksrcjs_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_enqueuesadmintagsboxjs">trunk/src/js/_enqueues/admin/tags-box.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_enqueuesadminxfnjs">trunk/src/js/_enqueues/admin/xfn.js</a></li>
<li><a href="#trunksrcjs_enqueueslibaccordionjs">trunk/src/js/_enqueues/lib/accordion.js</a></li>
<li><a href="#trunksrcjs_enqueueslibajaxresponsejs">trunk/src/js/_enqueues/lib/ajax-response.js</a></li>
<li><a href="#trunksrcjs_enqueueslibauthcheckjs">trunk/src/js/_enqueues/lib/auth-check.js</a></li>
<li><a href="#trunksrcjs_enqueueslibcolorpickerjs">trunk/src/js/_enqueues/lib/color-picker.js</a></li>
<li><a href="#trunksrcjs_enqueueslibgalleryjs">trunk/src/js/_enqueues/lib/gallery.js</a></li>
<li><a href="#trunksrcjs_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_enqueueslibquicktagsjs">trunk/src/js/_enqueues/lib/quicktags.js</a></li>
<li><a href="#trunksrcjs_enqueueslibusersuggestjs">trunk/src/js/_enqueues/lib/user-suggest.js</a></li>
<li><a href="#trunksrcjs_enqueueswpautosavejs">trunk/src/js/_enqueues/wp/autosave.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_enqueueswpcustomizewidgetsjs">trunk/src/js/_enqueues/wp/customize/widgets.js</a></li>
<li><a href="#trunksrcjs_enqueueswpdashboardjs">trunk/src/js/_enqueues/wp/dashboard.js</a></li>
<li><a href="#trunksrcjs_enqueueswpeditorbasejs">trunk/src/js/_enqueues/wp/editor/base.js</a></li>
<li><a href="#trunksrcjs_enqueueswpheartbeatjs">trunk/src/js/_enqueues/wp/heartbeat.js</a></li>
<li><a href="#trunksrcjs_enqueueswpsvgpainterjs">trunk/src/js/_enqueues/wp/svg-painter.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_enqueueswpwidgetsmediajs">trunk/src/js/_enqueues/wp/widgets/media.js</a></li>
<li><a href="#trunksrcjsmediaviewsembedurljs">trunk/src/js/media/views/embed/url.js</a></li>
<li><a href="#trunksrcjsmediaviewsmodaljs">trunk/src/js/media/views/modal.js</a></li>
<li><a href="#trunksrcjsmediaviewsuploaderinlinejs">trunk/src/js/media/views/uploader/inline.js</a></li>
</ul>
</div>
<div id="patch">
<h3>Diff</h3>
<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-03-18 17:51:52 UTC (rev 50546)
+++ trunk/src/js/_enqueues/admin/comment.js 2021-03-18 18:59:34 UTC (rev 50547)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -11,7 +11,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @param {jQuery} $ The jQuery object.
</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(document).ready( function($) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+jQuery( function($) {
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> postboxes.add_postbox_toggles('comment');
</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-03-18 17:51:52 UTC (rev 50546)
+++ trunk/src/js/_enqueues/admin/common.js 2021-03-18 18:59:34 UTC (rev 50547)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -483,7 +483,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">-$document.ready(function(){columns.init();});
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+$( function() { columns.init(); } );
</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"> * Validates that the required form fields are not empty.
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -802,7 +802,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">-$document.ready( function() {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+$( function() {
</ins><span class="cx" style="display: block; padding: 0 10px"> var checks, first, last, checked, sliced, mobileEvent, transitionTimeout, focusedRowActions,
</span><span class="cx" style="display: block; padding: 0 10px"> lastClicked = false,
</span><span class="cx" style="display: block; padding: 0 10px"> pageInput = $('input.current-page'),
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1706,7 +1706,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"> self.trigger();
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $document.on( 'wp-window-resized.wp-responsive', $.proxy( this.trigger, this ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $document.on( 'wp-window-resized.wp-responsive', this.trigger.bind( this ) );
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> // This needs to run later as UI Sortable may be initialized later on $(document).ready().
</span><span class="cx" style="display: block; padding: 0 10px"> $window.on( 'load.wp-responsive', this.maybeDisableSortables );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1889,7 +1889,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> $( '.aria-button-if-js' ).attr( 'role', 'button' );
</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 ).ajaxComplete( function() {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $( document ).on( 'ajaxComplete', function() {
</ins><span class="cx" style="display: block; padding: 0 10px"> aria_button_if_js();
</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">@@ -2008,7 +2008,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 5.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">-$document.ready( function( $ ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+$( function( $ ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> var $overwrite, $warning;
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> if ( ! $body.hasClass( 'update-php' ) ) {
</span></span></pre></div>
<a id="trunksrcjs_enqueuesadmincustombackgroundjs"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/js/_enqueues/admin/custom-background.js</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/js/_enqueues/admin/custom-background.js 2021-03-18 17:51:52 UTC (rev 50546)
+++ trunk/src/js/_enqueues/admin/custom-background.js 2021-03-18 18:59:34 UTC (rev 50547)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -12,7 +12,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @requires jQuery
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> (function($) {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $(document).ready(function() {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $( function() {
</ins><span class="cx" style="display: block; padding: 0 10px"> var frame,
</span><span class="cx" style="display: block; padding: 0 10px"> bgImage = $( '#custom-background-image' );
</span><span class="cx" style="display: block; padding: 0 10px">
</span></span></pre></div>
<a id="trunksrcjs_enqueuesadmineditcommentsjs"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/js/_enqueues/admin/edit-comments.js</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/js/_enqueues/admin/edit-comments.js 2021-03-18 17:51:52 UTC (rev 50546)
+++ trunk/src/js/_enqueues/admin/edit-comments.js 2021-03-18 18:59:34 UTC (rev 50547)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1225,7 +1225,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">-$(document).ready(function(){
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+$( function(){
</ins><span class="cx" style="display: block; padding: 0 10px"> var make_hotkeys_redirect, edit_comment, toggle_all, make_bulk;
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> setCommentsList();
</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-03-18 17:51:52 UTC (rev 50546)
+++ trunk/src/js/_enqueues/admin/inline-edit-post.js 2021-03-18 18:59:34 UTC (rev 50547)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -516,10 +516,16 @@
</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">-$( document ).ready( function(){ inlineEditPost.init(); } );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+$( function() { inlineEditPost.init(); } );
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> // Show/hide locks on posts.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-$( document ).on( 'heartbeat-tick.wp-check-locked-posts', function( e, data ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+$( function() {
+
+ // Set the heartbeat interval to 15 seconds.
+ if ( typeof wp !== 'undefined' && wp.heartbeat ) {
+ wp.heartbeat.interval( 15 );
+ }
+}).on( 'heartbeat-tick.wp-check-locked-posts', function( e, data ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> var locked = data['wp-check-locked-posts'] || {};
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> $('#the-list tr').each( function(i, el) {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -560,12 +566,6 @@
</span><span class="cx" style="display: block; padding: 0 10px"> if ( check.length ) {
</span><span class="cx" style="display: block; padding: 0 10px"> data['wp-check-locked-posts'] = check;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-}).ready( function() {
-
- // Set the heartbeat interval to 15 seconds.
- if ( typeof wp !== 'undefined' && wp.heartbeat ) {
- wp.heartbeat.interval( 15 );
- }
</del><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"> })( jQuery, window.wp );
</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-03-18 17:51:52 UTC (rev 50546)
+++ trunk/src/js/_enqueues/admin/inline-edit-tax.js 2021-03-18 18:59:34 UTC (rev 50547)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -289,6 +289,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">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-$(document).ready(function(){inlineEditTax.init();});
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+$( function() { inlineEditTax.init(); } );
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> })( jQuery, window.wp );
</span></span></pre></div>
<a id="trunksrcjs_enqueuesadminlinkjs"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/js/_enqueues/admin/link.js</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/js/_enqueues/admin/link.js 2021-03-18 17:51:52 UTC (rev 50546)
+++ trunk/src/js/_enqueues/admin/link.js 2021-03-18 18:59:34 UTC (rev 50547)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -4,7 +4,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> /* global postboxes, deleteUserSetting, setUserSetting, getUserSetting */
</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(document).ready( function($) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+jQuery( function($) {
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> var newCat, noSyncChecks = false, syncChecks, catAddAfter;
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -81,7 +81,11 @@
</span><span class="cx" style="display: block; padding: 0 10px"> $(s.what + ' response_data', r).each( function() {
</span><span class="cx" style="display: block; padding: 0 10px"> var t = $($(this).text());
</span><span class="cx" style="display: block; padding: 0 10px"> t.find( 'label' ).each( function() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- var th = $(this), val = th.find('input').val(), id = th.find('input')[0].id, name = $.trim( th.text() ), o;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ var th = $(this),
+ val = th.find('input').val(),
+ id = th.find('input')[0].id,
+ name = th.text().trim(),
+ o;
</ins><span class="cx" style="display: block; padding: 0 10px"> $('#' + id).on( 'change', syncChecks );
</span><span class="cx" style="display: block; padding: 0 10px"> o = $( '<option value="' + parseInt( val, 10 ) + '"></option>' ).text( name );
</span><span class="cx" style="display: block; padding: 0 10px"> } );
</span></span></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-03-18 17:51:52 UTC (rev 50546)
+++ trunk/src/js/_enqueues/admin/media.js 2021-03-18 18:59:34 UTC (rev 50547)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -140,7 +140,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @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">- $( document ).ready( function() {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $( function() {
</ins><span class="cx" style="display: block; padding: 0 10px"> var settings, $mediaGridWrap = $( '#wp-media-grid' );
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> // Opens a manage media frame into the grid.
</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-03-18 17:51:52 UTC (rev 50546)
+++ trunk/src/js/_enqueues/admin/plugin-install.js 2021-03-18 18:59:34 UTC (rev 50547)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -6,7 +6,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> /* global tb_click, tb_remove, tb_position */
</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( document ).ready( function( $ ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+jQuery( function( $ ) {
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> var tbWindow,
</span><span class="cx" style="display: block; padding: 0 10px"> $iframeBody,
</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-03-18 17:51:52 UTC (rev 50546)
+++ trunk/src/js/_enqueues/admin/post.js 2021-03-18 18:59:34 UTC (rev 50547)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -260,7 +260,9 @@
</span><span class="cx" style="display: block; padding: 0 10px"> timeout = window.setTimeout( function(){ check = true; }, 300000 );
</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).on( 'heartbeat-send.wp-refresh-nonces', function( e, data ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $( function() {
+ schedule();
+ }).on( 'heartbeat-send.wp-refresh-nonces', function( e, data ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> var post_id,
</span><span class="cx" style="display: block; padding: 0 10px"> $authCheck = $('#wp-auth-check-wrap');
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -286,8 +288,6 @@
</span><span class="cx" style="display: block; padding: 0 10px"> if ( nonces.heartbeatNonce )
</span><span class="cx" style="display: block; padding: 0 10px"> window.heartbeatSettings.nonce = nonces.heartbeatNonce;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- }).ready( function() {
- schedule();
</del><span class="cx" style="display: block; padding: 0 10px"> });
</span><span class="cx" style="display: block; padding: 0 10px"> }(jQuery));
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -294,7 +294,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><span class="cx" style="display: block; padding: 0 10px"> * All post and postbox controls and functionality.
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-jQuery(document).ready( function($) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+jQuery( function($) {
</ins><span class="cx" style="display: block; padding: 0 10px"> var stamp, visibility, $submitButtons, updateVisibility, updateText,
</span><span class="cx" style="display: block; padding: 0 10px"> $textarea = $('#content'),
</span><span class="cx" style="display: block; padding: 0 10px"> $document = $(document),
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -661,7 +661,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> $('#' + taxonomy + '-add-toggle').on( 'click', function( e ) {
</span><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><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $('a[href="#' + taxonomy + '-all"]', '#' + taxonomy + '-tabs').click();
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $('a[href="#' + taxonomy + '-all"]', '#' + taxonomy + '-tabs').trigger( 'click' );
</ins><span class="cx" style="display: block; padding: 0 10px"> $('#new'+taxonomy).trigger( 'focus' );
</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-03-18 17:51:52 UTC (rev 50546)
+++ trunk/src/js/_enqueues/admin/privacy-tools.js 2021-03-18 18:59:34 UTC (rev 50547)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -5,7 +5,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"> // Privacy request action handling.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-jQuery( document ).ready( function( $ ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+jQuery( function( $ ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> var __ = wp.i18n.__,
</span><span class="cx" style="display: block; padding: 0 10px"> copiedNoticeTimeout;
</span><span class="cx" style="display: block; padding: 0 10px">
</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-03-18 17:51:52 UTC (rev 50546)
+++ trunk/src/js/_enqueues/admin/site-health.js 2021-03-18 18:59:34 UTC (rev 50547)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -6,7 +6,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> /* global ajaxurl, ClipboardJS, SiteHealth, wp */
</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( document ).ready( function( $ ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+jQuery( function( $ ) {
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> var __ = wp.i18n.__,
</span><span class="cx" style="display: block; padding: 0 10px"> _n = wp.i18n._n,
</span></span></pre></div>
<a id="trunksrcjs_enqueuesadmintagsboxjs"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/js/_enqueues/admin/tags-box.js</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/js/_enqueues/admin/tags-box.js 2021-03-18 17:51:52 UTC (rev 50546)
+++ trunk/src/js/_enqueues/admin/tags-box.js 2021-03-18 18:59:34 UTC (rev 50547)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -27,7 +27,8 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> // Trim the values and ensure they are unique.
</span><span class="cx" style="display: block; padding: 0 10px"> $.each( array, function( key, val ) {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- val = $.trim( val );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ val = val || '';
+ val = val.trim();
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> if ( val && $.inArray( val, out ) === -1 ) {
</span><span class="cx" style="display: block; padding: 0 10px"> out.push( val );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -96,7 +97,8 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> // Sanitize the current tags and push them as if they're new tags.
</span><span class="cx" style="display: block; padding: 0 10px"> $.each( current_tags, function( key, val ) {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- val = $.trim( val );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ val = val || '';
+ val = val.trim();
</ins><span class="cx" style="display: block; padding: 0 10px"> if ( val ) {
</span><span class="cx" style="display: block; padding: 0 10px"> new_tags.push( val );
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -148,7 +150,8 @@
</span><span class="cx" style="display: block; padding: 0 10px"> $.each( current_tags, function( key, val ) {
</span><span class="cx" style="display: block; padding: 0 10px"> var listItem, xbutton;
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- val = $.trim( val );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ val = val || '';
+ val = val.trim();
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> if ( ! val )
</span><span class="cx" style="display: block; padding: 0 10px"> return;
</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-03-18 17:51:52 UTC (rev 50546)
+++ trunk/src/js/_enqueues/admin/tags.js 2021-03-18 18:59:34 UTC (rev 50547)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -9,7 +9,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> /* global ajaxurl, wpAjax, showNotice, validateForm */
</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(document).ready(function($) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+jQuery( function($) {
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> var addingTerm = false;
</span><span class="cx" style="display: block; padding: 0 10px">
</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-03-18 17:51:52 UTC (rev 50546)
+++ trunk/src/js/_enqueues/admin/user-profile.js 2021-03-18 18:59:34 UTC (rev 50547)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -319,7 +319,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">- $(document).ready( function() {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $( function() {
</ins><span class="cx" style="display: block; padding: 0 10px"> var $colorpicker, $stylesheet, user_id, current_user_id,
</span><span class="cx" style="display: block; padding: 0 10px"> select = $( '#display_name' ),
</span><span class="cx" style="display: block; padding: 0 10px"> current_name = select.val(),
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -374,7 +374,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> return;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- var display_name = $.trim( this.value ) || current_name;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ var display_name = this.value.trim() || current_name;
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> greeting.text( display_name );
</span><span class="cx" style="display: block; padding: 0 10px"> } );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -466,7 +466,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * to avoid double clicking the button to retrieve the first generated password.
</span><span class="cx" style="display: block; padding: 0 10px"> * See ticket #39638.
</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 ).ready( function() {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $( function() {
</ins><span class="cx" style="display: block; padding: 0 10px"> if ( $( '.reset-pass-submit' ).length ) {
</span><span class="cx" style="display: block; padding: 0 10px"> $( '.reset-pass-submit button.wp-generate-pw' ).trigger( 'click' );
</span><span class="cx" style="display: block; padding: 0 10px"> }
</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-03-18 17:51:52 UTC (rev 50546)
+++ trunk/src/js/_enqueues/admin/widgets.js 2021-03-18 18:59:34 UTC (rev 50547)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -741,7 +741,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">-$document.ready( function(){ wpWidgets.init(); } );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+$( function(){ wpWidgets.init(); } );
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> })(jQuery);
</span><span class="cx" style="display: block; padding: 0 10px">
</span></span></pre></div>
<a id="trunksrcjs_enqueuesadminxfnjs"></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/xfn.js</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/js/_enqueues/admin/xfn.js 2021-03-18 17:51:52 UTC (rev 50546)
+++ trunk/src/js/_enqueues/admin/xfn.js 2021-03-18 18:59:34 UTC (rev 50547)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -4,7 +4,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @deprecated 3.5.0
</span><span class="cx" style="display: block; padding: 0 10px"> * @output wp-admin/js/xfn.js
</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( document ).ready(function( $ ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+jQuery( function( $ ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> $( '#link_rel' ).prop( 'readonly', true );
</span><span class="cx" style="display: block; padding: 0 10px"> $( '#linkxfndiv input' ).on( 'click keyup', function() {
</span><span class="cx" style="display: block; padding: 0 10px"> var isMe = $( '#me' ).is( ':checked' ), inputs = '';
</span></span></pre></div>
<a id="trunksrcjs_enqueueslibaccordionjs"></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/accordion.js</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/js/_enqueues/lib/accordion.js 2021-03-18 17:51:52 UTC (rev 50546)
+++ trunk/src/js/_enqueues/lib/accordion.js 2021-03-18 18:59:34 UTC (rev 50547)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -31,7 +31,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> ( function( $ ){
</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 ).ready( function () {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $( function () {
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> // Expand/Collapse accordion sections on click.
</span><span class="cx" style="display: block; padding: 0 10px"> $( '.accordion-container' ).on( 'click keydown', '.accordion-section-title', function( e ) {
</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-03-18 17:51:52 UTC (rev 50546)
+++ trunk/src/js/_enqueues/lib/ajax-response.js 2021-03-18 18:59:34 UTC (rev 50547)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -65,6 +65,6 @@
</span><span class="cx" style="display: block; padding: 0 10px"> }, wpAjax || { noPerm: 'Sorry, you are not allowed to do that.', broken: 'Something went wrong.' } );
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> // Basic form validation.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-jQuery(document).ready( function($){
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+jQuery( function($){
</ins><span class="cx" style="display: block; padding: 0 10px"> $('form.validate').on( 'submit', function() { return wpAjax.validateForm( $(this) ); } );
</span><span class="cx" style="display: block; padding: 0 10px"> });
</span></span></pre></div>
<a id="trunksrcjs_enqueueslibauthcheckjs"></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/auth-check.js</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/js/_enqueues/lib/auth-check.js 2021-03-18 17:51:52 UTC (rev 50546)
+++ trunk/src/js/_enqueues/lib/auth-check.js 2021-03-18 18:59:34 UTC (rev 50547)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -144,15 +144,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @param {Object} e The heartbeat-tick event that has been triggered.
</span><span class="cx" style="display: block; padding: 0 10px"> * @param {Object} data Response data.
</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 ).on( 'heartbeat-tick.wp-auth-check', function( e, data ) {
- if ( 'wp-auth-check' in data ) {
- if ( ! data['wp-auth-check'] && wrap.hasClass( 'hidden' ) && ! tempHidden ) {
- show();
- } else if ( data['wp-auth-check'] && ! wrap.hasClass( 'hidden' ) ) {
- hide();
- }
- }
- }).ready( function() {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $( function() {
</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"> * Hides the authentication form popup when the close icon is clicked.
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -166,6 +158,14 @@
</span><span class="cx" style="display: block; padding: 0 10px"> hide();
</span><span class="cx" style="display: block; padding: 0 10px"> setShowTimeout();
</span><span class="cx" style="display: block; padding: 0 10px"> });
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ }).on( 'heartbeat-tick.wp-auth-check', function( e, data ) {
+ if ( 'wp-auth-check' in data ) {
+ if ( ! data['wp-auth-check'] && wrap.hasClass( 'hidden' ) && ! tempHidden ) {
+ show();
+ } else if ( data['wp-auth-check'] && ! wrap.hasClass( 'hidden' ) ) {
+ hide();
+ }
+ }
</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"> }(jQuery));
</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-03-18 17:51:52 UTC (rev 50546)
+++ trunk/src/js/_enqueues/lib/color-picker.js 2021-03-18 18:59:34 UTC (rev 50547)
</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"> // Bind the close event.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- self.close = $.proxy( self.close, self );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ self.close = self.close.bind( self );
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> self.initialValue = el.val();
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -277,7 +277,7 @@
</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 class="cx" style="display: block; padding: 0 10px"> self.toggler.css( 'backgroundColor', '' );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- if ( $.isFunction( self.options.clear ) ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ if ( typeof self.options.clear === 'function' ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> self.options.clear.call( this, event );
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px"> } else if ( me.hasClass( 'wp-picker-default' ) ) {
</span></span></pre></div>
<a id="trunksrcjs_enqueueslibgalleryjs"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/js/_enqueues/lib/gallery.js</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/js/_enqueues/lib/gallery.js 2021-03-18 17:51:52 UTC (rev 50546)
+++ trunk/src/js/_enqueues/lib/gallery.js 2021-03-18 18:59:34 UTC (rev 50547)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -4,7 +4,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> /* global unescape, getUserSetting, setUserSetting, wpgallery, tinymce */
</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(document).ready(function($) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+jQuery( function($) {
</ins><span class="cx" style="display: block; padding: 0 10px"> var gallerySortable, gallerySortableInit, sortIt, clearAll, w, desc = false;
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> gallerySortableInit = function() {
</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-03-18 17:51:52 UTC (rev 50546)
+++ trunk/src/js/_enqueues/lib/link.js 2021-03-18 18:59:34 UTC (rev 50547)
</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"> // If URL wasn't corrected last time and doesn't start with http:, https:, ? # or /, prepend http://.
</span><span class="cx" style="display: block; padding: 0 10px"> correctURL: function () {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- var url = $.trim( inputs.url.val() );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ var url = inputs.url.val().trim();
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> if ( url && correctedURL !== url && ! /^(?:[a-z]+:|#|\?|\.|\/)/.test( url ) ) {
</span><span class="cx" style="display: block; padding: 0 10px"> inputs.url.val( 'http://' + url );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -238,7 +238,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> linkText = linkNode.text();
</span><span class="cx" style="display: block; padding: 0 10px"> href = linkNode.attr( 'href' );
</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 ( ! $.trim( linkText ) ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ if ( ! linkText.trim() ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> linkText = text || '';
</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">@@ -312,7 +312,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> wpLink.correctURL();
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> return {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- href: $.trim( inputs.url.val() ),
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ href: inputs.url.val().trim(),
</ins><span class="cx" style="display: block; padding: 0 10px"> target: inputs.openInNewTab.prop( 'checked' ) ? '_blank' : null
</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">@@ -425,7 +425,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> if ( ! $link.length ) {
</span><span class="cx" style="display: block; padding: 0 10px"> editor.execCommand( 'mceInsertLink', false, { href: '_wp_link_placeholder', 'data-wp-temp-link': 1 } );
</span><span class="cx" style="display: block; padding: 0 10px"> $link = editor.$( 'a[data-wp-temp-link="1"]' ).removeAttr( 'data-wp-temp-link' );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- hasText = $.trim( $link.text() );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ hasText = $link.text().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"> if ( ! $link.length ) {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -483,7 +483,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">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- selection = $.trim( selection );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ selection = selection || '';
+ selection = selection.trim();
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> if ( selection && emailRegexp.test( selection ) ) {
</span><span class="cx" style="display: block; padding: 0 10px"> // Selection is email address.
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -797,5 +798,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">- $( document ).ready( wpLink.init );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $( wpLink.init );
</ins><span class="cx" style="display: block; padding: 0 10px"> })( jQuery, window.wpLinkL10n, window.wp );
</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-03-18 17:51:52 UTC (rev 50546)
+++ trunk/src/js/_enqueues/lib/nav-menu.js 2021-03-18 18:59:34 UTC (rev 50547)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1331,7 +1331,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">- $(document).ready(function() {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $( function() {
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> wpNavMenu.init();
</span><span class="cx" style="display: block; padding: 0 10px">
</span></span></pre></div>
<a id="trunksrcjs_enqueueslibquicktagsjs"></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/quicktags.js</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/js/_enqueues/lib/quicktags.js 2021-03-18 17:51:52 UTC (rev 50546)
+++ trunk/src/js/_enqueues/lib/quicktags.js 2021-03-18 18:59:34 UTC (rev 50547)
</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"> var t, i, DOMContentLoaded, _tryReady;
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> if ( typeof jQuery !== 'undefined' ) {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- jQuery(document).ready(func);
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ jQuery( func );
</ins><span class="cx" style="display: block; padding: 0 10px"> } else {
</span><span class="cx" style="display: block; padding: 0 10px"> t = _domReady;
</span><span class="cx" style="display: block; padding: 0 10px"> t.funcs = [];
</span></span></pre></div>
<a id="trunksrcjs_enqueueslibusersuggestjs"></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/user-suggest.js</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/js/_enqueues/lib/user-suggest.js 2021-03-18 17:51:52 UTC (rev 50546)
+++ trunk/src/js/_enqueues/lib/user-suggest.js 2021-03-18 18:59:34 UTC (rev 50547)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -14,7 +14,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> (function( $ ) {
</span><span class="cx" style="display: block; padding: 0 10px"> var id = ( typeof current_site_id !== 'undefined' ) ? '&site_id=' + current_site_id : '';
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $(document).ready( function() {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $( function() {
</ins><span class="cx" style="display: block; padding: 0 10px"> var position = { offset: '0, -1' };
</span><span class="cx" style="display: block; padding: 0 10px"> if ( typeof isRtl !== 'undefined' && isRtl ) {
</span><span class="cx" style="display: block; padding: 0 10px"> position.my = 'right top';
</span></span></pre></div>
<a id="trunksrcjs_enqueueswpautosavejs"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/js/_enqueues/wp/autosave.js</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/js/_enqueues/wp/autosave.js 2021-03-18 17:51:52 UTC (rev 50546)
+++ trunk/src/js/_enqueues/wp/autosave.js 2021-03-18 18:59:34 UTC (rev 50547)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -582,7 +582,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * Don't run if the post type supports neither 'editor' (textarea#content) nor 'excerpt'.
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> if ( checkStorage() && blog_id && ( $('#content').length || $('#excerpt').length ) ) {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $document.ready( run );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $( run );
</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 {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -798,7 +798,9 @@
</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">- $document.on( 'heartbeat-send.autosave', function( event, data ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $( function() {
+ _schedule();
+ }).on( 'heartbeat-send.autosave', function( event, data ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> var autosaveData = save();
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> if ( autosaveData ) {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -848,8 +850,6 @@
</span><span class="cx" style="display: block; padding: 0 10px"> }).on( 'heartbeat-connection-restored.autosave', function() {
</span><span class="cx" style="display: block; padding: 0 10px"> $('#lost-connection-notice').hide();
</span><span class="cx" style="display: block; padding: 0 10px"> enableButtons();
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- }).ready( function() {
- _schedule();
</del><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 {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -873,7 +873,10 @@
</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">- $document.on( 'tinymce-editor-init.autosave', function( event, editor ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $( function() {
+ // Set the initial compare string in case TinyMCE is not used or not loaded first.
+ setInitialCompare();
+ }).on( 'tinymce-editor-init.autosave', function( event, editor ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> // Reset the initialCompare data after the TinyMCE instances have been initialized.
</span><span class="cx" style="display: block; padding: 0 10px"> if ( 'content' === editor.id || 'excerpt' === editor.id ) {
</span><span class="cx" style="display: block; padding: 0 10px"> window.setTimeout( function() {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -881,9 +884,6 @@
</span><span class="cx" style="display: block; padding: 0 10px"> setInitialCompare();
</span><span class="cx" style="display: block; padding: 0 10px"> }, 1000 );
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- }).ready( function() {
- // Set the initial compare string in case TinyMCE is not used or not loaded first.
- setInitialCompare();
</del><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 {
</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-03-18 17:51:52 UTC (rev 50546)
+++ trunk/src/js/_enqueues/wp/customize/base.js 2021-03-18 18:59:34 UTC (rev 50547)
</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">
</span><span class="cx" style="display: block; padding: 0 10px"> $.extend( this, options || {} );
</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.set = $.proxy( this.set, this );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ this.set = this.set.bind( this );
</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">@@ -734,7 +734,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * This will prevent every Messenger's receive function from being
</span><span class="cx" style="display: block; padding: 0 10px"> * unbound when calling $.off( 'message', this.receive );
</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.receive = $.proxy( this.receive, this );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ this.receive = this.receive.bind( this );
</ins><span class="cx" style="display: block; padding: 0 10px"> this.receive.guid = $.guid++;
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> $( window ).on( 'message', this.receive );
</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-03-18 17:51:52 UTC (rev 50546)
+++ trunk/src/js/_enqueues/wp/customize/controls.js 2021-03-18 18:59:34 UTC (rev 50547)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -289,7 +289,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> collection.focusContainer.focus();
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px"> } else if ( collection.previousActiveElement ) {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $( collection.previousActiveElement ).focus();
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $( collection.previousActiveElement ).trigger( 'focus' );
</ins><span class="cx" style="display: block; padding: 0 10px"> collection.previousActiveElement = null;
</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">@@ -1592,7 +1592,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> if ( args.unchanged ) {
</span><span class="cx" style="display: block; padding: 0 10px"> expand = args.completeCallback;
</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">- expand = $.proxy( function() {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ expand = function() {
</ins><span class="cx" style="display: block; padding: 0 10px"> section._animateChangeExpanded( function() {
</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="lines" style="display: block; padding: 0 10px; color: #888">@@ -1609,7 +1609,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> content.addClass( 'open' );
</span><span class="cx" style="display: block; padding: 0 10px"> overlay.addClass( 'section-open' );
</span><span class="cx" style="display: block; padding: 0 10px"> api.state( 'expandedSection' ).set( section );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- }, this );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ }.bind( this );
</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 ( ! args.allowMultiple ) {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -2696,12 +2696,12 @@
</span><span class="cx" style="display: block; padding: 0 10px"> if ( args.unchanged ) {
</span><span class="cx" style="display: block; padding: 0 10px"> expand = args.completeCallback;
</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">- expand = $.proxy( function() {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ expand = function() {
</ins><span class="cx" style="display: block; padding: 0 10px"> section._animateChangeExpanded( function() {
</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">@@ -2711,7 +2711,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"> content.addClass( 'open' );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- }, this );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ }.bind( this );
</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 ( section.panel() ) {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -2956,7 +2956,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> topPanel.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"> accordionSection.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">@@ -3874,9 +3874,9 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> control.container.toggleClass( 'has-notifications', 0 !== notifications.length );
</span><span class="cx" style="display: block; padding: 0 10px"> control.container.toggleClass( 'has-error', hasError );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- container.empty().append( $.trim(
- control.notificationsTemplate( { notifications: notifications, altNotice: Boolean( control.altNotice ) } )
- ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ container.empty().append(
+ control.notificationsTemplate( { notifications: notifications, altNotice: Boolean( control.altNotice ) } ).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"> /**
</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-03-18 17:51:52 UTC (rev 50546)
+++ trunk/src/js/_enqueues/wp/customize/nav-menus.js 2021-03-18 18:59:34 UTC (rev 50547)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -218,7 +218,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> // Clear the search results and trigger an `input` event to fire a new search.
</span><span class="cx" style="display: block; padding: 0 10px"> this.$clearResults.on( 'click', function() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- self.$search.val( '' ).focus().trigger( 'input' );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ self.$search.val( '' ).trigger( 'focus' ).trigger( 'input' );
</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.$el.on( 'input', '#custom-menu-item-name.invalid, #custom-menu-item-url.invalid', function() {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -446,7 +446,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> self.pages[ name ] = -1;
</span><span class="cx" style="display: block; padding: 0 10px"> return;
</span><span class="cx" style="display: block; padding: 0 10px"> } else if ( ( 'post_type:page' === name ) && ( ! availableMenuItemContainers[ name ].hasClass( 'open' ) ) ) {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- availableMenuItemContainers[ name ].find( '.accordion-section-title > button' ).click();
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ availableMenuItemContainers[ name ].find( '.accordion-section-title > button' ).trigger( 'click' );
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px"> typeItems = new api.Menus.AvailableItemCollection( typeItems ); // @todo Why is this collection created and then thrown away?
</span><span class="cx" style="display: block; padding: 0 10px"> self.collection.add( typeItems.models );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -644,7 +644,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> return;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- if ( '' === $.trim( itemName.val() ) ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ if ( '' === itemName.val().trim() ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> itemName.addClass( 'invalid' );
</span><span class="cx" style="display: block; padding: 0 10px"> itemName.focus();
</span><span class="cx" style="display: block; padding: 0 10px"> return;
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -716,7 +716,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> this.$el.find( '.selected' ).removeClass( 'selected' );
</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.$search.focus();
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ this.$search.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"> // Closes the panel.
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1879,7 +1879,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> // Ensure that whitespace is trimmed on blur so placeholder can be shown.
</span><span class="cx" style="display: block; padding: 0 10px"> control.container.find( '.edit-menu-item-title' ).on( 'blur', function() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $( this ).val( $.trim( $( this ).val() ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $( this ).val( $( this ).val().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"> titleEl = control.container.find( '.menu-item-title' );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1888,7 +1888,8 @@
</span><span class="cx" style="display: block; padding: 0 10px"> if ( ! item ) {
</span><span class="cx" style="display: block; padding: 0 10px"> return;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- trimmedTitle = $.trim( item.title );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ item.title = item.title || '';
+ trimmedTitle = item.title.trim();
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> titleText = trimmedTitle || item.original_title || api.Menus.data.l10n.untitled;
</span><span class="cx" style="display: block; padding: 0 10px">
</span></span></pre></div>
<a id="trunksrcjs_enqueueswpcustomizewidgetsjs"></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/widgets.js</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/js/_enqueues/wp/customize/widgets.js 2021-03-18 17:51:52 UTC (rev 50546)
+++ trunk/src/js/_enqueues/wp/customize/widgets.js 2021-03-18 18:59:34 UTC (rev 50547)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -195,7 +195,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> // Clear the search results and trigger an `input` event to fire a new search.
</span><span class="cx" style="display: block; padding: 0 10px"> this.$clearResults.on( 'click', function() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- self.$search.val( '' ).focus().trigger( 'input' );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ self.$search.val( '' ).trigger( 'focus' ).trigger( 'input' );
</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"> // Close the panel if the URL in the preview changes.
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -365,7 +365,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> this.collection.doSearch( '' );
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> if ( ! api.settings.browser.mobile ) {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- this.$search.focus();
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ this.$search.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">@@ -421,9 +421,9 @@
</span><span class="cx" style="display: block; padding: 0 10px"> this.select( selected );
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> if ( selected ) {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- selected.focus();
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ selected.trigger( 'focus' );
</ins><span class="cx" style="display: block; padding: 0 10px"> } else {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- this.$search.focus();
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ this.$search.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"> return;
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -818,7 +818,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> if ( event.type === 'keypress' && ( event.which !== 13 && event.which !== 32 ) ) {
</span><span class="cx" style="display: block; padding: 0 10px"> return;
</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">
</span><span class="cx" style="display: block; padding: 0 10px"> if ( $( this ).is( '.move-widget' ) ) {
</span><span class="cx" style="display: block; padding: 0 10px"> self.toggleWidgetMoveArea();
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -839,7 +839,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> wp.a11y.speak( l10n.widgetMovedDown );
</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">- $( this ).focus(); // Re-focus after the container was moved.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $( this ).trigger( 'focus' ); // Re-focus after the container was moved.
</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">@@ -1103,7 +1103,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> if ( input.is( ':radio, :checkbox' ) ) {
</span><span class="cx" style="display: block; padding: 0 10px"> input.prop( 'checked', state );
</span><span class="cx" style="display: block; padding: 0 10px"> } else if ( input.is( 'select[multiple]' ) ) {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- if ( ! $.isArray( state ) ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ if ( ! Array.isArray( state ) ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> state = [];
</span><span class="cx" style="display: block; padding: 0 10px"> } else {
</span><span class="cx" style="display: block; padding: 0 10px"> // Make sure all state items are strings since the DOM value is a string.
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -2089,7 +2089,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> widgetNumber = widget.get( 'multi_number' );
</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">- controlHtml = $.trim( $( '#widget-tpl-' + widget.get( 'id' ) ).html() );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ controlHtml = $( '#widget-tpl-' + widget.get( 'id' ) ).html().trim();
</ins><span class="cx" style="display: block; padding: 0 10px"> if ( widget.get( 'is_multi' ) ) {
</span><span class="cx" style="display: block; padding: 0 10px"> controlHtml = controlHtml.replace( /<[^<>]+>/g, function( m ) {
</span><span class="cx" style="display: block; padding: 0 10px"> return m.replace( /__i__|%i%/g, widgetNumber );
</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-03-18 17:51:52 UTC (rev 50546)
+++ trunk/src/js/_enqueues/wp/dashboard.js 2021-03-18 18:59:34 UTC (rev 50547)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -12,7 +12,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">-jQuery(document).ready( function($) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+jQuery( function($) {
</ins><span class="cx" style="display: block; padding: 0 10px"> var welcomePanel = $( '#welcome-panel' ),
</span><span class="cx" style="display: block; padding: 0 10px"> welcomePanelHide = $('#wp_welcome_panel-hide'),
</span><span class="cx" style="display: block; padding: 0 10px"> updateWelcomePanel;
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -328,7 +328,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @return {void}
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> $container.on( 'submit', '.community-events-form', function( event ) {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- var location = $.trim( $( '#community-events-location' ).val() );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ var location = $( '#community-events-location' ).val().trim();
</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></pre></div>
<a id="trunksrcjs_enqueueswpeditorbasejs"></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/editor/base.js</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/js/_enqueues/wp/editor/base.js 2021-03-18 17:51:52 UTC (rev 50546)
+++ trunk/src/js/_enqueues/wp/editor/base.js 2021-03-18 18:59:34 UTC (rev 50547)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1178,7 +1178,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 ( $ ) {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $( document ).ready( init );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $( init );
</ins><span class="cx" style="display: block; padding: 0 10px"> } else if ( document.addEventListener ) {
</span><span class="cx" style="display: block; padding: 0 10px"> document.addEventListener( 'DOMContentLoaded', init, false );
</span><span class="cx" style="display: block; padding: 0 10px"> window.addEventListener( 'load', init, false );
</span></span></pre></div>
<a id="trunksrcjs_enqueueswpheartbeatjs"></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/heartbeat.js</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/js/_enqueues/wp/heartbeat.js 2021-03-18 17:51:52 UTC (rev 50546)
+++ trunk/src/js/_enqueues/wp/heartbeat.js 2021-03-18 18:59:34 UTC (rev 50547)
</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"> window.setInterval( checkUserActivity, 30000 );
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> // Start one tick after DOM ready.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $document.ready( function() {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $( function() {
</ins><span class="cx" style="display: block; padding: 0 10px"> settings.lastTick = time();
</span><span class="cx" style="display: block; padding: 0 10px"> scheduleNextTick();
</span><span class="cx" style="display: block; padding: 0 10px"> });
</span></span></pre></div>
<a id="trunksrcjs_enqueueswpsvgpainterjs"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/js/_enqueues/wp/svg-painter.js</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/js/_enqueues/wp/svg-painter.js 2021-03-18 17:51:52 UTC (rev 50546)
+++ trunk/src/js/_enqueues/wp/svg-painter.js 2021-03-18 18:59:34 UTC (rev 50547)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -12,7 +12,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> colorscheme = {},
</span><span class="cx" style="display: block; padding: 0 10px"> elements = [];
</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).ready( function() {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $( function() {
</ins><span class="cx" style="display: block; padding: 0 10px"> // Detection for browser SVG capability.
</span><span class="cx" style="display: block; padding: 0 10px"> if ( document.implementation.hasFeature( 'http://www.w3.org/TR/SVG11/feature#Image', '1.1' ) ) {
</span><span class="cx" style="display: block; padding: 0 10px"> $( document.body ).removeClass( 'no-svg' ).addClass( 'svg' );
</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-03-18 17:51:52 UTC (rev 50546)
+++ trunk/src/js/_enqueues/wp/theme-plugin-editor.js 2021-03-18 18:59:34 UTC (rev 50547)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -328,7 +328,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @return {void}
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> codeEditorSettings.onTabPrevious = function() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $( '#templateside' ).find( ':tabbable' ).last().focus();
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $( '#templateside' ).find( ':tabbable' ).last().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">@@ -339,7 +339,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"> codeEditorSettings.onTabNext = function() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $( '#template' ).find( ':tabbable:not(.CodeMirror-code)' ).first().focus();
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $( '#template' ).find( ':tabbable:not(.CodeMirror-code)' ).first().trigger( 'focus' );
</ins><span class="cx" style="display: block; padding: 0 10px"> };
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</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-03-18 17:51:52 UTC (rev 50546)
+++ trunk/src/js/_enqueues/wp/theme.js 2021-03-18 18:59:34 UTC (rev 50547)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -2061,7 +2061,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"> // Ready...
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-$( document ).ready(function() {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+$( function() {
</ins><span class="cx" style="display: block; padding: 0 10px"> if ( themes.isInstall ) {
</span><span class="cx" style="display: block; padding: 0 10px"> themes.RunInstaller.init();
</span><span class="cx" style="display: block; padding: 0 10px"> } else {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -2089,7 +2089,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> })( jQuery );
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> // Align theme browser thickbox.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-jQuery(document).ready( function($) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+jQuery( function($) {
</ins><span class="cx" style="display: block; padding: 0 10px"> window.tb_position = function() {
</span><span class="cx" style="display: block; padding: 0 10px"> var tbWindow = $('#TB_window'),
</span><span class="cx" style="display: block; padding: 0 10px"> width = $(window).width(),
</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-03-18 17:51:52 UTC (rev 50546)
+++ trunk/src/js/_enqueues/wp/updates.js 2021-03-18 18:59:34 UTC (rev 50547)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1803,7 +1803,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"> if ( wp.updates.$elToReturnFocusToFromCredentialsModal ) {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- wp.updates.$elToReturnFocusToFromCredentialsModal.focus();
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ wp.updates.$elToReturnFocusToFromCredentialsModal.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_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-03-18 17:51:52 UTC (rev 50546)
+++ trunk/src/js/_enqueues/wp/widgets/media.js 2021-03-18 18:59:34 UTC (rev 50547)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -551,13 +551,13 @@
</span><span class="cx" style="display: block; padding: 0 10px"> // Update the title.
</span><span class="cx" style="display: block; padding: 0 10px"> control.$el.on( 'input change', '.title', function updateTitle() {
</span><span class="cx" style="display: block; padding: 0 10px"> control.model.set({
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- title: $.trim( $( this ).val() )
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ title: $( this ).val().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">
</span><span class="cx" style="display: block; padding: 0 10px"> // Update link_url attribute.
</span><span class="cx" style="display: block; padding: 0 10px"> control.$el.on( 'input change', '.link', function updateLinkUrl() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- var linkUrl = $.trim( $( this ).val() ), linkType = 'custom';
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ var linkUrl = $( this ).val().trim(), linkType = 'custom';
</ins><span class="cx" style="display: block; padding: 0 10px"> if ( control.selectedAttachment.get( 'linkUrl' ) === linkUrl || control.selectedAttachment.get( 'link' ) === linkUrl ) {
</span><span class="cx" style="display: block; padding: 0 10px"> linkType = 'post';
</span><span class="cx" style="display: block; padding: 0 10px"> } else if ( control.selectedAttachment.get( 'url' ) === linkUrl ) {
</span></span></pre></div>
<a id="trunksrcjsmediaviewsembedurljs"></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/embed/url.js</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/js/media/views/embed/url.js 2021-03-18 17:51:52 UTC (rev 50546)
+++ trunk/src/js/media/views/embed/url.js 2021-03-18 18:59:34 UTC (rev 50547)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -57,7 +57,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"> url: function( event ) {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- this.model.set( 'url', $.trim( event.target.value ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ var url = event.target.value || '';
+ this.model.set( 'url', url.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">
</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-03-18 17:51:52 UTC (rev 50546)
+++ trunk/src/js/media/views/modal.js 2021-03-18 18:59:34 UTC (rev 50547)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -133,7 +133,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"> // Pause current audio/video even after closing the modal.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $( '.mejs-pause button' ).click();
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $( '.mejs-pause button' ).trigger( 'click' );
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> // Enable page scrolling.
</span><span class="cx" style="display: block; padding: 0 10px"> $( 'body' ).removeClass( 'modal-open' );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -155,7 +155,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> // Fallback to the admin page main element.
</span><span class="cx" style="display: block; padding: 0 10px"> $( '#wpbody-content' )
</span><span class="cx" style="display: block; padding: 0 10px"> .attr( 'tabindex', '-1' )
</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"> this.propagate('close');
</span></span></pre></div>
<a id="trunksrcjsmediaviewsuploaderinlinejs"></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/uploader/inline.js</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/js/media/views/uploader/inline.js 2021-03-18 17:51:52 UTC (rev 50546)
+++ trunk/src/js/media/views/uploader/inline.js 2021-03-18 18:59:34 UTC (rev 50547)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -134,7 +134,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> this.controller.$uploaderToggler
</span><span class="cx" style="display: block; padding: 0 10px"> .attr( 'aria-expanded', 'false' )
</span><span class="cx" style="display: block; padding: 0 10px"> // Move focus back to the toggle button when closing the uploader.
</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>
</div>
</body>
</html>