<!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>[56414] trunk/src: Docs: Miscellaneous docblock corrections and improvements.</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/56414">56414</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/56414","name":"Review Commit"}}</script></dd>
<dt style="float: left; width: 6em; font-weight: bold">Author</dt> <dd>johnbillion</dd>
<dt style="float: left; width: 6em; font-weight: bold">Date</dt> <dd>2023-08-18 17:27:16 +0000 (Fri, 18 Aug 2023)</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: Miscellaneous docblock corrections and improvements.
See <a href="https://core.trac.wordpress.org/ticket/58833">#58833</a></pre>
<h3>Modified Paths</h3>
<ul>
<li><a href="#trunksrcwpadminincludespluginphp">trunk/src/wp-admin/includes/plugin.php</a></li>
<li><a href="#trunksrcwpadminincludesschemaphp">trunk/src/wp-admin/includes/schema.php</a></li>
<li><a href="#trunksrcwpincludesblocksupportsutilsphp">trunk/src/wp-includes/block-supports/utils.php</a></li>
<li><a href="#trunksrcwpincludesblocktemplateutilsphp">trunk/src/wp-includes/block-template-utils.php</a></li>
<li><a href="#trunksrcwpincludesclasswpblocktypephp">trunk/src/wp-includes/class-wp-block-type.php</a></li>
<li><a href="#trunksrcwpincludesclasswpnavigationfallbackphp">trunk/src/wp-includes/class-wp-navigation-fallback.php</a></li>
<li><a href="#trunksrcwpincludesclasswpthemejsonphp">trunk/src/wp-includes/class-wp-theme-json.php</a></li>
<li><a href="#trunksrcwpincludescronphp">trunk/src/wp-includes/cron.php</a></li>
<li><a href="#trunksrcwpincludesfunctionsphp">trunk/src/wp-includes/functions.php</a></li>
<li><a href="#trunksrcwpincludesfunctionswpscriptsphp">trunk/src/wp-includes/functions.wp-scripts.php</a></li>
<li><a href="#trunksrcwpincludesl10nphp">trunk/src/wp-includes/l10n.php</a></li>
<li><a href="#trunksrcwpincludespostphp">trunk/src/wp-includes/post.php</a></li>
<li><a href="#trunksrcwpincludesthemephp">trunk/src/wp-includes/theme.php</a></li>
</ul>
</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunksrcwpadminincludespluginphp"></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/plugin.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-admin/includes/plugin.php 2023-08-18 13:20:56 UTC (rev 56413)
+++ trunk/src/wp-admin/includes/plugin.php 2023-08-18 17:27:16 UTC (rev 56414)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -854,7 +854,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @param bool $network_wide Whether to enable the plugin for all sites in the network.
</span><span class="cx" style="display: block; padding: 0 10px"> * Default false.
</span><span class="cx" style="display: block; padding: 0 10px"> * @param bool $silent Prevent calling activation hooks. Default false.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @return bool|WP_Error True when finished or WP_Error if there were errors during a plugin activation.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @return true|WP_Error True when finished or WP_Error if there were errors during a plugin activation.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function activate_plugins( $plugins, $redirect = '', $network_wide = false, $silent = false ) {
</span><span class="cx" style="display: block; padding: 0 10px"> if ( ! is_array( $plugins ) ) {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -2440,7 +2440,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @param string $plugin Single plugin to resume.
</span><span class="cx" style="display: block; padding: 0 10px"> * @param string $redirect Optional. URL to redirect to. Default empty string.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @return bool|WP_Error True on success, false if `$plugin` was not paused,
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @return true|WP_Error True on success, false if `$plugin` was not paused,
</ins><span class="cx" style="display: block; padding: 0 10px"> * `WP_Error` on failure.
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function resume_plugin( $plugin, $redirect = '' ) {
</span></span></pre></div>
<a id="trunksrcwpadminincludesschemaphp"></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/schema.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-admin/includes/schema.php 2023-08-18 13:20:56 UTC (rev 56413)
+++ trunk/src/wp-admin/includes/schema.php 2023-08-18 17:27:16 UTC (rev 56414)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -979,7 +979,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @param string $path Optional. The path to append to the network's domain name. Default '/'.
</span><span class="cx" style="display: block; padding: 0 10px"> * @param bool $subdomain_install Optional. Whether the network is a subdomain installation or a subdirectory installation.
</span><span class="cx" style="display: block; padding: 0 10px"> * Default false, meaning the network is a subdirectory installation.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @return bool|WP_Error True on success, or WP_Error on warning (with the installation otherwise successful,
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @return true|WP_Error True on success, or WP_Error on warning (with the installation otherwise successful,
</ins><span class="cx" style="display: block; padding: 0 10px"> * so the error code must be checked) or failure.
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function populate_network( $network_id = 1, $domain = '', $email = '', $site_name = '', $path = '/', $subdomain_install = false ) {
</span></span></pre></div>
<a id="trunksrcwpincludesblocksupportsutilsphp"></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/block-supports/utils.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/block-supports/utils.php 2023-08-18 13:20:56 UTC (rev 56413)
+++ trunk/src/wp-includes/block-supports/utils.php 2023-08-18 17:27:16 UTC (rev 56414)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -18,7 +18,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @param string $feature_set Name of block support feature set..
</span><span class="cx" style="display: block; padding: 0 10px"> * @param string $feature Optional name of individual feature to check.
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @return boolean Whether to serialize block support styles & classes.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @return bool Whether to serialize block support styles & classes.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function wp_should_skip_block_supports_serialization( $block_type, $feature_set, $feature = null ) {
</span><span class="cx" style="display: block; padding: 0 10px"> if ( ! is_object( $block_type ) || ! $feature_set ) {
</span></span></pre></div>
<a id="trunksrcwpincludesblocktemplateutilsphp"></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/block-template-utils.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/block-template-utils.php 2023-08-18 13:20:56 UTC (rev 56413)
+++ trunk/src/wp-includes/block-template-utils.php 2023-08-18 17:27:16 UTC (rev 56414)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -308,10 +308,10 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @param array $query {
</span><span class="cx" style="display: block; padding: 0 10px"> * Arguments to retrieve templates. Optional, empty by default.
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @type array $slug__in List of slugs to include.
- * @type array $slug__not_in List of slugs to skip.
- * @type string $area A 'wp_template_part_area' taxonomy value to filter by (for 'wp_template_part' template type only).
- * @type string $post_type Post type to get the templates for.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @type string[] $slug__in List of slugs to include.
+ * @type string[] $slug__not_in List of slugs to skip.
+ * @type string $area A 'wp_template_part_area' taxonomy value to filter by (for 'wp_template_part' template type only).
+ * @type string $post_type Post type to get the templates for.
</ins><span class="cx" style="display: block; padding: 0 10px"> * }
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @return array Template
</span></span></pre></div>
<a id="trunksrcwpincludesclasswpblocktypephp"></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-block-type.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/class-wp-block-type.php 2023-08-18 13:20:56 UTC (rev 56413)
+++ trunk/src/wp-includes/class-wp-block-type.php 2023-08-18 17:27:16 UTC (rev 56414)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -333,8 +333,8 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @param string $name Deprecated property name.
</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 boolean Returns true when for the new property the first item in the array exists,
- * or false otherwise.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @return bool Returns true when for the new property the first item in the array exists,
+ * or false otherwise.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function __isset( $name ) {
</span><span class="cx" style="display: block; padding: 0 10px"> if ( ! in_array( $name, $this->deprecated_properties, true ) ) {
</span></span></pre></div>
<a id="trunksrcwpincludesclasswpnavigationfallbackphp"></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-navigation-fallback.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/class-wp-navigation-fallback.php 2023-08-18 13:20:56 UTC (rev 56413)
+++ trunk/src/wp-includes/class-wp-navigation-fallback.php 2023-08-18 17:27:16 UTC (rev 56414)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -31,7 +31,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 6.3.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 Whether to create a fallback navigation menu. Default true.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param bool $create Whether to create a fallback navigation menu. Default true.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> $should_create_fallback = apply_filters( 'wp_navigation_should_create_fallback', true );
</span><span class="cx" style="display: block; padding: 0 10px">
</span></span></pre></div>
<a id="trunksrcwpincludesclasswpthemejsonphp"></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-theme-json.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/class-wp-theme-json.php 2023-08-18 13:20:56 UTC (rev 56413)
+++ trunk/src/wp-includes/class-wp-theme-json.php 2023-08-18 17:27:16 UTC (rev 56414)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -2685,7 +2685,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @param array $theme_json The theme.json like structure to inspect.
</span><span class="cx" style="display: block; padding: 0 10px"> * @param array $path Path to inspect.
</span><span class="cx" style="display: block; padding: 0 10px"> * @param bool|array $override Data to compute whether to override the preset.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @return boolean
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @return bool
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> protected static function should_override_preset( $theme_json, $path, $override ) {
</span><span class="cx" style="display: block; padding: 0 10px"> _deprecated_function( __METHOD__, '6.0.0', 'get_metadata_boolean' );
</span></span></pre></div>
<a id="trunksrcwpincludescronphp"></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/cron.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/cron.php 2023-08-18 13:20:56 UTC (rev 56413)
+++ trunk/src/wp-includes/cron.php 2023-08-18 17:27:16 UTC (rev 56414)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -57,7 +57,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> );
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * Filter to preflight or hijack scheduling an event.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * Filter to override scheduling an event.
</ins><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * Returning a non-null value will short-circuit adding the event to the
</span><span class="cx" style="display: block; padding: 0 10px"> * cron array, causing the function to return the filtered value instead.
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -376,7 +376,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">- * Filter to preflight or hijack rescheduling of a recurring event.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * Filter to override rescheduling of a recurring event.
</ins><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * Returning a non-null value will short-circuit the normal rescheduling
</span><span class="cx" style="display: block; padding: 0 10px"> * process, causing the function to return the filtered value instead.
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -473,7 +473,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">- * Filter to preflight or hijack unscheduling of events.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * Filter to override unscheduling of events.
</ins><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * Returning a non-null value will short-circuit the normal unscheduling
</span><span class="cx" style="display: block; padding: 0 10px"> * process, causing the function to return the filtered value instead.
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -526,8 +526,8 @@
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><span class="cx" style="display: block; padding: 0 10px"> * Unschedules all events attached to the hook with the specified arguments.
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * Warning: This function may return Boolean FALSE, but may also return a non-Boolean
- * value which evaluates to FALSE. For information about casting to booleans see the
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * Warning: This function may return boolean false, but may also return a non-boolean
+ * value which evaluates to false. For information about casting to booleans see the
</ins><span class="cx" style="display: block; padding: 0 10px"> * {@link https://www.php.net/manual/en/language.types.boolean.php PHP documentation}. Use
</span><span class="cx" style="display: block; padding: 0 10px"> * the `===` operator for testing the return value of this function.
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -563,7 +563,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">- * Filter to preflight or hijack clearing a scheduled hook.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * Filter to override clearing a scheduled hook.
</ins><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * Returning a non-null value will short-circuit the normal unscheduling
</span><span class="cx" style="display: block; padding: 0 10px"> * process, causing the function to return the filtered value instead.
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -637,8 +637,8 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * Can be useful for plugins when deactivating to clean up the cron queue.
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * Warning: This function may return Boolean FALSE, but may also return a non-Boolean
- * value which evaluates to FALSE. For information about casting to booleans see the
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * Warning: This function may return boolean false, but may also return a non-boolean
+ * value which evaluates to false. For information about casting to booleans see the
</ins><span class="cx" style="display: block; padding: 0 10px"> * {@link https://www.php.net/manual/en/language.types.boolean.php PHP documentation}. Use
</span><span class="cx" style="display: block; padding: 0 10px"> * the `===` operator for testing the return value of this function.
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -653,7 +653,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function wp_unschedule_hook( $hook, $wp_error = false ) {
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * Filter to preflight or hijack clearing all events attached to the hook.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * Filter to override clearing all events attached to the hook.
</ins><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * Returning a non-null value will short-circuit the normal unscheduling
</span><span class="cx" style="display: block; padding: 0 10px"> * process, causing the function to return the filtered value instead.
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -749,7 +749,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function wp_get_scheduled_event( $hook, $args = array(), $timestamp = null ) {
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * Filter to preflight or hijack retrieving a scheduled event.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * Filter to override retrieving a scheduled event.
</ins><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * Returning a non-null value will short-circuit the normal process,
</span><span class="cx" style="display: block; padding: 0 10px"> * returning the filtered value instead.
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -965,9 +965,9 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 5.1.0 Return value added to indicate success or failure.
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 5.7.0 Functionality moved to _wp_cron() to which this becomes a wrapper.
</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|int|void On success an integer indicating number of events spawned (0 indicates no
- * events needed to be spawned), false if spawning fails for one or more events or
- * void if the function registered _wp_cron() to run on the action.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @return false|int|void On success an integer indicating number of events spawned (0 indicates no
+ * events needed to be spawned), false if spawning fails for one or more events or
+ * void if the function registered _wp_cron() to run on the action.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function wp_cron() {
</span><span class="cx" style="display: block; padding: 0 10px"> if ( did_action( 'wp_loaded' ) ) {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1160,7 +1160,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function wp_get_ready_cron_jobs() {
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * Filter to preflight or hijack retrieving ready cron jobs.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * Filter to override retrieving ready cron jobs.
</ins><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * Returning an array will short-circuit the normal retrieval of ready
</span><span class="cx" style="display: block; padding: 0 10px"> * cron jobs, causing the function to return the filtered value instead.
</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 2023-08-18 13:20:56 UTC (rev 56413)
+++ trunk/src/wp-includes/functions.php 2023-08-18 17:27:16 UTC (rev 56414)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -8600,7 +8600,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @param int|float $expected The expected value.
</span><span class="cx" style="display: block; padding: 0 10px"> * @param int|float $actual The actual number.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @param int|float $precision The allowed variation.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param int|float $precision Optional. The allowed variation. Default 1.
</ins><span class="cx" style="display: block; padding: 0 10px"> * @return bool Whether the numbers match within the specified precision.
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function wp_fuzzy_number_match( $expected, $actual, $precision = 1 ) {
</span></span></pre></div>
<a id="trunksrcwpincludesfunctionswpscriptsphp"></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.wp-scripts.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/functions.wp-scripts.php 2023-08-18 13:20:56 UTC (rev 56413)
+++ trunk/src/wp-includes/functions.wp-scripts.php 2023-08-18 17:27:16 UTC (rev 56414)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -73,7 +73,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * Called by admin-header.php and {@see 'wp_head'} hook. Since it is called by wp_head on every page load,
</span><span class="cx" style="display: block; padding: 0 10px"> * the function does not instantiate the WP_Scripts object unless script names are explicitly passed.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * Makes use of already-instantiated $wp_scripts global if present. Use provided {@see 'wp_print_scripts'}
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * Makes use of already-instantiated `$wp_scripts` global if present. Use provided {@see 'wp_print_scripts'}
</ins><span class="cx" style="display: block; padding: 0 10px"> * hook to register/enqueue new scripts.
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @see WP_Scripts::do_item()
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -113,8 +113,8 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * Adds extra code to a registered script.
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * Code will only be added if the script is already in the queue.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * Accepts a string $data containing the Code. If two or more code blocks
- * are added to the same script $handle, they will be printed in the order
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * Accepts a string `$data` containing the code. If two or more code blocks
+ * are added to the same script `$handle`, they will be printed in the order
</ins><span class="cx" style="display: block; padding: 0 10px"> * they were added, i.e. the latter added code can redeclare the previous.
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 4.5.0
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -201,9 +201,9 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * Works only if the script has already been registered.
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * Accepts an associative array $l10n and creates a JavaScript object:
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * Accepts an associative array `$l10n` and creates a JavaScript object:
</ins><span class="cx" style="display: block; padding: 0 10px"> *
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * "$object_name" = {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * "$object_name": {
</ins><span class="cx" style="display: block; padding: 0 10px"> * key: value,
</span><span class="cx" style="display: block; padding: 0 10px"> * key: value,
</span><span class="cx" style="display: block; padding: 0 10px"> * ...
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -337,7 +337,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><span class="cx" style="display: block; padding: 0 10px"> * Enqueues a script.
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * Registers the script if $src provided (does NOT overwrite), and enqueues it.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * Registers the script if `$src` provided (does NOT overwrite), and enqueues it.
</ins><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @see WP_Dependencies::add()
</span><span class="cx" style="display: block; padding: 0 10px"> * @see WP_Dependencies::add_data()
</span></span></pre></div>
<a id="trunksrcwpincludesl10nphp"></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/l10n.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/l10n.php 2023-08-18 13:20:56 UTC (rev 56413)
+++ trunk/src/wp-includes/l10n.php 2023-08-18 17:27:16 UTC (rev 56414)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1517,7 +1517,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @type string $id ID attribute of the select element. Default 'locale'.
</span><span class="cx" style="display: block; padding: 0 10px"> * @type string $name Name attribute of the select element. Default 'locale'.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @type array $languages List of installed languages, contain only the locales.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @type string[] $languages List of installed languages, contain only the locales.
</ins><span class="cx" style="display: block; padding: 0 10px"> * Default empty array.
</span><span class="cx" style="display: block; padding: 0 10px"> * @type array $translations List of available translations. Default result of
</span><span class="cx" style="display: block; padding: 0 10px"> * wp_get_available_translations().
</span></span></pre></div>
<a id="trunksrcwpincludespostphp"></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/post.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/post.php 2023-08-18 13:20:56 UTC (rev 56413)
+++ trunk/src/wp-includes/post.php 2023-08-18 17:27:16 UTC (rev 56414)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -4974,8 +4974,8 @@
</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 class="cx" style="display: block; padding: 0 10px"> *
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @param string $post_date The date in mysql format.
- * @param string $post_date_gmt The GMT date in mysql format.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param string $post_date The date in mysql format (`Y-m-d H:i:s`).
+ * @param string $post_date_gmt The GMT date in mysql format (`Y-m-d H:i:s`).
</ins><span class="cx" style="display: block; padding: 0 10px"> * @return string|false A valid Gregorian-calendar date string, or false on failure.
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function wp_resolve_post_date( $post_date = '', $post_date_gmt = '' ) {
</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 2023-08-18 13:20:56 UTC (rev 56413)
+++ trunk/src/wp-includes/theme.php 2023-08-18 17:27:16 UTC (rev 56414)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -4268,7 +4268,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 5.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">- * @return boolean Whether the active theme is a block-based theme or not.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @return bool Whether the active theme is a block-based theme or not.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function wp_is_block_theme() {
</span><span class="cx" style="display: block; padding: 0 10px"> return wp_get_theme()->is_block_theme();
</span></span></pre>
</div>
</div>
</body>
</html>