<!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>[45232] trunk/src: Docs: Correct spelling in various comments and DocBlocks, per the conventions in Core Contributor Handbook.</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/45232">45232</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/45232","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>2019-04-17 13:26:00 +0000 (Wed, 17 Apr 2019)</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: Correct spelling in various comments and DocBlocks, per the conventions in Core Contributor Handbook.

Props man4toman, samanehmirrajabi.
Fixes <a href="https://core.trac.wordpress.org/ticket/45857">#45857</a>.</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunksrcwpadminincludesfilephp">trunk/src/wp-admin/includes/file.php</a></li>
<li><a href="#trunksrcwpincludesclassjsonphp">trunk/src/wp-includes/class-json.php</a></li>
<li><a href="#trunksrcwpincludesclasswpcustomizemanagerphp">trunk/src/wp-includes/class-wp-customize-manager.php</a></li>
<li><a href="#trunksrcwpincludesclasswpcustomizesettingphp">trunk/src/wp-includes/class-wp-customize-setting.php</a></li>
<li><a href="#trunksrcwpincludesclasswpsitephp">trunk/src/wp-includes/class-wp-site.php</a></li>
<li><a href="#trunksrcwpincludesmediaphp">trunk/src/wp-includes/media.php</a></li>
<li><a href="#trunksrcwpincludesscriptloaderphp">trunk/src/wp-includes/script-loader.php</a></li>
<li><a href="#trunksrcwpincludesthemephp">trunk/src/wp-includes/theme.php</a></li>
<li><a href="#trunksrcwpincludeswpdbphp">trunk/src/wp-includes/wp-db.php</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunksrcwpadminincludesfilephp"></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/file.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-admin/includes/file.php      2019-04-17 12:57:01 UTC (rev 45231)
+++ trunk/src/wp-admin/includes/file.php        2019-04-17 13:26:00 UTC (rev 45232)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -2218,7 +2218,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">        $title = sprintf(
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                /* translators: %s: user's e-mail address */
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         /* translators: %s: user's email address */
</ins><span class="cx" style="display: block; padding: 0 10px">                 __( 'Personal Data Export for %s' ),
</span><span class="cx" style="display: block; padding: 0 10px">                $email_address
</span><span class="cx" style="display: block; padding: 0 10px">        );
</span></span></pre></div>
<a id="trunksrcwpincludesclassjsonphp"></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/class-json.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/class-json.php      2019-04-17 12:57:01 UTC (rev 45231)
+++ trunk/src/wp-includes/class-json.php        2019-04-17 13:26:00 UTC (rev 45232)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -15,11 +15,11 @@
</span><span class="cx" style="display: block; padding: 0 10px">  * ideal data-interchange language.
</span><span class="cx" style="display: block; padding: 0 10px">  *
</span><span class="cx" style="display: block; padding: 0 10px">  * This package provides a simple encoder and decoder for JSON notation. It
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * is intended for use with client-side Javascript applications that make
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * is intended for use with client-side JavaScript applications that make
</ins><span class="cx" style="display: block; padding: 0 10px">  * use of HTTPRequest to perform server communication functions - data can
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * be encoded into JSON notation for use in a client-side javascript, or
- * decoded from incoming Javascript requests. JSON format is native to
- * Javascript, and can be directly eval()'ed with no further parsing
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * be encoded into JSON notation for use in a client-side javaScript, or
+ * decoded from incoming JavaScript requests. JSON format is native to
+ * JavaScript, and can be directly eval()'ed with no further parsing
</ins><span class="cx" style="display: block; padding: 0 10px">  * overhead
</span><span class="cx" style="display: block; padding: 0 10px">  *
</span><span class="cx" style="display: block; padding: 0 10px">  * All strings should be in ASCII or UTF-8 format!
</span></span></pre></div>
<a id="trunksrcwpincludesclasswpcustomizemanagerphp"></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/class-wp-customize-manager.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/class-wp-customize-manager.php      2019-04-17 12:57:01 UTC (rev 45231)
+++ trunk/src/wp-includes/class-wp-customize-manager.php        2019-04-17 13:26:00 UTC (rev 45232)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -3647,7 +3647,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">         *  @type string       $capability            Capability required for the setting. Default 'edit_theme_options'
</span><span class="cx" style="display: block; padding: 0 10px">         *  @type string|array $theme_supports        Theme features required to support the panel. Default is none.
</span><span class="cx" style="display: block; padding: 0 10px">         *  @type string       $default               Default value for the setting. Default is empty string.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-         *  @type string       $transport             Options for rendering the live preview of changes in Theme Customizer.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+  *  @type string       $transport             Options for rendering the live preview of changes in Customizer.
</ins><span class="cx" style="display: block; padding: 0 10px">          *                                            Using 'refresh' makes the change visible by reloading the whole preview.
</span><span class="cx" style="display: block; padding: 0 10px">         *                                            Using 'postMessage' allows a custom JavaScript to handle live changes.
</span><span class="cx" style="display: block; padding: 0 10px">         * @link https://developer.wordpress.org/themes/customize-api
</span></span></pre></div>
<a id="trunksrcwpincludesclasswpcustomizesettingphp"></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/class-wp-customize-setting.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/class-wp-customize-setting.php      2019-04-17 12:57:01 UTC (rev 45231)
+++ trunk/src/wp-includes/class-wp-customize-setting.php        2019-04-17 13:26:00 UTC (rev 45232)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -66,9 +66,9 @@
</span><span class="cx" style="display: block; padding: 0 10px">        public $default = '';
</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">-         * Options for rendering the live preview of changes in Theme Customizer.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+  * Options for rendering the live preview of changes in Customizer.
</ins><span class="cx" style="display: block; padding: 0 10px">          *
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-         * Set this value to 'postMessage' to enable a custom Javascript handler to render changes to this setting
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+  * Set this value to 'postMessage' to enable a custom JavaScript handler to render changes to this setting
</ins><span class="cx" style="display: block; padding: 0 10px">          * as opposed to reloading the whole page.
</span><span class="cx" style="display: block; padding: 0 10px">         *
</span><span class="cx" style="display: block; padding: 0 10px">         * @link https://developer.wordpress.org/themes/customize-api
</span></span></pre></div>
<a id="trunksrcwpincludesclasswpsitephp"></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/class-wp-site.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/class-wp-site.php   2019-04-17 12:57:01 UTC (rev 45231)
+++ trunk/src/wp-includes/class-wp-site.php     2019-04-17 13:26:00 UTC (rev 45232)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -315,7 +315,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                if ( false === $details ) {
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                        switch_to_blog( $this->blog_id );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                        // Create a raw copy of the object for backwards compatibility with the filter below.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                 // Create a raw copy of the object for backward compatibility with the filter below.
</ins><span class="cx" style="display: block; padding: 0 10px">                         $details = new stdClass();
</span><span class="cx" style="display: block; padding: 0 10px">                        foreach ( get_object_vars( $this ) as $key => $value ) {
</span><span class="cx" style="display: block; padding: 0 10px">                                $details->$key = $value;
</span></span></pre></div>
<a id="trunksrcwpincludesmediaphp"></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/media.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/media.php   2019-04-17 12:57:01 UTC (rev 45231)
+++ trunk/src/wp-includes/media.php     2019-04-17 13:26:00 UTC (rev 45232)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -733,7 +733,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                        $data = array_shift( $candidates );
</span><span class="cx" style="display: block; padding: 0 10px">                        /*
</span><span class="cx" style="display: block; padding: 0 10px">                        * When the size requested is smaller than the thumbnail dimensions, we
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                        * fall back to the thumbnail size to maintain backwards compatibility with
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                 * fall back to the thumbnail size to maintain backward compatibility with
</ins><span class="cx" style="display: block; padding: 0 10px">                         * pre 4.6 versions of WordPress.
</span><span class="cx" style="display: block; padding: 0 10px">                        */
</span><span class="cx" style="display: block; padding: 0 10px">                } elseif ( ! empty( $imagedata['sizes']['thumbnail'] ) && $imagedata['sizes']['thumbnail']['width'] >= $size[0] && $imagedata['sizes']['thumbnail']['width'] >= $size[1] ) {
</span></span></pre></div>
<a id="trunksrcwpincludesscriptloaderphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/wp-includes/script-loader.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/script-loader.php   2019-04-17 12:57:01 UTC (rev 45231)
+++ trunk/src/wp-includes/script-loader.php     2019-04-17 13:26:00 UTC (rev 45232)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1083,7 +1083,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">        $scripts->add( 'jquery-table-hotkeys', "/wp-includes/js/jquery/jquery.table-hotkeys$suffix.js", array( 'jquery', 'jquery-hotkeys' ), false, 1 );
</span><span class="cx" style="display: block; padding: 0 10px">        $scripts->add( 'jquery-touch-punch', '/wp-includes/js/jquery/jquery.ui.touch-punch.js', array( 'jquery-ui-widget', 'jquery-ui-mouse' ), '0.2.2', 1 );
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-        // Not used any more, registered for backwards compatibility.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ // Not used any more, registered for backward compatibility.
</ins><span class="cx" style="display: block; padding: 0 10px">         $scripts->add( 'suggest', "/wp-includes/js/jquery/suggest$suffix.js", array( 'jquery' ), '1.1-20110113', 1 );
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">        // Masonry v2 depended on jQuery. v3 does not. The older jquery-masonry handle is a shiv.
</span></span></pre></div>
<a id="trunksrcwpincludesthemephp"></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/theme.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/theme.php   2019-04-17 12:57:01 UTC (rev 45231)
+++ trunk/src/wp-includes/theme.php     2019-04-17 13:26:00 UTC (rev 45232)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -3285,7 +3285,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                 * it is now a persistent changeset, a long-lived draft, and so any
</span><span class="cx" style="display: block; padding: 0 10px">                 * associated auto-draft posts should likewise transition into having a draft
</span><span class="cx" style="display: block; padding: 0 10px">                 * status. These drafts will be treated differently than regular drafts in
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                 * that they will be tied to the given changeset. The publish metabox is
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+          * that they will be tied to the given changeset. The publish meta box is
</ins><span class="cx" style="display: block; padding: 0 10px">                  * replaced with a notice about how the post is part of a set of customized changes
</span><span class="cx" style="display: block; padding: 0 10px">                 * which will be published when the changeset is published.
</span><span class="cx" style="display: block; padding: 0 10px">                 */
</span></span></pre></div>
<a id="trunksrcwpincludeswpdbphp"></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/wp-db.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/wp-db.php   2019-04-17 12:57:01 UTC (rev 45231)
+++ trunk/src/wp-includes/wp-db.php     2019-04-17 13:26:00 UTC (rev 45232)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1335,7 +1335,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                 * If a %s placeholder already has quotes around it, removing the existing quotes and re-inserting them
</span><span class="cx" style="display: block; padding: 0 10px">                 * ensures the quotes are consistent.
</span><span class="cx" style="display: block; padding: 0 10px">                 *
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                 * For backwards compatibility, this is only applied to %s, and not to placeholders like %1$s, which are frequently
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+          * For backward compatibility, this is only applied to %s, and not to placeholders like %1$s, which are frequently
</ins><span class="cx" style="display: block; padding: 0 10px">                  * used in the middle of longer strings, or as table name placeholders.
</span><span class="cx" style="display: block; padding: 0 10px">                 */
</span><span class="cx" style="display: block; padding: 0 10px">                $query = str_replace( "'%s'", '%s', $query ); // Strip any existing single quotes.
</span></span></pre>
</div>
</div>

</body>
</html>