<!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>[54663] trunk: Docs: Align spelling with American English.</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/54663">54663</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/54663","name":"Review Commit"}}</script></dd>
<dt style="float: left; width: 6em; font-weight: bold">Author</dt> <dd>audrasjb</dd>
<dt style="float: left; width: 6em; font-weight: bold">Date</dt> <dd>2022-10-21 21:10:29 +0000 (Fri, 21 Oct 2022)</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: Align spelling with American English.
This changeset replaces "behaviour" with "behavior" in various docblocks.
Props kebbet, jrf.
See <a href="https://core.trac.wordpress.org/ticket/56811">#56811</a>, <a href="https://core.trac.wordpress.org/ticket/56792">#56792</a>.</pre>
<h3>Modified Paths</h3>
<ul>
<li><a href="#trunksrcwpadmineditformblocksphp">trunk/src/wp-admin/edit-form-blocks.php</a></li>
<li><a href="#trunksrcwpadminincludesupdatecorephp">trunk/src/wp-admin/includes/update-core.php</a></li>
<li><a href="#trunksrcwpincludesclasswphttpproxyphp">trunk/src/wp-includes/class-wp-http-proxy.php</a></li>
<li><a href="#trunksrcwpincludesclasswphttpphp">trunk/src/wp-includes/class-wp-http.php</a></li>
<li><a href="#trunksrcwpincludesdeprecatedphp">trunk/src/wp-includes/deprecated.php</a></li>
<li><a href="#trunksrcwpincludesformattingphp">trunk/src/wp-includes/formatting.php</a></li>
<li><a href="#trunksrcwpincludesfunctionsphp">trunk/src/wp-includes/functions.php</a></li>
<li><a href="#trunksrcwpincludesrestapiclasswprestrequestphp">trunk/src/wp-includes/rest-api/class-wp-rest-request.php</a></li>
<li><a href="#trunksrcwpincludesrestapiclasswprestserverphp">trunk/src/wp-includes/rest-api/class-wp-rest-server.php</a></li>
<li><a href="#trunksrcwpincludesrestapiphp">trunk/src/wp-includes/rest-api.php</a></li>
<li><a href="#trunktestsphpunittestsadminwpPostsListTablephp">trunk/tests/phpunit/tests/admin/wpPostsListTable.php</a></li>
<li><a href="#trunktestsphpunittestsfunctionscleanDirsizeCachephp">trunk/tests/phpunit/tests/functions/cleanDirsizeCache.php</a></li>
<li><a href="#trunktestsphpunittestsfunctionswpListUtilphp">trunk/tests/phpunit/tests/functions/wpListUtil.php</a></li>
<li><a href="#trunktestsphpunittestsrestapirestapplicationpasswordscontrollerphp">trunk/tests/phpunit/tests/rest-api/rest-application-passwords-controller.php</a></li>
<li><a href="#trunktestsphpunitteststhemephp">trunk/tests/phpunit/tests/theme.php</a></li>
<li><a href="#trunktestsphpunitwpmailrealtestphp">trunk/tests/phpunit/wp-mail-real-test.php</a></li>
</ul>
</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunksrcwpadmineditformblocksphp"></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/edit-form-blocks.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-admin/edit-form-blocks.php 2022-10-21 16:42:28 UTC (rev 54662)
+++ trunk/src/wp-admin/edit-form-blocks.php 2022-10-21 21:10:29 UTC (rev 54663)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -271,7 +271,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> do_action( 'enqueue_block_editor_assets' );
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-// In order to duplicate classic meta box behaviour, we need to run the classic meta box actions.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+// In order to duplicate classic meta box behavior, we need to run the classic meta box actions.
</ins><span class="cx" style="display: block; padding: 0 10px"> require_once ABSPATH . 'wp-admin/includes/meta-boxes.php';
</span><span class="cx" style="display: block; padding: 0 10px"> register_and_do_post_meta_boxes( $post );
</span><span class="cx" style="display: block; padding: 0 10px">
</span></span></pre></div>
<a id="trunksrcwpadminincludesupdatecorephp"></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/update-core.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-admin/includes/update-core.php 2022-10-21 16:42:28 UTC (rev 54662)
+++ trunk/src/wp-admin/includes/update-core.php 2022-10-21 21:10:29 UTC (rev 54663)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -852,7 +852,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * The contents of this array indicate any new bundled plugins/themes which
</span><span class="cx" style="display: block; padding: 0 10px"> * should be installed with the WordPress Upgrade. These items will not be
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * re-installed in future upgrades, this behaviour is controlled by the
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * re-installed in future upgrades, this behavior is controlled by the
</ins><span class="cx" style="display: block; padding: 0 10px"> * introduced version present here being older than the current installed version.
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * The content of this array should follow the following format:
</span></span></pre></div>
<a id="trunksrcwpincludesclasswphttpproxyphp"></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-http-proxy.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/class-wp-http-proxy.php 2022-10-21 16:42:28 UTC (rev 54662)
+++ trunk/src/wp-includes/class-wp-http-proxy.php 2022-10-21 21:10:29 UTC (rev 54663)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -45,7 +45,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><span class="cx" style="display: block; padding: 0 10px"> * Whether proxy connection should be used.
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * Constants which control this behaviour:
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * Constants which control this behavior:
</ins><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * - `WP_PROXY_HOST`
</span><span class="cx" style="display: block; padding: 0 10px"> * - `WP_PROXY_PORT`
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -61,7 +61,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><span class="cx" style="display: block; padding: 0 10px"> * Whether authentication should be used.
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * Constants which control this behaviour:
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * Constants which control this behavior:
</ins><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * - `WP_PROXY_USERNAME`
</span><span class="cx" style="display: block; padding: 0 10px"> * - `WP_PROXY_PASSWORD`
</span></span></pre></div>
<a id="trunksrcwpincludesclasswphttpphp"></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-http.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/class-wp-http.php 2022-10-21 16:42:28 UTC (rev 54662)
+++ trunk/src/wp-includes/class-wp-http.php 2022-10-21 21:10:29 UTC (rev 54663)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -247,7 +247,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * - A WP_Error instance
</span><span class="cx" style="display: block; padding: 0 10px"> * - boolean false to avoid short-circuiting the response
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * Returning any other value may result in unexpected behaviour.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * Returning any other value may result in unexpected behavior.
</ins><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><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -325,7 +325,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> 'hooks' => new WP_HTTP_Requests_Hooks( $url, $parsed_args ),
</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">- // Ensure redirects follow browser behaviour.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ // Ensure redirects follow browser behavior.
</ins><span class="cx" style="display: block; padding: 0 10px"> $options['hooks']->register( 'requests.before_redirect', array( get_class(), 'browser_redirect_compatibility' ) );
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> // Validate redirected URLs.
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -476,7 +476,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">- * Match redirect behaviour to browser handling.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * Match redirect behavior to browser handling.
</ins><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * Changes 302 redirects from POST to GET to match browser handling. Per
</span><span class="cx" style="display: block; padding: 0 10px"> * RFC 7231, user agents can deviate from the strict reading of the
</span></span></pre></div>
<a id="trunksrcwpincludesdeprecatedphp"></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/deprecated.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/deprecated.php 2022-10-21 16:42:28 UTC (rev 54662)
+++ trunk/src/wp-includes/deprecated.php 2022-10-21 21:10:29 UTC (rev 54663)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -2027,7 +2027,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * Checks and cleans a URL.
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * A number of characters are removed from the URL. If the URL is for displaying
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * (the default behaviour) ampersands are also replaced. The 'clean_url' filter
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * (the default behavior) ampersands are also replaced. The 'clean_url' filter
</ins><span class="cx" style="display: block; padding: 0 10px"> * is applied to the returned cleaned URL.
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 1.2.0
</span></span></pre></div>
<a id="trunksrcwpincludesformattingphp"></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/formatting.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/formatting.php 2022-10-21 16:42:28 UTC (rev 54662)
+++ trunk/src/wp-includes/formatting.php 2022-10-21 21:10:29 UTC (rev 54663)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -943,7 +943,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> return $string;
</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">- // Account for the previous behaviour of the function when the $quote_style is not an accepted value.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ // Account for the previous behavior of the function when the $quote_style is not an accepted value.
</ins><span class="cx" style="display: block; padding: 0 10px"> if ( empty( $quote_style ) ) {
</span><span class="cx" style="display: block; padding: 0 10px"> $quote_style = ENT_NOQUOTES;
</span><span class="cx" style="display: block; padding: 0 10px"> } elseif ( ENT_XML1 === $quote_style ) {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1023,7 +1023,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> return $string;
</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">- // Match the previous behaviour of _wp_specialchars() when the $quote_style is not an accepted value.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ // Match the previous behavior of _wp_specialchars() when the $quote_style is not an accepted value.
</ins><span class="cx" style="display: block; padding: 0 10px"> if ( empty( $quote_style ) ) {
</span><span class="cx" style="display: block; padding: 0 10px"> $quote_style = ENT_NOQUOTES;
</span><span class="cx" style="display: block; padding: 0 10px"> } elseif ( ! in_array( $quote_style, array( 0, 2, 3, 'single', 'double' ), true ) ) {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -4334,7 +4334,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * is preparing an array for use in an IN clause.
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * NOTE: Since 4.8.3, '%' characters will be replaced with a placeholder string,
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * this prevents certain SQLi attacks from taking place. This change in behaviour
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * this prevents certain SQLi attacks from taking place. This change in behavior
</ins><span class="cx" style="display: block; padding: 0 10px"> * may cause issues for code that expects the return value of esc_sql() to be useable
</span><span class="cx" style="display: block; padding: 0 10px"> * for other purposes.
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -4354,7 +4354,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * Checks and cleans a URL.
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * A number of characters are removed from the URL. If the URL is for displaying
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * (the default behaviour) ampersands are also replaced. The {@see 'clean_url'} filter
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * (the default behavior) ampersands are also replaced. The {@see 'clean_url'} filter
</ins><span class="cx" style="display: block; padding: 0 10px"> * is applied to the returned cleaned URL.
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 2.8.0
</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 2022-10-21 16:42:28 UTC (rev 54662)
+++ trunk/src/wp-includes/functions.php 2022-10-21 21:10:29 UTC (rev 54663)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -8436,7 +8436,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><span class="cx" style="display: block; padding: 0 10px"> * Sorts the keys of an array alphabetically.
</span><span class="cx" style="display: block; padding: 0 10px"> * The array is passed by reference so it doesn't get returned
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * which mimics the behaviour of ksort.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * which mimics the behavior of ksort.
</ins><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 6.0.0
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span></span></pre></div>
<a id="trunksrcwpincludesrestapiclasswprestrequestphp"></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/rest-api/class-wp-rest-request.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/rest-api/class-wp-rest-request.php 2022-10-21 16:42:28 UTC (rev 54662)
+++ trunk/src/wp-includes/rest-api/class-wp-rest-request.php 2022-10-21 21:10:29 UTC (rev 54663)
</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"> * Note: This implements ArrayAccess, and acts as an array of parameters when
</span><span class="cx" style="display: block; padding: 0 10px"> * used in that manner. It does not use ArrayObject (as we cannot rely on SPL),
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * so be aware it may have non-array behaviour in some cases.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * so be aware it may have non-array behavior in some cases.
</ins><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * Note: When using features provided by ArrayAccess, be aware that WordPress deliberately
</span><span class="cx" style="display: block; padding: 0 10px"> * does not distinguish between arguments of the same name for different request methods.
</span></span></pre></div>
<a id="trunksrcwpincludesrestapiclasswprestserverphp"></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/rest-api/class-wp-rest-server.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/rest-api/class-wp-rest-server.php 2022-10-21 16:42:28 UTC (rev 54662)
+++ trunk/src/wp-includes/rest-api/class-wp-rest-server.php 2022-10-21 21:10:29 UTC (rev 54663)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -193,7 +193,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * Converts an error to a response object.
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * This iterates over all error codes and messages to change it into a flat
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * array. This enables simpler client behaviour, as it is represented as a
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * array. This enables simpler client behavior, as it is represented as a
</ins><span class="cx" style="display: block; padding: 0 10px"> * list in JSON rather than an object/map.
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 4.4.0
</span></span></pre></div>
<a id="trunksrcwpincludesrestapiphp"></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/rest-api.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/rest-api.php 2022-10-21 16:42:28 UTC (rev 54662)
+++ trunk/src/wp-includes/rest-api.php 2022-10-21 21:10:29 UTC (rev 54663)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -3307,7 +3307,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * Converts an error to a response object.
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * This iterates over all error codes and messages to change it into a flat
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * array. This enables simpler client behaviour, as it is represented as a
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * array. This enables simpler client behavior, as it is represented as a
</ins><span class="cx" style="display: block; padding: 0 10px"> * list in JSON rather than an object/map.
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 5.7.0
</span></span></pre></div>
<a id="trunktestsphpunittestsadminwpPostsListTablephp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/admin/wpPostsListTable.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/admin/wpPostsListTable.php 2022-10-21 16:42:28 UTC (rev 54662)
+++ trunk/tests/phpunit/tests/admin/wpPostsListTable.php 2022-10-21 21:10:29 UTC (rev 54663)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -225,7 +225,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> $args
</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">- // Mimic the behaviour of `wp_edit_posts_query()`:
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ // Mimic the behavior of `wp_edit_posts_query()`:
</ins><span class="cx" style="display: block; padding: 0 10px"> if ( ! isset( $args['orderby'] ) ) {
</span><span class="cx" style="display: block; padding: 0 10px"> $args['orderby'] = 'menu_order title';
</span><span class="cx" style="display: block; padding: 0 10px"> $args['order'] = 'asc';
</span></span></pre></div>
<a id="trunktestsphpunittestsfunctionscleanDirsizeCachephp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/functions/cleanDirsizeCache.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/functions/cleanDirsizeCache.php 2022-10-21 16:42:28 UTC (rev 54662)
+++ trunk/tests/phpunit/tests/functions/cleanDirsizeCache.php 2022-10-21 21:10:29 UTC (rev 54663)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -105,7 +105,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">- * Tests the behaviour of the function when the transient doesn't exist.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * Tests the behavior of the function when the transient doesn't exist.
</ins><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @ticket 52241
</span><span class="cx" style="display: block; padding: 0 10px"> * @ticket 53635
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -121,7 +121,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">- * Tests the behaviour of the function when the transient does exist, but is not an array.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * Tests the behavior of the function when the transient does exist, but is not an array.
</ins><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * In particular, this tests that no PHP TypeErrors are being thrown.
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span></span></pre></div>
<a id="trunktestsphpunittestsfunctionswpListUtilphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/functions/wpListUtil.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/functions/wpListUtil.php 2022-10-21 16:42:28 UTC (rev 54662)
+++ trunk/tests/phpunit/tests/functions/wpListUtil.php 2022-10-21 21:10:29 UTC (rev 54663)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -942,7 +942,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><span class="cx" style="display: block; padding: 0 10px"> * Tests non-existent '$orderby' fields.
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * In PHP < 7.0.0, the sorting behaviour is different, which Core does not
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * In PHP < 7.0.0, the sorting behavior is different, which Core does not
</ins><span class="cx" style="display: block; padding: 0 10px"> * currently handle. Until this is fixed, or the minimum PHP version is
</span><span class="cx" style="display: block; padding: 0 10px"> * raised to PHP 7.0.0+, these tests will be skipped on PHP < 7.0.0.
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span></span></pre></div>
<a id="trunktestsphpunittestsrestapirestapplicationpasswordscontrollerphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/rest-api/rest-application-passwords-controller.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/rest-api/rest-application-passwords-controller.php 2022-10-21 16:42:28 UTC (rev 54662)
+++ trunk/tests/phpunit/tests/rest-api/rest-application-passwords-controller.php 2022-10-21 21:10:29 UTC (rev 54663)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -992,7 +992,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> $actual = wp_is_application_passwords_supported();
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- // Revert to default behaviour so that other tests are not affected.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ // Revert to default behavior so that other tests are not affected.
</ins><span class="cx" style="display: block; padding: 0 10px"> putenv( 'WP_ENVIRONMENT_TYPE' );
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> $this->assertTrue( $actual );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1024,7 +1024,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> $actual = wp_is_application_passwords_available();
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> if ( 'default' === $expected ) {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- // Revert to default behaviour so that other tests are not affected.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ // Revert to default behavior so that other tests are not affected.
</ins><span class="cx" style="display: block; padding: 0 10px"> putenv( 'WP_ENVIRONMENT_TYPE' );
</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="trunktestsphpunitteststhemephp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/theme.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/theme.php 2022-10-21 16:42:28 UTC (rev 54662)
+++ trunk/tests/phpunit/tests/theme.php 2022-10-21 21:10:29 UTC (rev 54663)
</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"> $this->assertNotFalse( $theme->errors() );
</span><span class="cx" style="display: block; padding: 0 10px"> $this->assertFalse( $theme->exists() );
</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 return the bogus name - perhaps not ideal behaviour?
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ // These return the bogus name - perhaps not ideal behavior?
</ins><span class="cx" style="display: block; padding: 0 10px"> $this->assertSame( $template, get_template() );
</span><span class="cx" style="display: block; padding: 0 10px"> $this->assertSame( $style, get_stylesheet() );
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span></span></pre></div>
<a id="trunktestsphpunitwpmailrealtestphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/wp-mail-real-test.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/wp-mail-real-test.php 2022-10-21 16:42:28 UTC (rev 54662)
+++ trunk/tests/phpunit/wp-mail-real-test.php 2022-10-21 21:10:29 UTC (rev 54663)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -59,7 +59,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> define( 'PHPUnit_MAIN_METHOD', false );
</span><span class="cx" style="display: block; padding: 0 10px"> $original_wpdb = $GLOBALS['wpdb'];
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-// Hide warnings during testing, since that's the normal WP behaviour.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+// Hide warnings during testing, since that's the normal WP behavior.
</ins><span class="cx" style="display: block; padding: 0 10px"> if ( ! WP_DEBUG ) {
</span><span class="cx" style="display: block; padding: 0 10px"> error_reporting( E_ALL ^ E_NOTICE );
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span></span></pre>
</div>
</div>
</body>
</html>