<!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>[59009] trunk/src: Docs: Various docblock improvements and corrections.</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/59009">59009</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/59009","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>2024-09-11 12:06:15 +0000 (Wed, 11 Sep 2024)</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: Various docblock improvements and corrections.
See <a href="https://core.trac.wordpress.org/ticket/61608">#61608</a></pre>
<h3>Modified Paths</h3>
<ul>
<li><a href="#trunksrcwpadminincludestranslationinstallphp">trunk/src/wp-admin/includes/translation-install.php</a></li>
<li><a href="#trunksrcwpincludesblocksphp">trunk/src/wp-includes/blocks.php</a></li>
<li><a href="#trunksrcwpincludesclasswpapplicationpasswordsphp">trunk/src/wp-includes/class-wp-application-passwords.php</a></li>
<li><a href="#trunksrcwpincludesclasswpblockphp">trunk/src/wp-includes/class-wp-block.php</a></li>
<li><a href="#trunksrcwpincludesclasswphttpphp">trunk/src/wp-includes/class-wp-http.php</a></li>
<li><a href="#trunksrcwpincludesclasswpsitequeryphp">trunk/src/wp-includes/class-wp-site-query.php</a></li>
<li><a href="#trunksrcwpincludeshttpphp">trunk/src/wp-includes/http.php</a></li>
<li><a href="#trunksrcwpincludesmssitephp">trunk/src/wp-includes/ms-site.php</a></li>
<li><a href="#trunksrcwpincludespluggablephp">trunk/src/wp-includes/pluggable.php</a></li>
<li><a href="#trunksrcwpincludespostphp">trunk/src/wp-includes/post.php</a></li>
<li><a href="#trunksrcwpincludesrestapiendpointsclasswprestglobalstylescontrollerphp">trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-global-styles-controller.php</a></li>
<li><a href="#trunksrcwpincludesrestapiendpointsclasswprestmenuitemscontrollerphp">trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-menu-items-controller.php</a></li>
</ul>
</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunksrcwpadminincludestranslationinstallphp"></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/translation-install.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-admin/includes/translation-install.php 2024-09-10 23:59:54 UTC (rev 59008)
+++ trunk/src/wp-admin/includes/translation-install.php 2024-09-11 12:06:15 UTC (rev 59009)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -14,7 +14,24 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @param string $type Type of translations. Accepts 'plugins', 'themes', 'core'.
</span><span class="cx" style="display: block; padding: 0 10px"> * @param array|object $args Translation API arguments. Optional.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @return array|WP_Error On success an associative array of translations, WP_Error on failure.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @return array|WP_Error {
+ * On success an associative array of translations, WP_Error on failure.
+ *
+ * @type array $translations {
+ * List of translations, each an array of data.
+ *
+ * @type array ...$0 {
+ * @type string $language Language code.
+ * @type string $version WordPress version.
+ * @type string $updated Date the translation was last updated, in MySQL datetime format.
+ * @type string $english_name English name of the language.
+ * @type string $native_name Native name of the language.
+ * @type string $package URL to download the translation package.
+ * @type string[] $iso Array of ISO language codes.
+ * @type array $strings Array of translated strings used in the installation process.
+ * }
+ * }
+ * }
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function translations_api( $type, $args = null ) {
</span><span class="cx" style="display: block; padding: 0 10px"> if ( ! in_array( $type, array( 'plugins', 'themes', 'core' ), true ) ) {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -100,7 +117,24 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 4.0.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 array|WP_Error $res Response as an associative array or WP_Error.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param array|WP_Error $res {
+ * On success an associative array of translations, WP_Error on failure.
+ *
+ * @type array $translations {
+ * List of translations, each an array of data.
+ *
+ * @type array ...$0 {
+ * @type string $language Language code.
+ * @type string $version WordPress version.
+ * @type string $updated Date the translation was last updated, in MySQL datetime format.
+ * @type string $english_name English name of the language.
+ * @type string $native_name Native name of the language.
+ * @type string $package URL to download the translation package.
+ * @type string[] $iso Array of ISO language codes.
+ * @type array $strings Array of translated strings used in the installation process.
+ * }
+ * }
+ * }
</ins><span class="cx" style="display: block; padding: 0 10px"> * @param string $type The type of translations being requested.
</span><span class="cx" style="display: block; padding: 0 10px"> * @param object $args Translation API arguments.
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -114,8 +148,21 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @see translations_api()
</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 array[] Array of translations, each an array of data, keyed by the language. If the API response results
- * in an error, an empty array will be returned.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @return array {
+ * Array of translations keyed by the language code, each an associative array of data.
+ * If the API response results in an error, an empty array will be returned.
+ *
+ * @type array ...$0 {
+ * @type string $language Language code.
+ * @type string $version WordPress version.
+ * @type string $updated Date the translation was last updated, in MySQL datetime format.
+ * @type string $english_name English name of the language.
+ * @type string $native_name Native name of the language.
+ * @type string $package URL to download the translation package.
+ * @type string[] $iso Array of ISO language codes.
+ * @type array $strings Array of translated strings used in the installation process.
+ * }
+ * }
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function wp_get_available_translations() {
</span><span class="cx" style="display: block; padding: 0 10px"> if ( ! wp_installing() ) {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -132,7 +179,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"> $translations = array();
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- // Key the array with the language code for now.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ // Key the array with the language code.
</ins><span class="cx" style="display: block; padding: 0 10px"> foreach ( $api['translations'] as $translation ) {
</span><span class="cx" style="display: block; padding: 0 10px"> $translations[ $translation['language'] ] = $translation;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span></span></pre></div>
<a id="trunksrcwpincludesblocksphp"></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/blocks.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/blocks.php 2024-09-10 23:59:54 UTC (rev 59008)
+++ trunk/src/wp-includes/blocks.php 2024-09-11 12:06:15 UTC (rev 59009)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1432,7 +1432,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 5.3.1
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @param array $block {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * A representative array of a single parsed block object. See WP_Block_Parser_Block.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * An associative array of a single parsed block object. See WP_Block_Parser_Block.
</ins><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @type string $blockName Name of block.
</span><span class="cx" style="display: block; padding: 0 10px"> * @type array $attrs Attributes from block comment delimiters.
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1473,7 +1473,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * Array of block structures.
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @type array ...$0 {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * A representative array of a single parsed block object. See WP_Block_Parser_Block.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * An associative array of a single parsed block object. See WP_Block_Parser_Block.
</ins><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @type string $blockName Name of block.
</span><span class="cx" style="display: block; padding: 0 10px"> * @type array $attrs Attributes from block comment delimiters.
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1515,7 +1515,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @see serialize_block()
</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 array $block A representative array of a single parsed block object. See WP_Block_Parser_Block.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param array $block An associative array of a single parsed block object. See WP_Block_Parser_Block.
</ins><span class="cx" style="display: block; padding: 0 10px"> * @param callable $pre_callback Callback to run on each block in the tree before it is traversed and serialized.
</span><span class="cx" style="display: block; padding: 0 10px"> * It is called with the following arguments: &$block, $parent_block, $previous_block.
</span><span class="cx" style="display: block; padding: 0 10px"> * Its string return value will be prepended to the serialized block markup.
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1997,7 +1997,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @global WP_Post $post The post to edit.
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @param array $parsed_block {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * A representative array of the block being rendered. See WP_Block_Parser_Block.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * An associative array of the block being rendered. See WP_Block_Parser_Block.
</ins><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @type string $blockName Name of block.
</span><span class="cx" style="display: block; padding: 0 10px"> * @type array $attrs Attributes from block comment delimiters.
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -2021,7 +2021,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @param string|null $pre_render The pre-rendered content. Default null.
</span><span class="cx" style="display: block; padding: 0 10px"> * @param array $parsed_block {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * A representative array of the block being rendered. See WP_Block_Parser_Block.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * An associative array of the block being rendered. See WP_Block_Parser_Block.
</ins><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @type string $blockName Name of block.
</span><span class="cx" style="display: block; padding: 0 10px"> * @type array $attrs Attributes from block comment delimiters.
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -2047,7 +2047,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 5.9.0 The `$parent_block` parameter was added.
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @param array $parsed_block {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * A representative array of the block being rendered. See WP_Block_Parser_Block.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * An associative array of the block being rendered. See WP_Block_Parser_Block.
</ins><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @type string $blockName Name of block.
</span><span class="cx" style="display: block; padding: 0 10px"> * @type array $attrs Attributes from block comment delimiters.
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -2095,7 +2095,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @param array $context Default context.
</span><span class="cx" style="display: block; padding: 0 10px"> * @param array $parsed_block {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * A representative array of the block being rendered. See WP_Block_Parser_Block.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * An associative array of the block being rendered. See WP_Block_Parser_Block.
</ins><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @type string $blockName Name of block.
</span><span class="cx" style="display: block; padding: 0 10px"> * @type array $attrs Attributes from block comment delimiters.
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -2124,7 +2124,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * Array of block structures.
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @type array ...$0 {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * A representative array of a single parsed block object. See WP_Block_Parser_Block.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * An associative array of a single parsed block object. See WP_Block_Parser_Block.
</ins><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @type string $blockName Name of block.
</span><span class="cx" style="display: block; padding: 0 10px"> * @type array $attrs Attributes from block comment delimiters.
</span></span></pre></div>
<a id="trunksrcwpincludesclasswpapplicationpasswordsphp"></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-application-passwords.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/class-wp-application-passwords.php 2024-09-10 23:59:54 UTC (rev 59008)
+++ trunk/src/wp-includes/class-wp-application-passwords.php 2024-09-11 12:06:15 UTC (rev 59009)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -71,7 +71,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @return array|WP_Error {
</span><span class="cx" style="display: block; padding: 0 10px"> * Application password details, or a WP_Error instance if an error occurs.
</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 string $0 The unhashed generated application password.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @type string $0 The generated application password in plain text.
</ins><span class="cx" style="display: block; padding: 0 10px"> * @type array $1 {
</span><span class="cx" style="display: block; padding: 0 10px"> * The details about the created password.
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -141,7 +141,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @type null $last_used Null.
</span><span class="cx" style="display: block; padding: 0 10px"> * @type null $last_ip 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">- * @param string $new_password The unhashed generated application password.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param string $new_password The generated application password in plain text.
</ins><span class="cx" style="display: block; padding: 0 10px"> * @param array $args {
</span><span class="cx" style="display: block; padding: 0 10px"> * Arguments used to create the application password.
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -161,7 +161,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @param int $user_id User ID.
</span><span class="cx" style="display: block; padding: 0 10px"> * @return array {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * The list of app passwords.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * The list of application passwords.
</ins><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @type array ...$0 {
</span><span class="cx" style="display: block; padding: 0 10px"> * @type string $uuid The unique identifier for the application password.
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -204,7 +204,17 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @param int $user_id User ID.
</span><span class="cx" style="display: block; padding: 0 10px"> * @param string $uuid The password's UUID.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @return array|null The application password if found, null otherwise.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @return array|null {
+ * The application password if found, null otherwise.
+ *
+ * @type string $uuid The unique identifier for the application password.
+ * @type string $app_id A UUID provided by the application to uniquely identify it.
+ * @type string $name The name of the application password.
+ * @type string $password A one-way hash of the password.
+ * @type int $created Unix timestamp of when the password was created.
+ * @type int|null $last_used The Unix timestamp of the GMT date the application password was last used.
+ * @type string|null $last_ip The IP address the application password was last used by.
+ * }
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public static function get_user_application_password( $user_id, $uuid ) {
</span><span class="cx" style="display: block; padding: 0 10px"> $passwords = static::get_user_application_passwords( $user_id );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -246,7 +256,17 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @param int $user_id User ID.
</span><span class="cx" style="display: block; padding: 0 10px"> * @param string $uuid The password's UUID.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @param array $update Information about the application password to update.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param array $update {
+ * Information about the application password to update.
+ *
+ * @type string $uuid The unique identifier for the application password.
+ * @type string $app_id A UUID provided by the application to uniquely identify it.
+ * @type string $name The name of the application password.
+ * @type string $password A one-way hash of the password.
+ * @type int $created Unix timestamp of when the password was created.
+ * @type int|null $last_used The Unix timestamp of the GMT date the application password was last used.
+ * @type string|null $last_ip The IP address the application password was last used by.
+ * }
</ins><span class="cx" style="display: block; padding: 0 10px"> * @return true|WP_Error True if successful, otherwise a WP_Error instance is returned on error.
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public static function update_application_password( $user_id, $uuid, $update = array() ) {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -282,7 +302,17 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 5.6.0
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @param int $user_id The user ID.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @param array $item The updated app password details.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param array $item {
+ * The updated application password details.
+ *
+ * @type string $uuid The unique identifier for the application password.
+ * @type string $app_id A UUID provided by the application to uniquely identify it.
+ * @type string $name The name of the application password.
+ * @type string $password A one-way hash of the password.
+ * @type int $created Unix timestamp of when the password was created.
+ * @type int|null $last_used The Unix timestamp of the GMT date the application password was last used.
+ * @type string|null $last_ip The IP address the application password was last used by.
+ * }
</ins><span class="cx" style="display: block; padding: 0 10px"> * @param array $update The information to update.
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> do_action( 'wp_update_application_password', $user_id, $item, $update );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -404,9 +434,22 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 5.6.0
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @param int $user_id User ID.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @param array $passwords Application passwords.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param array $passwords {
+ * The list of application passwords.
</ins><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
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @type array ...$0 {
+ * @type string $uuid The unique identifier for the application password.
+ * @type string $app_id A UUID provided by the application to uniquely identify it.
+ * @type string $name The name of the application password.
+ * @type string $password A one-way hash of the password.
+ * @type int $created Unix timestamp of when the password was created.
+ * @type int|null $last_used The Unix timestamp of the GMT date the application password was last used.
+ * @type string|null $last_ip The IP address the application password was last used by.
+ * }
+ * }
+ * @return int|bool User meta ID if the key didn't exist (ie. this is the first time that an application password
+ * has been saved for the user), true on successful update, false on failure or if the value passed
+ * is the same as the one that is already in the database.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> protected static function set_user_application_passwords( $user_id, $passwords ) {
</span><span class="cx" style="display: block; padding: 0 10px"> return update_user_meta( $user_id, static::USERMETA_KEY_APPLICATION_PASSWORDS, $passwords );
</span></span></pre></div>
<a id="trunksrcwpincludesclasswpblockphp"></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.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/class-wp-block.php 2024-09-10 23:59:54 UTC (rev 59008)
+++ trunk/src/wp-includes/class-wp-block.php 2024-09-11 12:06:15 UTC (rev 59009)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -114,7 +114,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 5.5.0
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @param array $block {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * A representative array of a single parsed block object. See WP_Block_Parser_Block.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * An associative array of a single parsed block object. See WP_Block_Parser_Block.
</ins><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @type string $blockName Name of block.
</span><span class="cx" style="display: block; padding: 0 10px"> * @type array $attrs Attributes from block comment delimiters.
</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 2024-09-10 23:59:54 UTC (rev 59008)
+++ trunk/src/wp-includes/class-wp-http.php 2024-09-11 12:06:15 UTC (rev 59009)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -145,8 +145,21 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @type int $limit_response_size Size in bytes to limit the response to. Default null.
</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">- * @return array|WP_Error Array containing 'headers', 'body', 'response', 'cookies', 'filename'.
- * A WP_Error instance upon error.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @return array|WP_Error {
+ * Array of response data, or a WP_Error instance upon error.
+ *
+ * @type \WpOrg\Requests\Utility\CaseInsensitiveDictionary $headers Response headers keyed by name.
+ * @type string $body Response body.
+ * @type array $response {
+ * Array of HTTP response data.
+ *
+ * @type int|false $code HTTP response status code.
+ * @type string|false $message HTTP response message.
+ * }
+ * @type WP_HTTP_Cookie[] $cookies Array of cookies set by the server.
+ * @type string|null $filename Optional. Filename of the response.
+ * @type WP_HTTP_Requests_Response|null $http_response Response object.
+ * }
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function request( $url, $args = array() ) {
</span><span class="cx" style="display: block; padding: 0 10px"> $defaults = array(
</span></span></pre></div>
<a id="trunksrcwpincludesclasswpsitequeryphp"></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-query.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/class-wp-site-query.php 2024-09-10 23:59:54 UTC (rev 59008)
+++ trunk/src/wp-includes/class-wp-site-query.php 2024-09-11 12:06:15 UTC (rev 59009)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -263,8 +263,8 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 4.6.0
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @param string|array $query Array or URL query string of parameters.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @return array|int List of WP_Site objects, a list of site IDs when 'fields' is set to 'ids',
- * or the number of sites when 'count' is passed as a query var.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @return WP_Site[]|int[]|int List of WP_Site objects, a list of site IDs when 'fields' is set to 'ids',
+ * or the number of sites when 'count' is passed as a query var.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function query( $query ) {
</span><span class="cx" style="display: block; padding: 0 10px"> $this->query_vars = wp_parse_args( $query );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -279,8 +279,8 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @global wpdb $wpdb WordPress database abstraction object.
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @return array|int List of WP_Site objects, a list of site IDs when 'fields' is set to 'ids',
- * or the number of sites when 'count' is passed as a query var.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @return WP_Site[]|int[]|int List of WP_Site objects, a list of site IDs when 'fields' is set to 'ids',
+ * or the number of sites when 'count' is passed as a query var.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function get_sites() {
</span><span class="cx" style="display: block; padding: 0 10px"> global $wpdb;
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -333,10 +333,10 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 5.6.0 The returned array of site data is assigned to the `sites` property
</span><span class="cx" style="display: block; padding: 0 10px"> * of the current WP_Site_Query instance.
</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 array|int|null $site_data Return an array of site data to short-circuit WP's site query,
- * the site count as an integer if `$this->query_vars['count']` is set,
- * or null to run the normal queries.
- * @param WP_Site_Query $query The WP_Site_Query instance, passed by reference.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param WP_Site[]|int[]|int|null $site_data Return an array of site data to short-circuit WP's site query,
+ * the site count as an integer if `$this->query_vars['count']` is set,
+ * or null to run the normal queries.
+ * @param WP_Site_Query $query The WP_Site_Query instance, passed by reference.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> $site_data = apply_filters_ref_array( 'sites_pre_query', array( $site_data, &$this ) );
</span><span class="cx" style="display: block; padding: 0 10px">
</span></span></pre></div>
<a id="trunksrcwpincludeshttpphp"></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/http.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/http.php 2024-09-10 23:59:54 UTC (rev 59008)
+++ trunk/src/wp-includes/http.php 2024-09-11 12:06:15 UTC (rev 59009)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -45,6 +45,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @param array $args Optional. Request arguments. Default empty array.
</span><span class="cx" style="display: block; padding: 0 10px"> * See WP_Http::request() for information on accepted arguments.
</span><span class="cx" style="display: block; padding: 0 10px"> * @return array|WP_Error The response or WP_Error on failure.
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * See WP_Http::request() for information on return value.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function wp_safe_remote_request( $url, $args = array() ) {
</span><span class="cx" style="display: block; padding: 0 10px"> $args['reject_unsafe_urls'] = true;
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -71,6 +72,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @param array $args Optional. Request arguments. Default empty array.
</span><span class="cx" style="display: block; padding: 0 10px"> * See WP_Http::request() for information on accepted arguments.
</span><span class="cx" style="display: block; padding: 0 10px"> * @return array|WP_Error The response or WP_Error on failure.
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * See WP_Http::request() for information on return value.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function wp_safe_remote_get( $url, $args = array() ) {
</span><span class="cx" style="display: block; padding: 0 10px"> $args['reject_unsafe_urls'] = true;
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -97,6 +99,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @param array $args Optional. Request arguments. Default empty array.
</span><span class="cx" style="display: block; padding: 0 10px"> * See WP_Http::request() for information on accepted arguments.
</span><span class="cx" style="display: block; padding: 0 10px"> * @return array|WP_Error The response or WP_Error on failure.
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * See WP_Http::request() for information on return value.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function wp_safe_remote_post( $url, $args = array() ) {
</span><span class="cx" style="display: block; padding: 0 10px"> $args['reject_unsafe_urls'] = true;
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -123,6 +126,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @param array $args Optional. Request arguments. Default empty array.
</span><span class="cx" style="display: block; padding: 0 10px"> * See WP_Http::request() for information on accepted arguments.
</span><span class="cx" style="display: block; padding: 0 10px"> * @return array|WP_Error The response or WP_Error on failure.
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * See WP_Http::request() for information on return value.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function wp_safe_remote_head( $url, $args = array() ) {
</span><span class="cx" style="display: block; padding: 0 10px"> $args['reject_unsafe_urls'] = true;
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -146,20 +150,8 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @param string $url URL to retrieve.
</span><span class="cx" style="display: block; padding: 0 10px"> * @param array $args Optional. Request arguments. Default empty array.
</span><span class="cx" style="display: block; padding: 0 10px"> * See WP_Http::request() for information on accepted arguments.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @return array|WP_Error {
- * The response array or a WP_Error on failure.
- *
- * @type string[] $headers Array of response headers keyed by their name.
- * @type string $body Response body.
- * @type array $response {
- * Data about the HTTP response.
- *
- * @type int|false $code HTTP response code.
- * @type string|false $message HTTP response message.
- * }
- * @type WP_HTTP_Cookie[] $cookies Array of response cookies.
- * @type WP_HTTP_Requests_Response|null $http_response Raw HTTP response object.
- * }
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @return array|WP_Error The response array or a WP_Error on failure.
+ * See WP_Http::request() for information on return value.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function wp_remote_request( $url, $args = array() ) {
</span><span class="cx" style="display: block; padding: 0 10px"> $http = _wp_http_get_object();
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -178,6 +170,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @param array $args Optional. Request arguments. Default empty array.
</span><span class="cx" style="display: block; padding: 0 10px"> * See WP_Http::request() for information on accepted arguments.
</span><span class="cx" style="display: block; padding: 0 10px"> * @return array|WP_Error The response or WP_Error on failure.
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * See WP_Http::request() for information on return value.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function wp_remote_get( $url, $args = array() ) {
</span><span class="cx" style="display: block; padding: 0 10px"> $http = _wp_http_get_object();
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -196,6 +189,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @param array $args Optional. Request arguments. Default empty array.
</span><span class="cx" style="display: block; padding: 0 10px"> * See WP_Http::request() for information on accepted arguments.
</span><span class="cx" style="display: block; padding: 0 10px"> * @return array|WP_Error The response or WP_Error on failure.
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * See WP_Http::request() for information on return value.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function wp_remote_post( $url, $args = array() ) {
</span><span class="cx" style="display: block; padding: 0 10px"> $http = _wp_http_get_object();
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -214,6 +208,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @param array $args Optional. Request arguments. Default empty array.
</span><span class="cx" style="display: block; padding: 0 10px"> * See WP_Http::request() for information on accepted arguments.
</span><span class="cx" style="display: block; padding: 0 10px"> * @return array|WP_Error The response or WP_Error on failure.
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * See WP_Http::request() for information on return value.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function wp_remote_head( $url, $args = array() ) {
</span><span class="cx" style="display: block; padding: 0 10px"> $http = _wp_http_get_object();
</span></span></pre></div>
<a id="trunksrcwpincludesmssitephp"></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/ms-site.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/ms-site.php 2024-09-10 23:59:54 UTC (rev 59008)
+++ trunk/src/wp-includes/ms-site.php 2024-09-11 12:06:15 UTC (rev 59009)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -439,8 +439,8 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @param string|array $args Optional. Array or string of arguments. See WP_Site_Query::__construct()
</span><span class="cx" style="display: block; padding: 0 10px"> * for information on accepted arguments. Default empty array.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @return array|int List of WP_Site objects, a list of site IDs when 'fields' is set to 'ids',
- * or the number of sites when 'count' is passed as a query var.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @return WP_Site[]|int[]|int List of WP_Site objects, a list of site IDs when 'fields' is set to 'ids',
+ * or the number of sites when 'count' is passed as a query var.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function get_sites( $args = array() ) {
</span><span class="cx" style="display: block; padding: 0 10px"> $query = new WP_Site_Query();
</span></span></pre></div>
<a id="trunksrcwpincludespluggablephp"></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/pluggable.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/pluggable.php 2024-09-10 23:59:54 UTC (rev 59008)
+++ trunk/src/wp-includes/pluggable.php 2024-09-11 12:06:15 UTC (rev 59009)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -2564,10 +2564,10 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> if ( ! function_exists( 'wp_hash_password' ) ) :
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * Creates a hash (encrypt) of a plain text password.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * Creates a hash of a plain text password.
</ins><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * For integration with other applications, this function can be overwritten to
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * instead use the other package password checking algorithm.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * instead use the other package password hashing algorithm.
</ins><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 2.5.0
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -2591,7 +2591,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> if ( ! function_exists( 'wp_check_password' ) ) :
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * Checks the plaintext password against the encrypted Password.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * Checks a plaintext password against a hashed password.
</ins><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * Maintains compatibility between old version and the new cookie authentication
</span><span class="cx" style="display: block; padding: 0 10px"> * protocol using PHPass library. The $hash parameter is the encrypted password
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -2599,7 +2599,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * against the already encrypted password to see if they match.
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * For integration with other applications, this function can be overwritten to
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * instead use the other package password checking algorithm.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * instead use the other package password hashing algorithm.
</ins><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 2.5.0
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -2792,7 +2792,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> if ( ! function_exists( 'wp_set_password' ) ) :
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * Updates the user's password with a new encrypted one.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * Updates the user's password with a new hashed one.
</ins><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * For integration with other applications, this function can be overwritten to
</span><span class="cx" style="display: block; padding: 0 10px"> * instead use the other package password checking algorithm.
</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 2024-09-10 23:59:54 UTC (rev 59008)
+++ trunk/src/wp-includes/post.php 2024-09-11 12:06:15 UTC (rev 59009)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -7794,7 +7794,10 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @param int|WP_Post $post Post ID or post object where thumbnail should be attached.
</span><span class="cx" style="display: block; padding: 0 10px"> * @param int $thumbnail_id Thumbnail to attach.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @return int|bool True on success, false on failure.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @return int|bool Post meta ID if the key didn't exist (ie. this is the first time that
+ * a thumbnail has been saved for the post), true on successful update,
+ * false on failure or if the value passed is the same as the one that
+ * is already in the database.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function set_post_thumbnail( $post, $thumbnail_id ) {
</span><span class="cx" style="display: block; padding: 0 10px"> $post = get_post( $post );
</span></span></pre></div>
<a id="trunksrcwpincludesrestapiendpointsclasswprestglobalstylescontrollerphp"></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/endpoints/class-wp-rest-global-styles-controller.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-global-styles-controller.php 2024-09-10 23:59:54 UTC (rev 59008)
+++ trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-global-styles-controller.php 2024-09-11 12:06:15 UTC (rev 59009)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -516,7 +516,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> public function get_theme_item_permissions_check( $request ) {
</span><span class="cx" style="display: block; padding: 0 10px"> /*
</span><span class="cx" style="display: block; padding: 0 10px"> * Verify if the current user has edit_theme_options capability.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * This capability is required to edit/view/delete templates.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * This capability is required to edit/view/delete global styles.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> if ( ! current_user_can( 'edit_theme_options' ) ) {
</span><span class="cx" style="display: block; padding: 0 10px"> return new WP_Error(
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -596,7 +596,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> public function get_theme_items_permissions_check( $request ) {
</span><span class="cx" style="display: block; padding: 0 10px"> /*
</span><span class="cx" style="display: block; padding: 0 10px"> * Verify if the current user has edit_theme_options capability.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * This capability is required to edit/view/delete templates.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * This capability is required to edit/view/delete global styles.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> if ( ! current_user_can( 'edit_theme_options' ) ) {
</span><span class="cx" style="display: block; padding: 0 10px"> return new WP_Error(
</span></span></pre></div>
<a id="trunksrcwpincludesrestapiendpointsclasswprestmenuitemscontrollerphp"></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/endpoints/class-wp-rest-menu-items-controller.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-menu-items-controller.php 2024-09-10 23:59:54 UTC (rev 59008)
+++ trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-menu-items-controller.php 2024-09-11 12:06:15 UTC (rev 59009)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -102,7 +102,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">- * Creates a single post.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * Creates a single nav menu item.
</ins><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><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -267,7 +267,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">- * Deletes a single menu item.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * Deletes a single nav menu item.
</ins><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><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -317,7 +317,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">- * Prepares a single post for create or update.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * Prepares a single nav menu item for create or update.
</ins><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><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -482,7 +482,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">- * Prepares a single post output for response.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * Prepares a single nav menu item output for response.
</ins><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><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -678,7 +678,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">- * Retrieves Link Description Objects that should be added to the Schema for the posts collection.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * Retrieves Link Description Objects that should be added to the Schema for the nav menu items collection.
</ins><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><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -705,7 +705,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">- * Retrieves the term's schema, conforming to JSON Schema.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * Retrieves the nav menu item's schema, conforming to JSON Schema.
</ins><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><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -926,7 +926,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">- * Retrieves the query params for the posts collection.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * Retrieves the query params for the nav menu items collection.
</ins><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></span></pre>
</div>
</div>
</body>
</html>