<!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>[48168] trunk/src: Docs: Replace "AJAX" with "Ajax" in DocBlocks and comments, per the spelling glossary.</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/48168">48168</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/48168","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>2020-06-25 12:41:36 +0000 (Thu, 25 Jun 2020)</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'>Docs: Replace "AJAX" with "Ajax" in DocBlocks and comments, per the spelling glossary.
Props mukesh27, sabernhardt, SergeyBiryukov.
Fixes <a href="https://core.trac.wordpress.org/ticket/50064">#50064</a>.</pre>
<h3>Modified Paths</h3>
<ul>
<li><a href="#trunksrcjs_enqueuesadmincustombackgroundjs">trunk/src/js/_enqueues/admin/custom-background.js</a></li>
<li><a href="#trunksrcjs_enqueuesadmininlineeditpostjs">trunk/src/js/_enqueues/admin/inline-edit-post.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_enqueuesadmintagsboxjs">trunk/src/js/_enqueues/admin/tags-box.js</a></li>
<li><a href="#trunksrcjs_enqueuesdeprecatedmediagalleryjs">trunk/src/js/_enqueues/deprecated/media-gallery.js</a></li>
<li><a href="#trunksrcjs_enqueuesliblistsjs">trunk/src/js/_enqueues/lib/lists.js</a></li>
<li><a href="#trunksrcjs_enqueueslibnavmenujs">trunk/src/js/_enqueues/lib/nav-menu.js</a></li>
<li><a href="#trunksrcjs_enqueuesvendorpluploadhandlersjs">trunk/src/js/_enqueues/vendor/plupload/handlers.js</a></li>
<li><a href="#trunksrcjs_enqueueswpcustomizecontrolsjs">trunk/src/js/_enqueues/wp/customize/controls.js</a></li>
<li><a href="#trunksrcjs_enqueueswpcustomizemodelsjs">trunk/src/js/_enqueues/wp/customize/models.js</a></li>
<li><a href="#trunksrcjs_enqueueswpdashboardjs">trunk/src/js/_enqueues/wp/dashboard.js</a></li>
<li><a href="#trunksrcjs_enqueueswpheartbeatjs">trunk/src/js/_enqueues/wp/heartbeat.js</a></li>
<li><a href="#trunksrcjs_enqueueswpupdatesjs">trunk/src/js/_enqueues/wp/updates.js</a></li>
<li><a href="#trunksrcjsmediamodelsattachmentsjs">trunk/src/js/media/models/attachments.js</a></li>
<li><a href="#trunksrcwpadminincludesajaxactionsphp">trunk/src/wp-admin/includes/ajax-actions.php</a></li>
<li><a href="#trunksrcwpadminincludesclasswpsitehealthphp">trunk/src/wp-admin/includes/class-wp-site-health.php</a></li>
<li><a href="#trunksrcwpadminincludestemplatephp">trunk/src/wp-admin/includes/template.php</a></li>
<li><a href="#trunksrcwpincludesfunctionsphp">trunk/src/wp-includes/functions.php</a></li>
<li><a href="#trunksrcwpincludesloadphp">trunk/src/wp-includes/load.php</a></li>
</ul>
</div>
<div id="patch">
<h3>Diff</h3>
<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 2020-06-25 12:04:05 UTC (rev 48167)
+++ trunk/src/js/_enqueues/admin/custom-background.js 2020-06-25 12:41:36 UTC (rev 48168)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -127,7 +127,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> // Grab the selected attachment.
</span><span class="cx" style="display: block; padding: 0 10px"> var attachment = frame.state().get('selection').first();
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- // Run an AJAX request to set the background image.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ // Run an Ajax request to set the background image.
</ins><span class="cx" style="display: block; padding: 0 10px"> $.post( ajaxurl, {
</span><span class="cx" style="display: block; padding: 0 10px"> action: 'set-background-image',
</span><span class="cx" style="display: block; padding: 0 10px"> attachment_id: attachment.id,
</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 2020-06-25 12:04:05 UTC (rev 48167)
+++ trunk/src/js/_enqueues/admin/inline-edit-post.js 2020-06-25 12:41:36 UTC (rev 48168)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -385,7 +385,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><span class="cx" style="display: block; padding: 0 10px"> * Saves the changes made in the quick edit window to the post.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * AJAX saving is only for Quick Edit and not for bulk edit.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * Ajax saving is only for Quick Edit and not for bulk edit.
</ins><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></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 2020-06-25 12:04:05 UTC (rev 48167)
+++ trunk/src/js/_enqueues/admin/plugin-install.js 2020-06-25 12:41:36 UTC (rev 48168)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -150,7 +150,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"> * Open the Plugin details modal. The event is delegated to get also the links
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * in the plugins search tab, after the AJAX search rebuilds the HTML. It's
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * in the plugins search tab, after the Ajax search rebuilds the HTML. It's
</ins><span class="cx" style="display: block; padding: 0 10px"> * delegated on the closest ancestor and not on the body to avoid conflicts
</span><span class="cx" style="display: block; padding: 0 10px"> * with other handlers, see Trac ticket #43082.
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span></span></pre></div>
<a id="trunksrcjs_enqueuesadminpostjs"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/js/_enqueues/admin/post.js</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/js/_enqueues/admin/post.js 2020-06-25 12:04:05 UTC (rev 48167)
+++ trunk/src/js/_enqueues/admin/post.js 2020-06-25 12:41:36 UTC (rev 48168)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -29,7 +29,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> st : 0,
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * Fetch comments using AJAX and display them in the box.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * Fetch comments using Ajax and display them in the box.
</ins><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @memberof commentsBox
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -938,7 +938,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><span class="cx" style="display: block; padding: 0 10px"> * Handle the editing of the post_name. Create the required HTML elements and
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * update the changes via AJAX.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * update the changes via Ajax.
</ins><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @global
</span><span class="cx" style="display: block; padding: 0 10px"> *
</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 2020-06-25 12:04:05 UTC (rev 48167)
+++ trunk/src/js/_enqueues/admin/tags-box.js 2020-06-25 12:41:36 UTC (rev 48168)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -284,8 +284,8 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 2.9.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">- * @param {number|string} r The response message from the AJAX call.
- * @param {string} stat The status of the AJAX request.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param {number|string} r The response message from the Ajax call.
+ * @param {string} stat The status of the Ajax request.
</ins><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></span></pre></div>
<a id="trunksrcjs_enqueuesdeprecatedmediagalleryjs"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/js/_enqueues/deprecated/media-gallery.js</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/js/_enqueues/deprecated/media-gallery.js 2020-06-25 12:04:05 UTC (rev 48167)
+++ trunk/src/js/_enqueues/deprecated/media-gallery.js 2020-06-25 12:41:36 UTC (rev 48168)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -23,7 +23,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> img_size = $( 'input[name="attachments[' + id + '][image-size]"]:checked').val();
</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 AJAX action has been deprecated since 3.5.0, see custom-background.php
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * This Ajax action has been deprecated since 3.5.0, see custom-background.php
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> jQuery.post(ajaxurl, {
</span><span class="cx" style="display: block; padding: 0 10px"> action: 'set-background-image',
</span></span></pre></div>
<a id="trunksrcjs_enqueuesliblistsjs"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/js/_enqueues/lib/lists.js</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/js/_enqueues/lib/lists.js 2020-06-25 12:04:05 UTC (rev 48167)
+++ trunk/src/js/_enqueues/lib/lists.js 2020-06-25 12:41:36 UTC (rev 48168)
</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">
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * Adds an item to the list via AJAX.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * Adds an item to the list via Ajax.
</ins><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @param {HTMLElement} element The DOM element.
</span><span class="cx" style="display: block; padding: 0 10px"> * @param {object} settings Settings for this list.
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -396,7 +396,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">- * Delete an item in the list via AJAX.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * Delete an item in the list via Ajax.
</ins><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @param {HTMLElement} element A DOM element containing item data.
</span><span class="cx" style="display: block; padding: 0 10px"> * @param {object} settings Settings for this list.
</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">- * Dim an item in the list via AJAX.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * Dim an item in the list via Ajax.
</ins><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @param {HTMLElement} element A DOM element containing item data.
</span><span class="cx" style="display: block; padding: 0 10px"> * @param {object} settings Settings for this list.
</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 2020-06-25 12:04:05 UTC (rev 48167)
+++ trunk/src/js/_enqueues/lib/nav-menu.js 2020-06-25 12:41:36 UTC (rev 48168)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -920,7 +920,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> q = input.val();
</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">- * Minimum characters for a search. Also avoid a new AJAX search when
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * Minimum characters for a search. Also avoid a new Ajax search when
</ins><span class="cx" style="display: block; padding: 0 10px"> * the pressed key (e.g. arrows) doesn't change the searched term.
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> if ( q.length < minSearchLength || api.lastSearch == q ) {
</span></span></pre></div>
<a id="trunksrcjs_enqueuesvendorpluploadhandlersjs"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/js/_enqueues/vendor/plupload/handlers.js</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/js/_enqueues/vendor/plupload/handlers.js 2020-06-25 12:04:05 UTC (rev 48167)
+++ trunk/src/js/_enqueues/vendor/plupload/handlers.js 2020-06-25 12:41:36 UTC (rev 48168)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -148,7 +148,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> // Replace the original filename with the new (unique) one assigned during upload.
</span><span class="cx" style="display: block; padding: 0 10px"> jQuery( '.filename.original', item ).replaceWith( jQuery( '.filename.new', item ) );
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- // Bind AJAX to the new Delete button.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ // Bind Ajax to the new Delete button.
</ins><span class="cx" style="display: block; padding: 0 10px"> jQuery( 'a.delete', item ).click( function(){
</span><span class="cx" style="display: block; padding: 0 10px"> // Tell the server to delete it. TODO: Handle exceptions.
</span><span class="cx" style="display: block; padding: 0 10px"> jQuery.ajax({
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -166,7 +166,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> return false;
</span><span class="cx" style="display: block; padding: 0 10px"> });
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- // Bind AJAX to the new Undo button.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ // Bind Ajax to the new Undo button.
</ins><span class="cx" style="display: block; padding: 0 10px"> jQuery( 'a.undo', item ).click( function(){
</span><span class="cx" style="display: block; padding: 0 10px"> // Tell the server to untrash it. TODO: Handle exceptions.
</span><span class="cx" style="display: block; padding: 0 10px"> jQuery.ajax({
</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 2020-06-25 12:04:05 UTC (rev 48167)
+++ trunk/src/js/_enqueues/wp/customize/controls.js 2020-06-25 12:41:36 UTC (rev 48168)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -4440,7 +4440,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"> * Callback handler for when an attachment is selected in the media modal.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * Does an additional AJAX request for setting the background context.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * Does an additional Ajax request for setting the background context.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> select: function() {
</span><span class="cx" style="display: block; padding: 0 10px"> api.UploadControl.prototype.select.apply( this, arguments );
</span></span></pre></div>
<a id="trunksrcjs_enqueueswpcustomizemodelsjs"></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/models.js</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/js/_enqueues/wp/customize/models.js 2020-06-25 12:04:05 UTC (rev 48167)
+++ trunk/src/js/_enqueues/wp/customize/models.js 2020-06-25 12:41:36 UTC (rev 48168)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -13,7 +13,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * wp.customize.HeaderTool.ImageModel
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * A header image. This is where saves via the Customizer API are
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * abstracted away, plus our own AJAX calls to add images to and remove
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * abstracted away, plus our own Ajax calls to add images to and remove
</ins><span class="cx" style="display: block; padding: 0 10px"> * images from the user's recently uploaded images setting on the server.
</span><span class="cx" style="display: block; padding: 0 10px"> * These calls are made regardless of whether the user actually saves new
</span><span class="cx" style="display: block; padding: 0 10px"> * Customizer settings.
</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 2020-06-25 12:04:05 UTC (rev 48167)
+++ trunk/src/js/_enqueues/wp/dashboard.js 2020-06-25 12:41:36 UTC (rev 48168)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -64,7 +64,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> window.ajaxWidgets = ['dashboard_primary'];
</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">- * Triggers widget updates via AJAX.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * Triggers widget updates via Ajax.
</ins><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><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -103,7 +103,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> // If we have received a specific element to fetch, check if it is valid.
</span><span class="cx" style="display: block; padding: 0 10px"> if ( el ) {
</span><span class="cx" style="display: block; padding: 0 10px"> el = el.toString();
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- // If the element is available as AJAX widget, show it.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ // If the element is available as Ajax widget, show it.
</ins><span class="cx" style="display: block; padding: 0 10px"> if ( $.inArray(el, ajaxWidgets) !== -1 ) {
</span><span class="cx" style="display: block; padding: 0 10px"> // Show element without any delay.
</span><span class="cx" style="display: block; padding: 0 10px"> show(0, el);
</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 2020-06-25 12:04:05 UTC (rev 48167)
+++ trunk/src/js/_enqueues/wp/heartbeat.js 2020-06-25 12:41:36 UTC (rev 48168)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -68,7 +68,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> // Used when the interval is reset.
</span><span class="cx" style="display: block; padding: 0 10px"> originalInterval: 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">- // Used to limit the number of AJAX requests.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ // Used to limit the number of Ajax requests.
</ins><span class="cx" style="display: block; padding: 0 10px"> minimalInterval: 0,
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> // Used together with tempInterval.
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -146,7 +146,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">- * Used to limit the number of AJAX requests. Overrides all other intervals
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * Used to limit the number of Ajax requests. Overrides all other intervals
</ins><span class="cx" style="display: block; padding: 0 10px"> * if they are shorter. Needed for some hosts that cannot handle frequent requests
</span><span class="cx" style="display: block; padding: 0 10px"> * and the user may exceed the allocated server CPU time, etc. The minimal interval
</span><span class="cx" style="display: block; padding: 0 10px"> * can be up to 600 seconds, however setting it to longer than 120 seconds
</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 2020-06-25 12:04:05 UTC (rev 48167)
+++ trunk/src/js/_enqueues/wp/updates.js 2020-06-25 12:41:36 UTC (rev 48168)
</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"> * @param {jQuery} $ jQuery object.
</span><span class="cx" style="display: block; padding: 0 10px"> * @param {object} wp WP object.
</span><span class="cx" style="display: block; padding: 0 10px"> * @param {object} settings WP Updates settings.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @param {string} settings.ajax_nonce AJAX nonce.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param {string} settings.ajax_nonce Ajax nonce.
</ins><span class="cx" style="display: block; padding: 0 10px"> * @param {object=} settings.plugins Base names of plugins in their different states.
</span><span class="cx" style="display: block; padding: 0 10px"> * @param {Array} settings.plugins.all Base names of all plugins.
</span><span class="cx" style="display: block; padding: 0 10px"> * @param {Array} settings.plugins.active Base names of active plugins.
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1531,9 +1531,9 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 4.6.0
</span><span class="cx" style="display: block; padding: 0 10px"> * @private
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @param {object} data AJAX payload.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param {object} data Ajax payload.
</ins><span class="cx" style="display: block; padding: 0 10px"> * @param {string} action The type of request to perform.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @return {object} The AJAX payload with the appropriate callbacks.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @return {object} The Ajax payload with the appropriate callbacks.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> wp.updates._addCallbacks = function( data, action ) {
</span><span class="cx" style="display: block; padding: 0 10px"> if ( 'import' === pagenow && 'install-plugin' === action ) {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1769,7 +1769,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">- * Validates an AJAX response to ensure it's a proper object.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * Validates an Ajax response to ensure it's a proper object.
</ins><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * If the response deems to be invalid, an admin notice is being displayed.
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span></span></pre></div>
<a id="trunksrcjsmediamodelsattachmentsjs"></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/models/attachments.js</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/js/media/models/attachments.js 2020-06-25 12:04:05 UTC (rev 48167)
+++ trunk/src/js/media/models/attachments.js 2020-06-25 12:41:36 UTC (rev 48168)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -356,7 +356,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> return this.mirroring ? this.mirroring.hasMore() : false;
</span><span class="cx" style="display: block; padding: 0 10px"> },
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * A custom AJAX-response parser.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * A custom Ajax-response parser.
</ins><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * See trac ticket #24753
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span></span></pre></div>
<a id="trunksrcwpadminincludesajaxactionsphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/wp-admin/includes/ajax-actions.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-admin/includes/ajax-actions.php 2020-06-25 12:04:05 UTC (rev 48167)
+++ trunk/src/wp-admin/includes/ajax-actions.php 2020-06-25 12:41:36 UTC (rev 48168)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -331,7 +331,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">- * Handles AJAX requests for community events
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * Handles Ajax requests for community events
</ins><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 4.8.0
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span></span></pre></div>
<a id="trunksrcwpadminincludesclasswpsitehealthphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/wp-admin/includes/class-wp-site-health.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-admin/includes/class-wp-site-health.php 2020-06-25 12:04:05 UTC (rev 48167)
+++ trunk/src/wp-admin/includes/class-wp-site-health.php 2020-06-25 12:41:36 UTC (rev 48168)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -178,8 +178,8 @@
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><span class="cx" style="display: block; padding: 0 10px"> * Run the SQL version checks.
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * These values are used in later tests, but the part of preparing them is more easily managed early
- * in the class for ease of access and discovery.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * These values are used in later tests, but the part of preparing them is more easily managed
+ * early in the class for ease of access and discovery.
</ins><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 5.2.0
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -212,11 +212,11 @@
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><span class="cx" style="display: block; padding: 0 10px"> * Test if `wp_version_check` is blocked.
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * It's possible to block updates with the `wp_version_check` filter, but this can't be checked during an
- * AJAX call, as the filter is never introduced then.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * It's possible to block updates with the `wp_version_check` filter, but this can't be checked
+ * during an Ajax call, as the filter is never introduced then.
</ins><span class="cx" style="display: block; padding: 0 10px"> *
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * This filter overrides a normal page request if it's made by an admin through the AJAX call with the
- * right query argument to check for this.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * This filter overrides a normal page request if it's made by an admin through the Ajax call
+ * with the right query argument to check for this.
</ins><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 5.2.0
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -233,8 +233,8 @@
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><span class="cx" style="display: block; padding: 0 10px"> * Tests for WordPress version and outputs it.
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * Gives various results depending on what kind of updates are available, if any, to encourage the
- * user to install security updates as a priority.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * Gives various results depending on what kind of updates are available, if any, to encourage
+ * the user to install security updates as a priority.
</ins><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 5.2.0
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -334,7 +334,8 @@
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><span class="cx" style="display: block; padding: 0 10px"> * Test if plugins are outdated, or unnecessary.
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * The tests checks if your plugins are up to date, and encourages you to remove any that are not in use.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * The tests checks if your plugins are up to date, and encourages you to remove any
+ * that are not in use.
</ins><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 5.2.0
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -465,8 +466,9 @@
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><span class="cx" style="display: block; padding: 0 10px"> * Test if themes are outdated, or unnecessary.
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * The tests checks if your site has a default theme (to fall back on if there is a need), if your themes
- * are up to date and, finally, encourages you to remove any themes that are not needed.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * Сhecks if your site has a default theme (to fall back on if there is a need),
+ * if your themes are up to date and, finally, encourages you to remove any themes
+ * that are not needed.
</ins><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 5.2.0
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1408,11 +1410,11 @@
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><span class="cx" style="display: block; padding: 0 10px"> * Test if debug information is enabled.
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * When WP_DEBUG is enabled, errors and information may be disclosed to site visitors, or it may be
- * logged to a publicly accessible file.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * When WP_DEBUG is enabled, errors and information may be disclosed to site visitors,
+ * or logged to a publicly accessible file.
</ins><span class="cx" style="display: block; padding: 0 10px"> *
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * Debugging is also frequently left enabled after looking for errors on a site, as site owners do
- * not understand the implications of this.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * Debugging is also frequently left enabled after looking for errors on a site,
+ * as site owners do not understand the implications of this.
</ins><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 5.2.0
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1589,8 +1591,8 @@
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><span class="cx" style="display: block; padding: 0 10px"> * Test if scheduled events run as intended.
</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 scheduled events are not running, this may indicate something with WP_Cron is not working as intended,
- * or that there are orphaned events hanging around from older code.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * If scheduled events are not running, this may indicate something with WP_Cron is not working
+ * as intended, or that there are orphaned events hanging around from older code.
</ins><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 5.2.0
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1661,8 +1663,9 @@
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><span class="cx" style="display: block; padding: 0 10px"> * Test if WordPress can run automated background updates.
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * Background updates in WordPress are primarily used for minor releases and security updates. It's important
- * to either have these working, or be aware that they are intentionally disabled for whatever reason.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * Background updates in WordPress are primarily used for minor releases and security updates.
+ * It's important to either have these working, or be aware that they are intentionally disabled
+ * for whatever reason.
</ins><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 5.2.0
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1734,8 +1737,9 @@
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><span class="cx" style="display: block; padding: 0 10px"> * Test if loopbacks work as expected.
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * A loopback is when WordPress queries itself, for example to start a new WP_Cron instance, or when editing a
- * plugin or theme. This has shown itself to be a recurring issue as code can very easily break this interaction.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * A loopback is when WordPress queries itself, for example to start a new WP_Cron instance,
+ * or when editing a plugin or theme. This has shown itself to be a recurring issue,
+ * as code can very easily break this interaction.
</ins><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 5.2.0
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -2063,7 +2067,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @param array $test_type {
</span><span class="cx" style="display: block; padding: 0 10px"> * An associative array, where the `$test_type` is either `direct` or
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * `async`, to declare if the test should run via AJAX calls after page load.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * `async`, to declare if the test should run via Ajax calls after page load.
</ins><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @type array $identifier {
</span><span class="cx" style="display: block; padding: 0 10px"> * `$identifier` should be a unique identifier for the test that should run.
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -2071,7 +2075,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * to avoid any collisions between tests.
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @type string $label A friendly label for your test to identify it by.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @type mixed $test A callable to perform a direct test, or a string AJAX action to be called
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @type mixed $test A callable to perform a direct test, or a string Ajax action to be called
</ins><span class="cx" style="display: block; padding: 0 10px"> * to perform an async test.
</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">@@ -2148,9 +2152,10 @@
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><span class="cx" style="display: block; padding: 0 10px"> * Check if any scheduled tasks have been missed.
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * Returns a boolean value of `true` if a scheduled task has been missed and ends processing. If the list of
- * crons is an instance of WP_Error, return the instance instead of a boolean value.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * Returns a boolean value of `true` if a scheduled task has been missed and ends processing.
</ins><span class="cx" style="display: block; padding: 0 10px"> *
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * If the list of crons is an instance of WP_Error, return the instance instead of a boolean value.
+ *
</ins><span class="cx" style="display: block; padding: 0 10px"> * @since 5.2.0
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @return bool|WP_Error True if a cron was missed, false if not. WP_Error if the cron is set to that.
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -2173,9 +2178,10 @@
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><span class="cx" style="display: block; padding: 0 10px"> * Check if any scheduled tasks are late.
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * Returns a boolean value of `true` if a scheduled task is late and ends processing. If the list of
- * crons is an instance of WP_Error, return the instance instead of a boolean value.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * Returns a boolean value of `true` if a scheduled task is late and ends processing.
</ins><span class="cx" style="display: block; padding: 0 10px"> *
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * If the list of crons is an instance of WP_Error, return the instance instead of a boolean value.
+ *
</ins><span class="cx" style="display: block; padding: 0 10px"> * @since 5.3.0
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @return bool|WP_Error True if a cron is late, false if not. WP_Error if the cron is set to that.
</span></span></pre></div>
<a id="trunksrcwpadminincludestemplatephp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/wp-admin/includes/template.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-admin/includes/template.php 2020-06-25 12:04:05 UTC (rev 48167)
+++ trunk/src/wp-admin/includes/template.php 2020-06-25 12:41:36 UTC (rev 48168)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -536,7 +536,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> <div class="hidden" id="trash-undo-holder">
</span><span class="cx" style="display: block; padding: 0 10px"> <div class="trash-undo-inside">
</span><span class="cx" style="display: block; padding: 0 10px"> <?php
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- /* translators: %s: Comment author, filled by AJAX. */
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ /* translators: %s: Comment author, filled by Ajax. */
</ins><span class="cx" style="display: block; padding: 0 10px"> printf( __( 'Comment by %s moved to the Trash.' ), '<strong></strong>' );
</span><span class="cx" style="display: block; padding: 0 10px"> ?>
</span><span class="cx" style="display: block; padding: 0 10px"> <span class="undo untrash"><a href="#"><?php _e( 'Undo' ); ?></a></span>
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -545,7 +545,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> <div class="hidden" id="spam-undo-holder">
</span><span class="cx" style="display: block; padding: 0 10px"> <div class="spam-undo-inside">
</span><span class="cx" style="display: block; padding: 0 10px"> <?php
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- /* translators: %s: Comment author, filled by AJAX. */
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ /* translators: %s: Comment author, filled by Ajax. */
</ins><span class="cx" style="display: block; padding: 0 10px"> printf( __( 'Comment by %s marked as spam.' ), '<strong></strong>' );
</span><span class="cx" style="display: block; padding: 0 10px"> ?>
</span><span class="cx" style="display: block; padding: 0 10px"> <span class="undo unspam"><a href="#"><?php _e( 'Undo' ); ?></a></span>
</span></span></pre></div>
<a id="trunksrcwpincludesfunctionsphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/wp-includes/functions.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/functions.php 2020-06-25 12:04:05 UTC (rev 48167)
+++ trunk/src/wp-includes/functions.php 2020-06-25 12:41:36 UTC (rev 48168)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -3575,7 +3575,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @param string|array $args Optional. Arguments to control behavior. Default empty array.
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function _ajax_wp_die_handler( $message, $title = '', $args = array() ) {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- // Set default 'response' to 200 for AJAX requests.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ // Set default 'response' to 200 for Ajax requests.
</ins><span class="cx" style="display: block; padding: 0 10px"> $args = wp_parse_args(
</span><span class="cx" style="display: block; padding: 0 10px"> $args,
</span><span class="cx" style="display: block; padding: 0 10px"> array( 'response' => 200 )
</span></span></pre></div>
<a id="trunksrcwpincludesloadphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/wp-includes/load.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/load.php 2020-06-25 12:04:05 UTC (rev 48167)
+++ trunk/src/wp-includes/load.php 2020-06-25 12:41:36 UTC (rev 48168)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -891,7 +891,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> return true;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- // Protect AJAX actions that could help resolve a fatal error should be available.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ // Protect Ajax actions that could help resolve a fatal error should be available.
</ins><span class="cx" style="display: block; padding: 0 10px"> if ( is_protected_ajax_action() ) {
</span><span class="cx" style="display: block; padding: 0 10px"> return true;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -901,21 +901,22 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * This filter is only fired when an endpoint is requested which is not already protected by
</span><span class="cx" style="display: block; padding: 0 10px"> * WordPress core. As such, it exclusively allows providing further protected endpoints in
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * addition to the admin backend, login pages and protected AJAX actions.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * addition to the admin backend, login pages and protected Ajax actions.
</ins><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 5.2.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">- * @param bool $is_protected_endpoint Whether the currently requested endpoint is protected. Default false.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param bool $is_protected_endpoint Whether the currently requested endpoint is protected.
+ * Default false.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> return (bool) apply_filters( 'is_protected_endpoint', false );
</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">- * Determines whether we are currently handling an AJAX action that should be protected against WSODs.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * Determines whether we are currently handling an Ajax action that should be protected against WSODs.
</ins><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 5.2.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">- * @return bool True if the current AJAX action should be protected.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @return bool True if the current Ajax action should be protected.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function is_protected_ajax_action() {
</span><span class="cx" style="display: block; padding: 0 10px"> if ( ! wp_doing_ajax() ) {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -938,13 +939,13 @@
</span><span class="cx" style="display: block; padding: 0 10px"> );
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * Filters the array of protected AJAX actions.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * Filters the array of protected Ajax actions.
</ins><span class="cx" style="display: block; padding: 0 10px"> *
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * This filter is only fired when doing AJAX and the AJAX request has an 'action' property.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * This filter is only fired when doing Ajax and the Ajax request has an 'action' property.
</ins><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 5.2.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">- * @param string[] $actions_to_protect Array of strings with AJAX actions to protect.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param string[] $actions_to_protect Array of strings with Ajax actions to protect.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> $actions_to_protect = (array) apply_filters( 'wp_protected_ajax_actions', $actions_to_protect );
</span><span class="cx" style="display: block; padding: 0 10px">
</span></span></pre>
</div>
</div>
</body>
</html>