<!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>[49693] trunk/src: Docs: Upgrade more parameters in docblocks to used typed array notation.</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/49693">49693</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/49693","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>2020-11-24 21:25:46 +0000 (Tue, 24 Nov 2020)</dd>
</dl>
<pre style='padding-left: 1em; margin: 2em 0; border-left: 2px solid #ccc; line-height: 1.25; font-size: 105%; font-family: sans-serif'>Docs: Upgrade more parameters in docblocks to used typed array notation.
See <a href="https://core.trac.wordpress.org/ticket/51800">#51800</a>, <a href="https://core.trac.wordpress.org/ticket/41756">#41756</a></pre>
<h3>Modified Paths</h3>
<ul>
<li><a href="#trunksrcwpadminsetupconfigphp">trunk/src/wp-admin/setup-config.php</a></li>
<li><a href="#trunksrcwpincludescachephp">trunk/src/wp-includes/cache.php</a></li>
<li><a href="#trunksrcwpincludescategorytemplatephp">trunk/src/wp-includes/category-template.php</a></li>
<li><a href="#trunksrcwpincludesclasswpcommentqueryphp">trunk/src/wp-includes/class-wp-comment-query.php</a></li>
<li><a href="#trunksrcwpincludesclasswpnetworkqueryphp">trunk/src/wp-includes/class-wp-network-query.php</a></li>
<li><a href="#trunksrcwpincludesclasswpqueryphp">trunk/src/wp-includes/class-wp-query.php</a></li>
<li><a href="#trunksrcwpincludesclasswpsitequeryphp">trunk/src/wp-includes/class-wp-site-query.php</a></li>
<li><a href="#trunksrcwpincludesclasswpuserqueryphp">trunk/src/wp-includes/class-wp-user-query.php</a></li>
<li><a href="#trunksrcwpincludescommenttemplatephp">trunk/src/wp-includes/comment-template.php</a></li>
<li><a href="#trunksrcwpincludesfunctionsphp">trunk/src/wp-includes/functions.php</a></li>
<li><a href="#trunksrcwpincludesmssitephp">trunk/src/wp-includes/ms-site.php</a></li>
<li><a href="#trunksrcwpincludespostformatsphp">trunk/src/wp-includes/post-formats.php</a></li>
<li><a href="#trunksrcwpincludesposttemplatephp">trunk/src/wp-includes/post-template.php</a></li>
<li><a href="#trunksrcwpincludespostthumbnailtemplatephp">trunk/src/wp-includes/post-thumbnail-template.php</a></li>
<li><a href="#trunksrcwpincludespostphp">trunk/src/wp-includes/post.php</a></li>
<li><a href="#trunksrcwpincludesrestapiendpointsclasswprestcontrollerphp">trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-controller.php</a></li>
<li><a href="#trunksrcwpincludestaxonomyphp">trunk/src/wp-includes/taxonomy.php</a></li>
<li><a href="#trunksrcwpincludesuserphp">trunk/src/wp-includes/user.php</a></li>
</ul>
</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunksrcwpadminsetupconfigphp"></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/setup-config.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-admin/setup-config.php 2020-11-24 21:20:36 UTC (rev 49692)
+++ trunk/src/wp-admin/setup-config.php 2020-11-24 21:25:46 UTC (rev 49693)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -92,7 +92,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @global string $wp_local_package Locale code of the package.
</span><span class="cx" style="display: block; padding: 0 10px"> * @global WP_Locale $wp_locale WordPress date and time locale 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">- * @param string|array $body_classes
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param string|string[] $body_classes Class attribute values for the body tag.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function setup_config_display_header( $body_classes = array() ) {
</span><span class="cx" style="display: block; padding: 0 10px"> $body_classes = (array) $body_classes;
</span></span></pre></div>
<a id="trunksrcwpincludescachephp"></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/cache.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/cache.php 2020-11-24 21:20:36 UTC (rev 49692)
+++ trunk/src/wp-includes/cache.php 2020-11-24 21:25:46 UTC (rev 49693)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -247,7 +247,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @see WP_Object_Cache::add_global_groups()
</span><span class="cx" style="display: block; padding: 0 10px"> * @global WP_Object_Cache $wp_object_cache Object cache global 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 string|array $groups A group or an array of groups to add.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param string|string[] $groups A group or an array of groups to add.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function wp_cache_add_global_groups( $groups ) {
</span><span class="cx" style="display: block; padding: 0 10px"> global $wp_object_cache;
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -260,7 +260,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 2.6.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|array $groups A group or an array of groups to add.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param string|string[] $groups A group or an array of groups to add.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function wp_cache_add_non_persistent_groups( $groups ) {
</span><span class="cx" style="display: block; padding: 0 10px"> // Default cache doesn't persist so nothing to do here.
</span></span></pre></div>
<a id="trunksrcwpincludescategorytemplatephp"></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/category-template.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/category-template.php 2020-11-24 21:20:36 UTC (rev 49692)
+++ trunk/src/wp-includes/category-template.php 2020-11-24 21:25:46 UTC (rev 49693)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -696,8 +696,8 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * associated with the taxonomy.
</span><span class="cx" style="display: block; padding: 0 10px"> * @type bool $echo Whether or not to echo the return value. Default true.
</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 void|string|array Void if 'echo' argument is true, or on failure. Otherwise, tag cloud
- * as a string or an array, depending on 'format' argument.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @return void|string|string[] Void if 'echo' argument is true, or on failure. Otherwise, tag cloud
+ * as a string or an array, depending on 'format' argument.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function wp_tag_cloud( $args = '' ) {
</span><span class="cx" style="display: block; padding: 0 10px"> $defaults = array(
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -757,8 +757,8 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 2.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 string|array $return Tag cloud as a string or an array, depending on 'format' argument.
- * @param array $args An array of tag cloud arguments.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param string|string[] $return Tag cloud as a string or an array, depending on 'format' argument.
+ * @param array $args An array of tag cloud arguments.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> $return = apply_filters( 'wp_tag_cloud', $return, $args );
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -825,7 +825,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @type bool|int $show_count Whether to display the tag counts. Default 0. Accepts
</span><span class="cx" style="display: block; padding: 0 10px"> * 0, 1, or their bool equivalents.
</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 string|array Tag cloud as a string or an array, depending on 'format' argument.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @return string|string[] Tag cloud as a string or an array, depending on 'format' argument.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function wp_generate_tag_cloud( $tags, $args = '' ) {
</span><span class="cx" style="display: block; padding: 0 10px"> $defaults = array(
</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"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 4.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 array $tags_data An array of term data for term used to generate the tag cloud.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param array[] $tags_data An array of term data arrays for terms used to generate the tag cloud.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> $tags_data = apply_filters( 'wp_generate_tag_cloud_data', $tags_data );
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1030,11 +1030,11 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @see wp_generate_tag_cloud()
</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|string $return String containing the generated HTML tag cloud output
- * or an array of tag links if the 'format' argument
- * equals 'array'.
- * @param WP_Term[] $tags An array of terms used in the tag cloud.
- * @param array $args An array of wp_generate_tag_cloud() arguments.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param string[]|string $return String containing the generated HTML tag cloud output
+ * or an array of tag links if the 'format' argument
+ * equals 'array'.
+ * @param WP_Term[] $tags An array of terms used in the tag cloud.
+ * @param array $args An array of wp_generate_tag_cloud() arguments.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> return apply_filters( 'wp_generate_tag_cloud', $return, $tags, $args );
</span><span class="cx" style="display: block; padding: 0 10px"> } else {
</span></span></pre></div>
<a id="trunksrcwpincludesclasswpcommentqueryphp"></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-comment-query.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/class-wp-comment-query.php 2020-11-24 21:20:36 UTC (rev 49692)
+++ trunk/src/wp-includes/class-wp-comment-query.php 2020-11-24 21:25:46 UTC (rev 49693)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -228,17 +228,18 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * comment status. Default 'all'.
</span><span class="cx" style="display: block; padding: 0 10px"> * @type string|array $type Include comments of a given type, or array of types.
</span><span class="cx" style="display: block; padding: 0 10px"> * Accepts 'comment', 'pings' (includes 'pingback' and
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * 'trackback'), or anycustom type string. Default empty.
- * @type array $type__in Include comments from a given array of comment types.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * 'trackback'), or any custom type string. Default empty.
+ * @type string[] $type__in Include comments from a given array of comment types.
</ins><span class="cx" style="display: block; padding: 0 10px"> * Default empty.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @type array $type__not_in Exclude comments from a given array of comment types.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @type string[] $type__not_in Exclude comments from a given array of comment types.
</ins><span class="cx" style="display: block; padding: 0 10px"> * Default empty.
</span><span class="cx" style="display: block; padding: 0 10px"> * @type int $user_id Include comments for a specific user ID. Default empty.
</span><span class="cx" style="display: block; padding: 0 10px"> * @type bool|string $hierarchical Whether to include comment descendants in the results.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * 'threaded' returns a tree, with each comment's children
- * stored in a `children` property on the `WP_Comment`
- * object. 'flat' returns a flat array of found comments plus
- * their children. Pass `false` to leave out descendants.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * - 'threaded' returns a tree, with each comment's children
+ * stored in a `children` property on the `WP_Comment` object.
+ * - 'flat' returns a flat array of found comments plus
+ * their children.
+ * - Boolean `false` leaves out descendants.
</ins><span class="cx" style="display: block; padding: 0 10px"> * The parameter is ignored (forced to `false`) when
</span><span class="cx" style="display: block; padding: 0 10px"> * `$fields` is 'ids' or 'counts'. Accepts 'threaded',
</span><span class="cx" style="display: block; padding: 0 10px"> * 'flat', or false. Default: false.
</span></span></pre></div>
<a id="trunksrcwpincludesclasswpnetworkqueryphp"></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-network-query.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/class-wp-network-query.php 2020-11-24 21:20:36 UTC (rev 49692)
+++ trunk/src/wp-includes/class-wp-network-query.php 2020-11-24 21:25:46 UTC (rev 49693)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -104,11 +104,11 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * an empty array, or 'none' to disable `ORDER BY` clause. Default 'id'.
</span><span class="cx" style="display: block; padding: 0 10px"> * @type string $order How to order retrieved networks. Accepts 'ASC', 'DESC'. Default 'ASC'.
</span><span class="cx" style="display: block; padding: 0 10px"> * @type string $domain Limit results to those affiliated with a given domain. Default empty.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @type array $domain__in Array of domains to include affiliated networks for. Default empty.
- * @type array $domain__not_in Array of domains to exclude affiliated networks for. Default empty.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @type string[] $domain__in Array of domains to include affiliated networks for. Default empty.
+ * @type string[] $domain__not_in Array of domains to exclude affiliated networks for. Default empty.
</ins><span class="cx" style="display: block; padding: 0 10px"> * @type string $path Limit results to those affiliated with a given path. Default empty.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @type array $path__in Array of paths to include affiliated networks for. Default empty.
- * @type array $path__not_in Array of paths to exclude affiliated networks for. Default empty.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @type string[] $path__in Array of paths to include affiliated networks for. Default empty.
+ * @type string[] $path__not_in Array of paths to exclude affiliated networks for. Default empty.
</ins><span class="cx" style="display: block; padding: 0 10px"> * @type string $search Search term(s) to retrieve matching networks for. Default empty.
</span><span class="cx" style="display: block; padding: 0 10px"> * @type bool $update_network_cache Whether to prime the cache for found networks. Default true.
</span><span class="cx" style="display: block; padding: 0 10px"> * }
</span></span></pre></div>
<a id="trunksrcwpincludesclasswpqueryphp"></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-query.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/class-wp-query.php 2020-11-24 21:20:36 UTC (rev 49692)
+++ trunk/src/wp-includes/class-wp-query.php 2020-11-24 21:25:46 UTC (rev 49693)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -700,7 +700,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @type int[] $post__not_in An array of post IDs not to retrieve. Note: a string of comma-
</span><span class="cx" style="display: block; padding: 0 10px"> * separated IDs will NOT work.
</span><span class="cx" style="display: block; padding: 0 10px"> * @type string $post_mime_type The mime type of the post. Used for 'attachment' post_type.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @type array $post_name__in An array of post slugs that results must match.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @type string[] $post_name__in An array of post slugs that results must match.
</ins><span class="cx" style="display: block; padding: 0 10px"> * @type int $post_parent Page ID to retrieve child pages for. Use 0 to only retrieve
</span><span class="cx" style="display: block; padding: 0 10px"> * top-level pages.
</span><span class="cx" style="display: block; padding: 0 10px"> * @type int[] $post_parent__in An array containing parent page IDs to query child pages from.
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -724,8 +724,8 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @type int[] $tag__in An array of tag IDs (OR in).
</span><span class="cx" style="display: block; padding: 0 10px"> * @type int[] $tag__not_in An array of tag IDs (NOT in).
</span><span class="cx" style="display: block; padding: 0 10px"> * @type int $tag_id Tag id or comma-separated list of IDs.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @type array $tag_slug__and An array of tag slugs (AND in).
- * @type array $tag_slug__in An array of tag slugs (OR in). unless 'ignore_sticky_posts' is
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @type string[] $tag_slug__and An array of tag slugs (AND in).
+ * @type string[] $tag_slug__in An array of tag slugs (OR in). unless 'ignore_sticky_posts' is
</ins><span class="cx" style="display: block; padding: 0 10px"> * true. Note: a string of comma-separated IDs will NOT work.
</span><span class="cx" style="display: block; padding: 0 10px"> * @type array $tax_query An associative array of WP_Tax_Query arguments.
</span><span class="cx" style="display: block; padding: 0 10px"> * See WP_Tax_Query->__construct().
</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 2020-11-24 21:20:36 UTC (rev 49692)
+++ trunk/src/wp-includes/class-wp-site-query.php 2020-11-24 21:25:46 UTC (rev 49693)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -138,11 +138,11 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @type int[] $network__in Array of network IDs to include affiliated sites for. Default empty.
</span><span class="cx" style="display: block; padding: 0 10px"> * @type int[] $network__not_in Array of network IDs to exclude affiliated sites for. Default empty.
</span><span class="cx" style="display: block; padding: 0 10px"> * @type string $domain Limit results to those affiliated with a given domain. Default empty.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @type array $domain__in Array of domains to include affiliated sites for. Default empty.
- * @type array $domain__not_in Array of domains to exclude affiliated sites for. Default empty.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @type string[] $domain__in Array of domains to include affiliated sites for. Default empty.
+ * @type string[] $domain__not_in Array of domains to exclude affiliated sites for. Default empty.
</ins><span class="cx" style="display: block; padding: 0 10px"> * @type string $path Limit results to those affiliated with a given path. Default empty.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @type array $path__in Array of paths to include affiliated sites for. Default empty.
- * @type array $path__not_in Array of paths to exclude affiliated sites for. Default empty.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @type string[] $path__in Array of paths to include affiliated sites for. Default empty.
+ * @type string[] $path__not_in Array of paths to exclude affiliated sites for. Default empty.
</ins><span class="cx" style="display: block; padding: 0 10px"> * @type int $public Limit results to public sites. Accepts '1' or '0'. Default empty.
</span><span class="cx" style="display: block; padding: 0 10px"> * @type int $archived Limit results to archived sites. Accepts '1' or '0'. Default empty.
</span><span class="cx" style="display: block; padding: 0 10px"> * @type int $mature Limit results to mature sites. Accepts '1' or '0'. Default empty.
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -149,8 +149,8 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @type int $spam Limit results to spam sites. Accepts '1' or '0'. Default empty.
</span><span class="cx" style="display: block; padding: 0 10px"> * @type int $deleted Limit results to deleted sites. Accepts '1' or '0'. Default empty.
</span><span class="cx" style="display: block; padding: 0 10px"> * @type int $lang_id Limit results to a language ID. Default empty.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @type array $lang__in Array of language IDs to include affiliated sites for. Default empty.
- * @type array $lang__not_in Array of language IDs to exclude affiliated sites for. Default empty.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @type string[] $lang__in Array of language IDs to include affiliated sites for. Default empty.
+ * @type string[] $lang__not_in Array of language IDs to exclude affiliated sites for. Default empty.
</ins><span class="cx" style="display: block; padding: 0 10px"> * @type string $search Search term(s) to retrieve matching sites for. Default empty.
</span><span class="cx" style="display: block; padding: 0 10px"> * @type array $search_columns Array of column names to be searched. Accepts 'domain' and 'path'.
</span><span class="cx" style="display: block; padding: 0 10px"> * Default empty array.
</span></span></pre></div>
<a id="trunksrcwpincludesclasswpuserqueryphp"></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-user-query.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/class-wp-user-query.php 2020-11-24 21:20:36 UTC (rev 49692)
+++ trunk/src/wp-includes/class-wp-user-query.php 2020-11-24 21:25:46 UTC (rev 49693)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -144,9 +144,9 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @type string|array $role An array or a comma-separated list of role names that users must match
</span><span class="cx" style="display: block; padding: 0 10px"> * to be included in results. Note that this is an inclusive list: users
</span><span class="cx" style="display: block; padding: 0 10px"> * must match *each* role. Default empty.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @type array $role__in An array of role names. Matched users must have at least one of these
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @type string[] $role__in An array of role names. Matched users must have at least one of these
</ins><span class="cx" style="display: block; padding: 0 10px"> * roles. Default empty array.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @type array $role__not_in An array of role names to exclude. Users matching one or more of these
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @type string[] $role__not_in An array of role names to exclude. Users matching one or more of these
</ins><span class="cx" style="display: block; padding: 0 10px"> * roles will not be included in results. Default empty array.
</span><span class="cx" style="display: block; padding: 0 10px"> * @type string $meta_key User meta key. Default empty.
</span><span class="cx" style="display: block; padding: 0 10px"> * @type string $meta_value User meta value. Default empty.
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -159,7 +159,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @type string $search Search keyword. Searches for possible string matches on columns.
</span><span class="cx" style="display: block; padding: 0 10px"> * When `$search_columns` is left empty, it tries to determine which
</span><span class="cx" style="display: block; padding: 0 10px"> * column to search in based on search string. Default empty.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @type array $search_columns Array of column names to be searched. Accepts 'ID', 'user_login',
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @type string[] $search_columns Array of column names to be searched. Accepts 'ID', 'user_login',
</ins><span class="cx" style="display: block; padding: 0 10px"> * 'user_email', 'user_url', 'user_nicename', 'display_name'.
</span><span class="cx" style="display: block; padding: 0 10px"> * Default empty array.
</span><span class="cx" style="display: block; padding: 0 10px"> * @type string|array $orderby Field(s) to sort the retrieved users by. May be a single value,
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -197,14 +197,14 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * published posts in those post types. `true` is an alias for all
</span><span class="cx" style="display: block; padding: 0 10px"> * public post types.
</span><span class="cx" style="display: block; padding: 0 10px"> * @type string $nicename The user nicename. Default empty.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @type array $nicename__in An array of nicenames to include. Users matching one of these
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @type string[] $nicename__in An array of nicenames to include. Users matching one of these
</ins><span class="cx" style="display: block; padding: 0 10px"> * nicenames will be included in results. Default empty array.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @type array $nicename__not_in An array of nicenames to exclude. Users matching one of these
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @type string[] $nicename__not_in An array of nicenames to exclude. Users matching one of these
</ins><span class="cx" style="display: block; padding: 0 10px"> * nicenames will not be included in results. Default empty array.
</span><span class="cx" style="display: block; padding: 0 10px"> * @type string $login The user login. Default empty.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @type array $login__in An array of logins to include. Users matching one of these
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @type string[] $login__in An array of logins to include. Users matching one of these
</ins><span class="cx" style="display: block; padding: 0 10px"> * logins will be included in results. Default empty array.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @type array $login__not_in An array of logins to exclude. Users matching one of these
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @type string[] $login__not_in An array of logins to exclude. Users matching one of these
</ins><span class="cx" style="display: block; padding: 0 10px"> * logins will not be included in results. Default empty array.
</span><span class="cx" style="display: block; padding: 0 10px"> * }
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span></span></pre></div>
<a id="trunksrcwpincludescommenttemplatephp"></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/comment-template.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/comment-template.php 2020-11-24 21:20:36 UTC (rev 49692)
+++ trunk/src/wp-includes/comment-template.php 2020-11-24 21:25:46 UTC (rev 49693)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -422,12 +422,12 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 2.7.0
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 4.4.0 Added the ability for `$comment` to also accept a WP_Comment 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">- * @param string|array $class Optional. One or more classes to add to the class list.
- * Default empty.
- * @param int|WP_Comment $comment Comment ID or WP_Comment object. Default current comment.
- * @param int|WP_Post $post_id Post ID or WP_Post object. Default current post.
- * @param bool $echo Optional. Whether to echo or return the output.
- * Default true.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param string|string[] $class Optional. One or more classes to add to the class list.
+ * Default empty.
+ * @param int|WP_Comment $comment Comment ID or WP_Comment object. Default current comment.
+ * @param int|WP_Post $post_id Post ID or WP_Post object. Default current post.
+ * @param bool $echo Optional. Whether to echo or return the output.
+ * Default true.
</ins><span class="cx" style="display: block; padding: 0 10px"> * @return void|string Void if `$echo` argument is true, comment classes if `$echo` is false.
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function comment_class( $class = '', $comment = null, $post_id = null, $echo = true ) {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -451,9 +451,9 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @global int $comment_depth
</span><span class="cx" style="display: block; padding: 0 10px"> * @global int $comment_thread_alt
</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|array $class Optional. One or more classes to add to the class list. Default empty.
- * @param int|WP_Comment $comment_id Comment ID or WP_Comment object. Default current comment.
- * @param int|WP_Post $post_id Post ID or WP_Post object. Default current post.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param string|string[] $class Optional. One or more classes to add to the class list. Default empty.
+ * @param int|WP_Comment $comment_id Comment ID or WP_Comment object. Default current comment.
+ * @param int|WP_Post $post_id Post ID or WP_Post object. Default current post.
</ins><span class="cx" style="display: block; padding: 0 10px"> * @return string[] An array of classes.
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function get_comment_class( $class = '', $comment_id = null, $post_id = null ) {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -530,7 +530,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 2.7.0
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @param string[] $classes An array of comment classes.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @param string $class A comma-separated list of additional classes added to the list.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param string[] $class An array of additional classes added to the list.
</ins><span class="cx" style="display: block; padding: 0 10px"> * @param int $comment_id The comment ID.
</span><span class="cx" style="display: block; padding: 0 10px"> * @param WP_Comment $comment The comment object.
</span><span class="cx" style="display: block; padding: 0 10px"> * @param int|WP_Post $post_id The post ID or WP_Post object.
</span></span></pre></div>
<a id="trunksrcwpincludesfunctionsphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/wp-includes/functions.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/functions.php 2020-11-24 21:20:36 UTC (rev 49692)
+++ trunk/src/wp-includes/functions.php 2020-11-24 21:25:46 UTC (rev 49693)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1159,8 +1159,8 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 1.5.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|array $key Query key or keys to remove.
- * @param bool|string $query Optional. When false uses the current URL. Default false.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param string|string[] $key Query key or keys to remove.
+ * @param false|string $query Optional. When false uses the current URL. Default false.
</ins><span class="cx" style="display: block; padding: 0 10px"> * @return string New URL query string.
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function remove_query_arg( $key, $query = false ) {
</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 2020-11-24 21:20:36 UTC (rev 49692)
+++ trunk/src/wp-includes/ms-site.php 2020-11-24 21:25:46 UTC (rev 49693)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -437,11 +437,11 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @type int[] $network__in Array of network IDs to include affiliated sites for. Default empty.
</span><span class="cx" style="display: block; padding: 0 10px"> * @type int[] $network__not_in Array of network IDs to exclude affiliated sites for. Default empty.
</span><span class="cx" style="display: block; padding: 0 10px"> * @type string $domain Limit results to those affiliated with a given domain. Default empty.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @type array $domain__in Array of domains to include affiliated sites for. Default empty.
- * @type array $domain__not_in Array of domains to exclude affiliated sites for. Default empty.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @type string[] $domain__in Array of domains to include affiliated sites for. Default empty.
+ * @type string[] $domain__not_in Array of domains to exclude affiliated sites for. Default empty.
</ins><span class="cx" style="display: block; padding: 0 10px"> * @type string $path Limit results to those affiliated with a given path. Default empty.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @type array $path__in Array of paths to include affiliated sites for. Default empty.
- * @type array $path__not_in Array of paths to exclude affiliated sites for. Default empty.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @type string[] $path__in Array of paths to include affiliated sites for. Default empty.
+ * @type string[] $path__not_in Array of paths to exclude affiliated sites for. Default empty.
</ins><span class="cx" style="display: block; padding: 0 10px"> * @type int $public Limit results to public sites. Accepts '1' or '0'. Default empty.
</span><span class="cx" style="display: block; padding: 0 10px"> * @type int $archived Limit results to archived sites. Accepts '1' or '0'. Default empty.
</span><span class="cx" style="display: block; padding: 0 10px"> * @type int $mature Limit results to mature sites. Accepts '1' or '0'. Default empty.
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -448,10 +448,10 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @type int $spam Limit results to spam sites. Accepts '1' or '0'. Default empty.
</span><span class="cx" style="display: block; padding: 0 10px"> * @type int $deleted Limit results to deleted sites. Accepts '1' or '0'. Default empty.
</span><span class="cx" style="display: block; padding: 0 10px"> * @type int $lang_id Limit results to a language ID. Default empty.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @type array $lang__in Array of language IDs to include affiliated sites for. Default empty.
- * @type array $lang__not_in Array of language IDs to exclude affiliated sites for. Default empty.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @type string[] $lang__in Array of language IDs to include affiliated sites for. Default empty.
+ * @type string[] $lang__not_in Array of language IDs to exclude affiliated sites for. Default empty.
</ins><span class="cx" style="display: block; padding: 0 10px"> * @type string $search Search term(s) to retrieve matching sites for. Default empty.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @type array $search_columns Array of column names to be searched. Accepts 'domain' and 'path'.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @type string[] $search_columns Array of column names to be searched. Accepts 'domain' and 'path'.
</ins><span class="cx" style="display: block; padding: 0 10px"> * Default empty array.
</span><span class="cx" style="display: block; padding: 0 10px"> * @type bool $update_site_cache Whether to prime the cache for found sites. Default true.
</span><span class="cx" style="display: block; padding: 0 10px"> * }
</span></span></pre></div>
<a id="trunksrcwpincludespostformatsphp"></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-formats.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/post-formats.php 2020-11-24 21:20:36 UTC (rev 49692)
+++ trunk/src/wp-includes/post-formats.php 2020-11-24 21:25:46 UTC (rev 49693)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -41,7 +41,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 3.1.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|array $format Optional. The format or formats to check.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param string|string[] $format Optional. The format or formats to check.
</ins><span class="cx" style="display: block; padding: 0 10px"> * @param WP_Post|int|null $post Optional. The post to check. Defaults to the current post in the loop.
</span><span class="cx" style="display: block; padding: 0 10px"> * @return bool True if the post has any of the given formats (or any format, if no format specified),
</span><span class="cx" style="display: block; padding: 0 10px"> * false otherwise.
</span></span></pre></div>
<a id="trunksrcwpincludesposttemplatephp"></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-template.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/post-template.php 2020-11-24 21:20:36 UTC (rev 49692)
+++ trunk/src/wp-includes/post-template.php 2020-11-24 21:25:46 UTC (rev 49693)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -451,8 +451,8 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 2.7.0
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @param string|array $class One or more classes to add to the class list.
- * @param int|WP_Post $post_id Optional. Post ID or post object. Defaults to the global `$post`.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param string|string[] $class One or more classes to add to the class list.
+ * @param int|WP_Post $post_id Optional. Post ID or post object. Defaults to the global `$post`.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function post_class( $class = '', $post_id = null ) {
</span><span class="cx" style="display: block; padding: 0 10px"> // Separates classes with a single space, collates classes for post DIV.
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1749,7 +1749,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 4.2.0 The `$template` parameter was changed to also accept an array of page templates.
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 4.7.0 Now works with any post type, not just pages.
</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|array $template The specific template filename or array of templates to match.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param string|string[] $template The specific template filename or array of templates to match.
</ins><span class="cx" style="display: block; padding: 0 10px"> * @return bool True on success, false on failure.
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function is_page_template( $template = '' ) {
</span></span></pre></div>
<a id="trunksrcwpincludespostthumbnailtemplatephp"></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-thumbnail-template.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/post-thumbnail-template.php 2020-11-24 21:20:36 UTC (rev 49692)
+++ trunk/src/wp-includes/post-thumbnail-template.php 2020-11-24 21:25:46 UTC (rev 49693)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -215,7 +215,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 4.4.0
</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 Optional. Post ID or WP_Post object. Default is global `$post`.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @param string|array $size Optional. Registered image size to retrieve the source for or a flat
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param string|int[] $size Optional. Registered image size to retrieve the source for or a flat
</ins><span class="cx" style="display: block; padding: 0 10px"> * array of height and width dimensions. Default 'post-thumbnail'.
</span><span class="cx" style="display: block; padding: 0 10px"> * @return string|false Post thumbnail URL or false if no URL is available.
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -234,7 +234,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 4.4.0
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @param string|array $size Optional. Image size to use. Accepts any valid image size,
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param string|int[] $size Optional. Image size to use. Accepts any valid image size,
</ins><span class="cx" style="display: block; padding: 0 10px"> * or an array of width and height values in pixels (in that order).
</span><span class="cx" style="display: block; padding: 0 10px"> * Default 'post-thumbnail'.
</span><span class="cx" style="display: block; padding: 0 10px"> */
</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 2020-11-24 21:20:36 UTC (rev 49692)
+++ trunk/src/wp-includes/post.php 2020-11-24 21:25:46 UTC (rev 49693)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1307,7 +1307,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @type string $label Name of the post type shown in the menu. Usually plural.
</span><span class="cx" style="display: block; padding: 0 10px"> * Default is value of $labels['name'].
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @type array $labels An array of labels for this post type. If not set, post
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @type string[] $labels An array of labels for this post type. If not set, post
</ins><span class="cx" style="display: block; padding: 0 10px"> * labels are inherited for non-hierarchical types and page
</span><span class="cx" style="display: block; padding: 0 10px"> * labels for hierarchical ones. See get_post_type_labels() for a full
</span><span class="cx" style="display: block; padding: 0 10px"> * list of supported labels.
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1356,7 +1356,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * May be passed as an array to allow for alternative plurals when using
</span><span class="cx" style="display: block; padding: 0 10px"> * this argument as a base to construct the capabilities, e.g.
</span><span class="cx" style="display: block; padding: 0 10px"> * array('story', 'stories'). Default 'post'.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @type array $capabilities Array of capabilities for this post type. $capability_type is used
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @type string[] $capabilities Array of capabilities for this post type. $capability_type is used
</ins><span class="cx" style="display: block; padding: 0 10px"> * as a base to construct capabilities by default.
</span><span class="cx" style="display: block; padding: 0 10px"> * See get_post_type_capabilities().
</span><span class="cx" style="display: block; padding: 0 10px"> * @type bool $map_meta_cap Whether to use the internal default meta capability handling.
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1375,7 +1375,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @type callable $register_meta_box_cb Provide a callback function that sets up the meta boxes for the
</span><span class="cx" style="display: block; padding: 0 10px"> * edit form. Do remove_meta_box() and add_meta_box() calls in the
</span><span class="cx" style="display: block; padding: 0 10px"> * callback. Default null.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @type array $taxonomies An array of taxonomy identifiers that will be registered for the
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @type string[] $taxonomies An array of taxonomy identifiers that will be registered for the
</ins><span class="cx" style="display: block; padding: 0 10px"> * post type. Taxonomies can be registered later with register_taxonomy()
</span><span class="cx" style="display: block; padding: 0 10px"> * or register_taxonomy_for_object_type().
</span><span class="cx" style="display: block; padding: 0 10px"> * Default empty array.
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -2722,8 +2722,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">- * @param string|array $mime_type Optional. Array or comma-separated list of
- * MIME patterns. Default empty.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param string|string[] $mime_type Optional. Array or comma-separated list of
+ * MIME patterns. Default empty.
</ins><span class="cx" style="display: block; padding: 0 10px"> * @return object An object containing the attachment counts by mime type.
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function wp_count_attachments( $mime_type = '' ) {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -2863,9 +2863,9 @@
</span><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><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @param string|array $wildcard_mime_types Mime types, e.g. audio/mpeg or image (same as image/*)
- * or flash (same as *flash*).
- * @param string|array $real_mime_types Real post mime type values.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param string|string[] $wildcard_mime_types Mime types, e.g. audio/mpeg or image (same as image/*)
+ * or flash (same as *flash*).
+ * @param string|string[] $real_mime_types Real post mime type values.
</ins><span class="cx" style="display: block; padding: 0 10px"> * @return array array(wildcard=>array(real types)).
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function wp_match_mime_types( $wildcard_mime_types, $real_mime_types ) {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -2915,10 +2915,10 @@
</span><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><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @param string|array $post_mime_types List of mime types or comma separated string
- * of mime types.
- * @param string $table_alias Optional. Specify a table alias, if needed.
- * Default empty.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param string|string[] $post_mime_types List of mime types or comma separated string
+ * of mime types.
+ * @param string $table_alias Optional. Specify a table alias, if needed.
+ * Default empty.
</ins><span class="cx" style="display: block; padding: 0 10px"> * @return string The SQL AND clause for mime searching.
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function wp_post_mime_type_where( $post_mime_types, $table_alias = '' ) {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -3520,11 +3520,11 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 2.8.0
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @param int $post_id Optional. The Post ID. Does not default to the ID of the
- * global $post. Default 0.
- * @param string|array $taxonomy Optional. The taxonomy slug or array of slugs for which
- * to retrieve terms. Default 'post_tag'.
- * @param array $args {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param int $post_id Optional. The Post ID. Does not default to the ID of the
+ * global $post. Default 0.
+ * @param string|string[] $taxonomy Optional. The taxonomy slug or array of slugs for which
+ * to retrieve terms. Default 'post_tag'.
+ * @param array $args {
</ins><span class="cx" style="display: block; padding: 0 10px"> * Optional. Term query parameters. See WP_Term_Query::__construct() for supported arguments.
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @type string $fields Term fields to retrieve. Default 'all'.
</span></span></pre></div>
<a id="trunksrcwpincludesrestapiendpointsclasswprestcontrollerphp"></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-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-controller.php 2020-11-24 21:20:36 UTC (rev 49692)
+++ trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-controller.php 2020-11-24 21:25:46 UTC (rev 49693)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -552,7 +552,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 4.9.6
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @param WP_REST_Request $request Full details about the request.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @return array Fields to be included in the response.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @return string[] Fields to be included in the response.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function get_fields_for_response( $request ) {
</span><span class="cx" style="display: block; padding: 0 10px"> $schema = $this->get_item_schema();
</span></span></pre></div>
<a id="trunksrcwpincludestaxonomyphp"></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/taxonomy.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/taxonomy.php 2020-11-24 21:20:36 UTC (rev 49692)
+++ trunk/src/wp-includes/taxonomy.php 2020-11-24 21:25:46 UTC (rev 49693)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -344,7 +344,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @param array|string $args {
</span><span class="cx" style="display: block; padding: 0 10px"> * Optional. Array or query string of arguments for registering a taxonomy.
</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 $labels An array of labels for this taxonomy. By default, Tag labels are
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @type string[] $labels An array of labels for this taxonomy. By default, Tag labels are
</ins><span class="cx" style="display: block; padding: 0 10px"> * used for non-hierarchical taxonomies, and Category labels are used
</span><span class="cx" style="display: block; padding: 0 10px"> * for hierarchical taxonomies. See accepted values in
</span><span class="cx" style="display: block; padding: 0 10px"> * get_taxonomy_labels(). Default empty array.
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -382,7 +382,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @type callable $meta_box_sanitize_cb Callback function for sanitizing taxonomy data saved from a meta
</span><span class="cx" style="display: block; padding: 0 10px"> * box. If no callback is defined, an appropriate one is determined
</span><span class="cx" style="display: block; padding: 0 10px"> * based on the value of `$meta_box_cb`.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @type array $capabilities {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @type string[] $capabilities {
</ins><span class="cx" style="display: block; padding: 0 10px"> * Array of capabilities for this taxonomy.
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @type string $manage_terms Default 'manage_categories'.
</span></span></pre></div>
<a id="trunksrcwpincludesuserphp"></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/user.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/user.php 2020-11-24 21:20:36 UTC (rev 49692)
+++ trunk/src/wp-includes/user.php 2020-11-24 21:25:46 UTC (rev 49693)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1279,9 +1279,9 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @type string|array $role An array or a comma-separated list of role names that users must
</span><span class="cx" style="display: block; padding: 0 10px"> * match to be included in results. Note that this is an inclusive
</span><span class="cx" style="display: block; padding: 0 10px"> * list: users must match *each* role. Default empty.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @type array $role__in An array of role names. Matched users must have at least one of
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @type string[] $role__in An array of role names. Matched users must have at least one of
</ins><span class="cx" style="display: block; padding: 0 10px"> * these roles. Default empty array.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @type array $role__not_in An array of role names to exclude. Users matching one or more of
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @type string[] $role__not_in An array of role names to exclude. Users matching one or more of
</ins><span class="cx" style="display: block; padding: 0 10px"> * these roles will not be included in results. Default empty array.
</span><span class="cx" style="display: block; padding: 0 10px"> * }
</span><span class="cx" style="display: block; padding: 0 10px"> * @return string HTML dropdown list of users.
</span></span></pre>
</div>
</div>
</body>
</html>