<!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>[56586] trunk/src: Coding Standards: Restore more descriptive variable names in a few class methods.</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/56586">56586</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/56586","name":"Review Commit"}}</script></dd>
<dt style="float: left; width: 6em; font-weight: bold">Author</dt> <dd>SergeyBiryukov</dd>
<dt style="float: left; width: 6em; font-weight: bold">Date</dt> <dd>2023-09-14 12:44:23 +0000 (Thu, 14 Sep 2023)</dd>
</dl>
<pre style='padding-left: 1em; margin: 2em 0; border-left: 2px solid #ccc; line-height: 1.25; font-size: 105%; font-family: sans-serif'>Coding Standards: Restore more descriptive variable names in a few class methods.
When various methods parameters in child classes were renamed to `$item` to match the parent class for PHP 8 named parameter support, most of the methods restored the more descriptive, specific name at the beginning for better readability, with several exceptions for methods consisting only of a few lines.
To avoid confusion about why some methods do that and some don't, this commit aims to bring more consistency to the code, specifically in list tables' `::column_default()` methods.
Follow-up to <a href="https://core.trac.wordpress.org/changeset/51728">[51728]</a>, <a href="https://core.trac.wordpress.org/changeset/51737">[51737]</a>, <a href="https://core.trac.wordpress.org/changeset/51786">[51786]</a>.
See <a href="https://core.trac.wordpress.org/ticket/58831">#58831</a>.</pre>
<h3>Modified Paths</h3>
<ul>
<li><a href="#trunksrcwpadminincludesclasswalkernavmenueditphp">trunk/src/wp-admin/includes/class-walker-nav-menu-edit.php</a></li>
<li><a href="#trunksrcwpadminincludesclasswpcommentslisttablephp">trunk/src/wp-admin/includes/class-wp-comments-list-table.php</a></li>
<li><a href="#trunksrcwpadminincludesclasswplinkslisttablephp">trunk/src/wp-admin/includes/class-wp-links-list-table.php</a></li>
<li><a href="#trunksrcwpadminincludesclasswpmedialisttablephp">trunk/src/wp-admin/includes/class-wp-media-list-table.php</a></li>
<li><a href="#trunksrcwpadminincludesclasswpmssiteslisttablephp">trunk/src/wp-admin/includes/class-wp-ms-sites-list-table.php</a></li>
<li><a href="#trunksrcwpadminincludesclasswpmsthemeslisttablephp">trunk/src/wp-admin/includes/class-wp-ms-themes-list-table.php</a></li>
<li><a href="#trunksrcwpadminincludesclasswpmsuserslisttablephp">trunk/src/wp-admin/includes/class-wp-ms-users-list-table.php</a></li>
<li><a href="#trunksrcwpadminincludesclasswppostslisttablephp">trunk/src/wp-admin/includes/class-wp-posts-list-table.php</a></li>
<li><a href="#trunksrcwpadminincludesclasswptermslisttablephp">trunk/src/wp-admin/includes/class-wp-terms-list-table.php</a></li>
<li><a href="#trunksrcwpincludesclasswalkercategorydropdownphp">trunk/src/wp-includes/class-walker-category-dropdown.php</a></li>
<li><a href="#trunksrcwpincludesclasswalkerpagedropdownphp">trunk/src/wp-includes/class-walker-page-dropdown.php</a></li>
<li><a href="#trunksrcwpincludesclasswalkerpagephp">trunk/src/wp-includes/class-walker-page.php</a></li>
<li><a href="#trunksrcwpincludesrestapiendpointsclasswprestattachmentscontrollerphp">trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php</a></li>
<li><a href="#trunksrcwpincludesrestapiendpointsclasswprestautosavescontrollerphp">trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-autosaves-controller.php</a></li>
<li><a href="#trunksrcwpincludesrestapiendpointsclasswprestblocktypescontrollerphp">trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-block-types-controller.php</a></li>
<li><a href="#trunksrcwpincludesrestapiendpointsclasswprestcommentscontrollerphp">trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.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="#trunksrcwpincludesrestapiendpointsclasswprestmenulocationscontrollerphp">trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-menu-locations-controller.php</a></li>
<li><a href="#trunksrcwpincludesrestapiendpointsclasswprestpatterndirectorycontrollerphp">trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-pattern-directory-controller.php</a></li>
<li><a href="#trunksrcwpincludesrestapiendpointsclasswprestpoststatusescontrollerphp">trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-post-statuses-controller.php</a></li>
<li><a href="#trunksrcwpincludesrestapiendpointsclasswprestposttypescontrollerphp">trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-post-types-controller.php</a></li>
<li><a href="#trunksrcwpincludesrestapiendpointsclasswprestpostscontrollerphp">trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php</a></li>
<li><a href="#trunksrcwpincludesrestapiendpointsclasswprestrevisionscontrollerphp">trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-revisions-controller.php</a></li>
<li><a href="#trunksrcwpincludesrestapiendpointsclasswprestsearchcontrollerphp">trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-search-controller.php</a></li>
<li><a href="#trunksrcwpincludesrestapiendpointsclasswprestsidebarscontrollerphp">trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-sidebars-controller.php</a></li>
<li><a href="#trunksrcwpincludesrestapiendpointsclasswpresttaxonomiescontrollerphp">trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-taxonomies-controller.php</a></li>
<li><a href="#trunksrcwpincludesrestapiendpointsclasswprestthemescontrollerphp">trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-themes-controller.php</a></li>
<li><a href="#trunksrcwpincludesrestapiendpointsclasswprestuserscontrollerphp">trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php</a></li>
<li><a href="#trunksrcwpincludesrestapiendpointsclasswprestwidgettypescontrollerphp">trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-widget-types-controller.php</a></li>
<li><a href="#trunksrcwpincludessitemapsprovidersclasswpsitemapstaxonomiesphp">trunk/src/wp-includes/sitemaps/providers/class-wp-sitemaps-taxonomies.php</a></li>
</ul>
</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunksrcwpadminincludesclasswalkernavmenueditphp"></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/class-walker-nav-menu-edit.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-admin/includes/class-walker-nav-menu-edit.php 2023-09-14 12:38:04 UTC (rev 56585)
+++ trunk/src/wp-admin/includes/class-walker-nav-menu-edit.php 2023-09-14 12:44:23 UTC (rev 56586)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -61,7 +61,8 @@
</span><span class="cx" style="display: block; padding: 0 10px"> global $_wp_nav_menu_max_depth;
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> // Restores the more descriptive, specific name for use within this method.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $menu_item = $data_object;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $menu_item = $data_object;
+
</ins><span class="cx" style="display: block; padding: 0 10px"> $_wp_nav_menu_max_depth = $depth > $_wp_nav_menu_max_depth ? $depth : $_wp_nav_menu_max_depth;
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> ob_start();
</span></span></pre></div>
<a id="trunksrcwpadminincludesclasswpcommentslisttablephp"></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/class-wp-comments-list-table.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-admin/includes/class-wp-comments-list-table.php 2023-09-14 12:38:04 UTC (rev 56585)
+++ trunk/src/wp-admin/includes/class-wp-comments-list-table.php 2023-09-14 12:44:23 UTC (rev 56586)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -685,7 +685,8 @@
</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"> // Restores the more descriptive, specific name for use within this method.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $comment = $item;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $comment = $item;
+
</ins><span class="cx" style="display: block; padding: 0 10px"> $the_comment_status = wp_get_comment_status( $comment );
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> $output = '';
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1087,6 +1088,9 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @param string $column_name The custom column's name.
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function column_default( $item, $column_name ) {
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ // Restores the more descriptive, specific name for use within this method.
+ $comment = $item;
+
</ins><span class="cx" style="display: block; padding: 0 10px"> /**
</span><span class="cx" style="display: block; padding: 0 10px"> * Fires when the default column output is displayed for a single row.
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1095,6 +1099,6 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @param string $column_name The custom column's name.
</span><span class="cx" style="display: block; padding: 0 10px"> * @param string $comment_id The comment ID as a numeric string.
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- do_action( 'manage_comments_custom_column', $column_name, $item->comment_ID );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ do_action( 'manage_comments_custom_column', $column_name, $comment->comment_ID );
</ins><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="trunksrcwpadminincludesclasswplinkslisttablephp"></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/class-wp-links-list-table.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-admin/includes/class-wp-links-list-table.php 2023-09-14 12:38:04 UTC (rev 56585)
+++ trunk/src/wp-admin/includes/class-wp-links-list-table.php 2023-09-14 12:44:23 UTC (rev 56586)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -290,6 +290,9 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @param string $column_name Current column name.
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function column_default( $item, $column_name ) {
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ // Restores the more descriptive, specific name for use within this method.
+ $link = $item;
+
</ins><span class="cx" style="display: block; padding: 0 10px"> /**
</span><span class="cx" style="display: block; padding: 0 10px"> * Fires for each registered custom link column.
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -298,7 +301,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @param string $column_name Name of the custom column.
</span><span class="cx" style="display: block; padding: 0 10px"> * @param int $link_id Link ID.
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- do_action( 'manage_link_custom_column', $column_name, $item->link_id );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ do_action( 'manage_link_custom_column', $column_name, $link->link_id );
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> public function display_rows() {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -332,7 +335,8 @@
</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"> // Restores the more descriptive, specific name for use within this method.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $link = $item;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $link = $item;
+
</ins><span class="cx" style="display: block; padding: 0 10px"> $edit_link = get_edit_bookmark_link( $link );
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> $actions = array();
</span></span></pre></div>
<a id="trunksrcwpadminincludesclasswpmedialisttablephp"></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/class-wp-media-list-table.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-admin/includes/class-wp-media-list-table.php 2023-09-14 12:38:04 UTC (rev 56585)
+++ trunk/src/wp-admin/includes/class-wp-media-list-table.php 2023-09-14 12:44:23 UTC (rev 56586)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -880,11 +880,11 @@
</span><span class="cx" style="display: block; padding: 0 10px"> return '';
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ // Restores the more descriptive, specific name for use within this method.
+ $post = $item;
+
</ins><span class="cx" style="display: block; padding: 0 10px"> $att_title = _draft_or_post_title();
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $actions = $this->_get_row_actions(
- $item, // WP_Post object for an attachment.
- $att_title
- );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $actions = $this->_get_row_actions( $post, $att_title );
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> return $this->row_actions( $actions );
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span></span></pre></div>
<a id="trunksrcwpadminincludesclasswpmssiteslisttablephp"></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/class-wp-ms-sites-list-table.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-admin/includes/class-wp-ms-sites-list-table.php 2023-09-14 12:38:04 UTC (rev 56585)
+++ trunk/src/wp-admin/includes/class-wp-ms-sites-list-table.php 2023-09-14 12:44:23 UTC (rev 56586)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -597,6 +597,9 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @param string $column_name Current column name.
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function column_default( $item, $column_name ) {
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ // Restores the more descriptive, specific name for use within this method.
+ $blog = $item;
+
</ins><span class="cx" style="display: block; padding: 0 10px"> /**
</span><span class="cx" style="display: block; padding: 0 10px"> * Fires for each registered custom column in the Sites list table.
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -605,7 +608,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @param string $column_name The name of the column to display.
</span><span class="cx" style="display: block; padding: 0 10px"> * @param int $blog_id The site ID.
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- do_action( 'manage_sites_custom_column', $column_name, $item['blog_id'] );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ do_action( 'manage_sites_custom_column', $column_name, $blog['blog_id'] );
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -714,7 +717,8 @@
</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"> // Restores the more descriptive, specific name for use within this method.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $blog = $item;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $blog = $item;
+
</ins><span class="cx" style="display: block; padding: 0 10px"> $blogname = untrailingslashit( $blog['domain'] . $blog['path'] );
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> // Preordered.
</span></span></pre></div>
<a id="trunksrcwpadminincludesclasswpmsthemeslisttablephp"></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/class-wp-ms-themes-list-table.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-admin/includes/class-wp-ms-themes-list-table.php 2023-09-14 12:38:04 UTC (rev 56585)
+++ trunk/src/wp-admin/includes/class-wp-ms-themes-list-table.php 2023-09-14 12:44:23 UTC (rev 56586)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -509,7 +509,8 @@
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function column_cb( $item ) {
</span><span class="cx" style="display: block; padding: 0 10px"> // Restores the more descriptive, specific name for use within this method.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $theme = $item;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $theme = $item;
+
</ins><span class="cx" style="display: block; padding: 0 10px"> $checkbox_id = 'checkbox_' . md5( $theme->get( 'Name' ) );
</span><span class="cx" style="display: block; padding: 0 10px"> ?>
</span><span class="cx" style="display: block; padding: 0 10px"> <label class="label-covers-full-cell" for="<?php echo $checkbox_id; ?>" >
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -878,6 +879,11 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @param string $column_name The current column name.
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function column_default( $item, $column_name ) {
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ // Restores the more descriptive, specific name for use within this method.
+ $theme = $item;
+
+ $stylesheet = $theme->get_stylesheet();
+
</ins><span class="cx" style="display: block; padding: 0 10px"> /**
</span><span class="cx" style="display: block; padding: 0 10px"> * Fires inside each custom column of the Multisite themes list table.
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -887,12 +893,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @param string $stylesheet Directory name of the theme.
</span><span class="cx" style="display: block; padding: 0 10px"> * @param WP_Theme $theme Current WP_Theme 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">- do_action(
- 'manage_themes_custom_column',
- $column_name,
- $item->get_stylesheet(), // Directory name of the theme.
- $item // Theme object.
- );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ do_action( 'manage_themes_custom_column', $column_name, $stylesheet, $theme );
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span></span></pre></div>
<a id="trunksrcwpadminincludesclasswpmsuserslisttablephp"></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/class-wp-ms-users-list-table.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-admin/includes/class-wp-ms-users-list-table.php 2023-09-14 12:38:04 UTC (rev 56585)
+++ trunk/src/wp-admin/includes/class-wp-ms-users-list-table.php 2023-09-14 12:44:23 UTC (rev 56586)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -458,13 +458,11 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @param string $column_name The current column name.
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function column_default( $item, $column_name ) {
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ // Restores the more descriptive, specific name for use within this method.
+ $user = $item;
+
</ins><span class="cx" style="display: block; padding: 0 10px"> /** This filter is documented in wp-admin/includes/class-wp-users-list-table.php */
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- echo apply_filters(
- 'manage_users_custom_column',
- '', // Custom column output. Default empty.
- $column_name,
- $item->ID // User ID.
- );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ echo apply_filters( 'manage_users_custom_column', '', $column_name, $user->ID );
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> public function display_rows() {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -519,11 +517,11 @@
</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"> // Restores the more descriptive, specific name for use within this method.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $user = $item;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $user = $item;
+
</ins><span class="cx" style="display: block; padding: 0 10px"> $super_admins = get_super_admins();
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $actions = array();
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $actions = array();
-
</del><span class="cx" style="display: block; padding: 0 10px"> if ( current_user_can( 'edit_user', $user->ID ) ) {
</span><span class="cx" style="display: block; padding: 0 10px"> $edit_link = esc_url( add_query_arg( 'wp_http_referer', urlencode( wp_unslash( $_SERVER['REQUEST_URI'] ) ), get_edit_user_link( $user->ID ) ) );
</span><span class="cx" style="display: block; padding: 0 10px"> $actions['edit'] = '<a href="' . $edit_link . '">' . __( 'Edit' ) . '</a>';
</span></span></pre></div>
<a id="trunksrcwpadminincludesclasswppostslisttablephp"></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/class-wp-posts-list-table.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-admin/includes/class-wp-posts-list-table.php 2023-09-14 12:38:04 UTC (rev 56585)
+++ trunk/src/wp-admin/includes/class-wp-posts-list-table.php 2023-09-14 12:44:23 UTC (rev 56586)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1019,6 +1019,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> public function column_cb( $item ) {
</span><span class="cx" style="display: block; padding: 0 10px"> // Restores the more descriptive, specific name for use within this method.
</span><span class="cx" style="display: block; padding: 0 10px"> $post = $item;
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+
</ins><span class="cx" style="display: block; padding: 0 10px"> $show = current_user_can( 'edit_post', $post->ID );
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1458,7 +1459,8 @@
</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"> // Restores the more descriptive, specific name for use within this method.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $post = $item;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $post = $item;
+
</ins><span class="cx" style="display: block; padding: 0 10px"> $post_type_object = get_post_type_object( $post->post_type );
</span><span class="cx" style="display: block; padding: 0 10px"> $can_edit_post = current_user_can( 'edit_post', $post->ID );
</span><span class="cx" style="display: block; padding: 0 10px"> $actions = array();
</span></span></pre></div>
<a id="trunksrcwpadminincludesclasswptermslisttablephp"></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/class-wp-terms-list-table.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-admin/includes/class-wp-terms-list-table.php 2023-09-14 12:38:04 UTC (rev 56585)
+++ trunk/src/wp-admin/includes/class-wp-terms-list-table.php 2023-09-14 12:44:23 UTC (rev 56586)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -464,7 +464,8 @@
</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"> // Restores the more descriptive, specific name for use within this method.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $tag = $item;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $tag = $item;
+
</ins><span class="cx" style="display: block; padding: 0 10px"> $taxonomy = $this->screen->taxonomy;
</span><span class="cx" style="display: block; padding: 0 10px"> $uri = wp_doing_ajax() ? wp_get_referer() : $_SERVER['REQUEST_URI'];
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -626,6 +627,9 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @return string
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function column_default( $item, $column_name ) {
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ // Restores the more descriptive, specific name for use within this method.
+ $tag = $item;
+
</ins><span class="cx" style="display: block; padding: 0 10px"> /**
</span><span class="cx" style="display: block; padding: 0 10px"> * Filters the displayed columns in the terms list table.
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -643,7 +647,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @param string $column_name Name of the column.
</span><span class="cx" style="display: block; padding: 0 10px"> * @param int $term_id Term ID.
</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 apply_filters( "manage_{$this->screen->taxonomy}_custom_column", '', $column_name, $item->term_id );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ return apply_filters( "manage_{$this->screen->taxonomy}_custom_column", '', $column_name, $tag->term_id );
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span></span></pre></div>
<a id="trunksrcwpincludesclasswalkercategorydropdownphp"></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-walker-category-dropdown.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/class-walker-category-dropdown.php 2023-09-14 12:38:04 UTC (rev 56585)
+++ trunk/src/wp-includes/class-walker-category-dropdown.php 2023-09-14 12:44:23 UTC (rev 56586)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -59,8 +59,9 @@
</span><span class="cx" style="display: block; padding: 0 10px"> public function start_el( &$output, $data_object, $depth = 0, $args = array(), $current_object_id = 0 ) {
</span><span class="cx" style="display: block; padding: 0 10px"> // Restores the more descriptive, specific name for use within this method.
</span><span class="cx" style="display: block; padding: 0 10px"> $category = $data_object;
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $pad = str_repeat( ' ', $depth * 3 );
</del><span class="cx" style="display: block; padding: 0 10px">
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $pad = str_repeat( ' ', $depth * 3 );
+
</ins><span class="cx" style="display: block; padding: 0 10px"> /** This filter is documented in wp-includes/category-template.php */
</span><span class="cx" style="display: block; padding: 0 10px"> $cat_name = apply_filters( 'list_cats', $category->name, $category );
</span><span class="cx" style="display: block; padding: 0 10px">
</span></span></pre></div>
<a id="trunksrcwpincludesclasswalkerpagedropdownphp"></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-walker-page-dropdown.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/class-walker-page-dropdown.php 2023-09-14 12:38:04 UTC (rev 56585)
+++ trunk/src/wp-includes/class-walker-page-dropdown.php 2023-09-14 12:44:23 UTC (rev 56586)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -62,8 +62,9 @@
</span><span class="cx" style="display: block; padding: 0 10px"> public function start_el( &$output, $data_object, $depth = 0, $args = array(), $current_object_id = 0 ) {
</span><span class="cx" style="display: block; padding: 0 10px"> // Restores the more descriptive, specific name for use within this method.
</span><span class="cx" style="display: block; padding: 0 10px"> $page = $data_object;
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $pad = str_repeat( ' ', $depth * 3 );
</del><span class="cx" style="display: block; padding: 0 10px">
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $pad = str_repeat( ' ', $depth * 3 );
+
</ins><span class="cx" style="display: block; padding: 0 10px"> if ( ! isset( $args['value_field'] ) || ! isset( $page->{$args['value_field']} ) ) {
</span><span class="cx" style="display: block; padding: 0 10px"> $args['value_field'] = 'ID';
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span></span></pre></div>
<a id="trunksrcwpincludesclasswalkerpagephp"></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-walker-page.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/class-walker-page.php 2023-09-14 12:38:04 UTC (rev 56585)
+++ trunk/src/wp-includes/class-walker-page.php 2023-09-14 12:44:23 UTC (rev 56586)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -104,7 +104,8 @@
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function start_el( &$output, $data_object, $depth = 0, $args = array(), $current_object_id = 0 ) {
</span><span class="cx" style="display: block; padding: 0 10px"> // Restores the more descriptive, specific name for use within this method.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $page = $data_object;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $page = $data_object;
+
</ins><span class="cx" style="display: block; padding: 0 10px"> $current_page_id = $current_object_id;
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> if ( isset( $args['item_spacing'] ) && 'preserve' === $args['item_spacing'] ) {
</span></span></pre></div>
<a id="trunksrcwpincludesrestapiendpointsclasswprestattachmentscontrollerphp"></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-attachments-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-attachments-controller.php 2023-09-14 12:38:04 UTC (rev 56585)
+++ trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php 2023-09-14 12:44:23 UTC (rev 56586)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -731,7 +731,8 @@
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function prepare_item_for_response( $item, $request ) {
</span><span class="cx" style="display: block; padding: 0 10px"> // Restores the more descriptive, specific name for use within this method.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $post = $item;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $post = $item;
+
</ins><span class="cx" style="display: block; padding: 0 10px"> $response = parent::prepare_item_for_response( $post, $request );
</span><span class="cx" style="display: block; padding: 0 10px"> $fields = $this->get_fields_for_response( $request );
</span><span class="cx" style="display: block; padding: 0 10px"> $data = $response->get_data();
</span></span></pre></div>
<a id="trunksrcwpincludesrestapiendpointsclasswprestautosavescontrollerphp"></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-autosaves-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-autosaves-controller.php 2023-09-14 12:38:04 UTC (rev 56585)
+++ trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-autosaves-controller.php 2023-09-14 12:44:23 UTC (rev 56586)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -409,11 +409,11 @@
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function prepare_item_for_response( $item, $request ) {
</span><span class="cx" style="display: block; padding: 0 10px"> // Restores the more descriptive, specific name for use within this method.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $post = $item;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $post = $item;
+
</ins><span class="cx" style="display: block; padding: 0 10px"> $response = $this->revisions_controller->prepare_item_for_response( $post, $request );
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $fields = $this->get_fields_for_response( $request );
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $fields = $this->get_fields_for_response( $request );
-
</del><span class="cx" style="display: block; padding: 0 10px"> if ( in_array( 'preview_link', $fields, true ) ) {
</span><span class="cx" style="display: block; padding: 0 10px"> $parent_id = wp_is_post_autosave( $post );
</span><span class="cx" style="display: block; padding: 0 10px"> $preview_post_id = false === $parent_id ? $post->ID : $parent_id;
</span></span></pre></div>
<a id="trunksrcwpincludesrestapiendpointsclasswprestblocktypescontrollerphp"></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-block-types-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-block-types-controller.php 2023-09-14 12:38:04 UTC (rev 56585)
+++ trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-block-types-controller.php 2023-09-14 12:44:23 UTC (rev 56586)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -246,9 +246,10 @@
</span><span class="cx" style="display: block; padding: 0 10px"> public function prepare_item_for_response( $item, $request ) {
</span><span class="cx" style="display: block; padding: 0 10px"> // Restores the more descriptive, specific name for use within this method.
</span><span class="cx" style="display: block; padding: 0 10px"> $block_type = $item;
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $fields = $this->get_fields_for_response( $request );
- $data = array();
</del><span class="cx" style="display: block; padding: 0 10px">
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $fields = $this->get_fields_for_response( $request );
+ $data = array();
+
</ins><span class="cx" style="display: block; padding: 0 10px"> if ( rest_is_field_included( 'attributes', $fields ) ) {
</span><span class="cx" style="display: block; padding: 0 10px"> $data['attributes'] = $block_type->get_attributes();
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span></span></pre></div>
<a id="trunksrcwpincludesrestapiendpointsclasswprestcommentscontrollerphp"></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-comments-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-comments-controller.php 2023-09-14 12:38:04 UTC (rev 56585)
+++ trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.php 2023-09-14 12:44:23 UTC (rev 56586)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1039,9 +1039,10 @@
</span><span class="cx" style="display: block; padding: 0 10px"> public function prepare_item_for_response( $item, $request ) {
</span><span class="cx" style="display: block; padding: 0 10px"> // Restores the more descriptive, specific name for use within this method.
</span><span class="cx" style="display: block; padding: 0 10px"> $comment = $item;
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $fields = $this->get_fields_for_response( $request );
- $data = array();
</del><span class="cx" style="display: block; padding: 0 10px">
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $fields = $this->get_fields_for_response( $request );
+ $data = array();
+
</ins><span class="cx" style="display: block; padding: 0 10px"> if ( in_array( 'id', $fields, true ) ) {
</span><span class="cx" style="display: block; padding: 0 10px"> $data['id'] = (int) $comment->comment_ID;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</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 2023-09-14 12:38:04 UTC (rev 56585)
+++ trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-global-styles-controller.php 2023-09-14 12:44:23 UTC (rev 56586)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -367,8 +367,8 @@
</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"> // Base fields for every post.
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $fields = $this->get_fields_for_response( $request );
</ins><span class="cx" style="display: block; padding: 0 10px"> $data = array();
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $fields = $this->get_fields_for_response( $request );
</del><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> if ( rest_is_field_included( 'id', $fields ) ) {
</span><span class="cx" style="display: block; padding: 0 10px"> $data['id'] = $post->ID;
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -603,8 +603,8 @@
</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"> $theme = WP_Theme_JSON_Resolver::get_merged_data( 'theme' );
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $fields = $this->get_fields_for_response( $request );
</ins><span class="cx" style="display: block; padding: 0 10px"> $data = array();
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $fields = $this->get_fields_for_response( $request );
</del><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> if ( rest_is_field_included( 'settings', $fields ) ) {
</span><span class="cx" style="display: block; padding: 0 10px"> $data['settings'] = $theme->get_settings();
</span></span></pre></div>
<a id="trunksrcwpincludesrestapiendpointsclasswprestmenulocationscontrollerphp"></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-locations-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-locations-controller.php 2023-09-14 12:38:04 UTC (rev 56585)
+++ trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-menu-locations-controller.php 2023-09-14 12:44:23 UTC (rev 56586)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -168,7 +168,8 @@
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function prepare_item_for_response( $item, $request ) {
</span><span class="cx" style="display: block; padding: 0 10px"> // Restores the more descriptive, specific name for use within this method.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $location = $item;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $location = $item;
+
</ins><span class="cx" style="display: block; padding: 0 10px"> $locations = get_nav_menu_locations();
</span><span class="cx" style="display: block; padding: 0 10px"> $menu = isset( $locations[ $location->name ] ) ? $locations[ $location->name ] : 0;
</span><span class="cx" style="display: block; padding: 0 10px">
</span></span></pre></div>
<a id="trunksrcwpincludesrestapiendpointsclasswprestpatterndirectorycontrollerphp"></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-pattern-directory-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-pattern-directory-controller.php 2023-09-14 12:38:04 UTC (rev 56585)
+++ trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-pattern-directory-controller.php 2023-09-14 12:44:23 UTC (rev 56586)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -193,7 +193,8 @@
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function prepare_item_for_response( $item, $request ) {
</span><span class="cx" style="display: block; padding: 0 10px"> // Restores the more descriptive, specific name for use within this method.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $raw_pattern = $item;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $raw_pattern = $item;
+
</ins><span class="cx" style="display: block; padding: 0 10px"> $prepared_pattern = array(
</span><span class="cx" style="display: block; padding: 0 10px"> 'id' => absint( $raw_pattern->id ),
</span><span class="cx" style="display: block; padding: 0 10px"> 'title' => sanitize_text_field( $raw_pattern->title->rendered ),
</span></span></pre></div>
<a id="trunksrcwpincludesrestapiendpointsclasswprestpoststatusescontrollerphp"></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-post-statuses-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-post-statuses-controller.php 2023-09-14 12:38:04 UTC (rev 56585)
+++ trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-post-statuses-controller.php 2023-09-14 12:44:23 UTC (rev 56586)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -222,6 +222,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> public function prepare_item_for_response( $item, $request ) {
</span><span class="cx" style="display: block; padding: 0 10px"> // Restores the more descriptive, specific name for use within this method.
</span><span class="cx" style="display: block; padding: 0 10px"> $status = $item;
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+
</ins><span class="cx" style="display: block; padding: 0 10px"> $fields = $this->get_fields_for_response( $request );
</span><span class="cx" style="display: block; padding: 0 10px"> $data = array();
</span><span class="cx" style="display: block; padding: 0 10px">
</span></span></pre></div>
<a id="trunksrcwpincludesrestapiendpointsclasswprestposttypescontrollerphp"></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-post-types-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-post-types-controller.php 2023-09-14 12:38:04 UTC (rev 56585)
+++ trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-post-types-controller.php 2023-09-14 12:44:23 UTC (rev 56586)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -176,7 +176,8 @@
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function prepare_item_for_response( $item, $request ) {
</span><span class="cx" style="display: block; padding: 0 10px"> // Restores the more descriptive, specific name for use within this method.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $post_type = $item;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $post_type = $item;
+
</ins><span class="cx" style="display: block; padding: 0 10px"> $taxonomies = wp_list_filter( get_object_taxonomies( $post_type->name, 'objects' ), array( 'show_in_rest' => true ) );
</span><span class="cx" style="display: block; padding: 0 10px"> $taxonomies = wp_list_pluck( $taxonomies, 'name' );
</span><span class="cx" style="display: block; padding: 0 10px"> $base = ! empty( $post_type->rest_base ) ? $post_type->rest_base : $post_type->name;
</span></span></pre></div>
<a id="trunksrcwpincludesrestapiendpointsclasswprestpostscontrollerphp"></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-posts-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-posts-controller.php 2023-09-14 12:38:04 UTC (rev 56585)
+++ trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php 2023-09-14 12:44:23 UTC (rev 56586)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1748,7 +1748,8 @@
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function prepare_item_for_response( $item, $request ) {
</span><span class="cx" style="display: block; padding: 0 10px"> // Restores the more descriptive, specific name for use within this method.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $post = $item;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $post = $item;
+
</ins><span class="cx" style="display: block; padding: 0 10px"> $GLOBALS['post'] = $post;
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> setup_postdata( $post );
</span></span></pre></div>
<a id="trunksrcwpincludesrestapiendpointsclasswprestrevisionscontrollerphp"></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-revisions-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-revisions-controller.php 2023-09-14 12:38:04 UTC (rev 56585)
+++ trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-revisions-controller.php 2023-09-14 12:44:23 UTC (rev 56586)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -547,7 +547,8 @@
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function prepare_item_for_response( $item, $request ) {
</span><span class="cx" style="display: block; padding: 0 10px"> // Restores the more descriptive, specific name for use within this method.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $post = $item;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $post = $item;
+
</ins><span class="cx" style="display: block; padding: 0 10px"> $GLOBALS['post'] = $post;
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> setup_postdata( $post );
</span></span></pre></div>
<a id="trunksrcwpincludesrestapiendpointsclasswprestsearchcontrollerphp"></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-search-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-search-controller.php 2023-09-14 12:38:04 UTC (rev 56585)
+++ trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-search-controller.php 2023-09-14 12:44:23 UTC (rev 56586)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -195,6 +195,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> public function prepare_item_for_response( $item, $request ) {
</span><span class="cx" style="display: block; padding: 0 10px"> // Restores the more descriptive, specific name for use within this method.
</span><span class="cx" style="display: block; padding: 0 10px"> $item_id = $item;
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+
</ins><span class="cx" style="display: block; padding: 0 10px"> $handler = $this->get_search_handler( $request );
</span><span class="cx" style="display: block; padding: 0 10px"> if ( is_wp_error( $handler ) ) {
</span><span class="cx" style="display: block; padding: 0 10px"> return new WP_REST_Response();
</span></span></pre></div>
<a id="trunksrcwpincludesrestapiendpointsclasswprestsidebarscontrollerphp"></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-sidebars-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-sidebars-controller.php 2023-09-14 12:38:04 UTC (rev 56585)
+++ trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-sidebars-controller.php 2023-09-14 12:44:23 UTC (rev 56586)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -320,9 +320,10 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> // Restores the more descriptive, specific name for use within this method.
</span><span class="cx" style="display: block; padding: 0 10px"> $raw_sidebar = $item;
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $id = $raw_sidebar['id'];
- $sidebar = array( 'id' => $id );
</del><span class="cx" style="display: block; padding: 0 10px">
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $id = $raw_sidebar['id'];
+ $sidebar = array( 'id' => $id );
+
</ins><span class="cx" style="display: block; padding: 0 10px"> if ( isset( $wp_registered_sidebars[ $id ] ) ) {
</span><span class="cx" style="display: block; padding: 0 10px"> $registered_sidebar = $wp_registered_sidebars[ $id ];
</span><span class="cx" style="display: block; padding: 0 10px">
</span></span></pre></div>
<a id="trunksrcwpincludesrestapiendpointsclasswpresttaxonomiescontrollerphp"></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-taxonomies-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-taxonomies-controller.php 2023-09-14 12:38:04 UTC (rev 56585)
+++ trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-taxonomies-controller.php 2023-09-14 12:44:23 UTC (rev 56586)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -209,8 +209,9 @@
</span><span class="cx" style="display: block; padding: 0 10px"> public function prepare_item_for_response( $item, $request ) {
</span><span class="cx" style="display: block; padding: 0 10px"> // Restores the more descriptive, specific name for use within this method.
</span><span class="cx" style="display: block; padding: 0 10px"> $taxonomy = $item;
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $base = ! empty( $taxonomy->rest_base ) ? $taxonomy->rest_base : $taxonomy->name;
</del><span class="cx" style="display: block; padding: 0 10px">
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $base = ! empty( $taxonomy->rest_base ) ? $taxonomy->rest_base : $taxonomy->name;
+
</ins><span class="cx" style="display: block; padding: 0 10px"> $fields = $this->get_fields_for_response( $request );
</span><span class="cx" style="display: block; padding: 0 10px"> $data = array();
</span><span class="cx" style="display: block; padding: 0 10px">
</span></span></pre></div>
<a id="trunksrcwpincludesrestapiendpointsclasswprestthemescontrollerphp"></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-themes-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-themes-controller.php 2023-09-14 12:38:04 UTC (rev 56585)
+++ trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-themes-controller.php 2023-09-14 12:44:23 UTC (rev 56586)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -231,9 +231,10 @@
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function prepare_item_for_response( $item, $request ) {
</span><span class="cx" style="display: block; padding: 0 10px"> // Restores the more descriptive, specific name for use within this method.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $theme = $item;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $theme = $item;
+
+ $fields = $this->get_fields_for_response( $request );
</ins><span class="cx" style="display: block; padding: 0 10px"> $data = array();
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $fields = $this->get_fields_for_response( $request );
</del><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> if ( rest_is_field_included( 'stylesheet', $fields ) ) {
</span><span class="cx" style="display: block; padding: 0 10px"> $data['stylesheet'] = $theme->get_stylesheet();
</span></span></pre></div>
<a id="trunksrcwpincludesrestapiendpointsclasswprestuserscontrollerphp"></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-users-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-users-controller.php 2023-09-14 12:38:04 UTC (rev 56585)
+++ trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php 2023-09-14 12:44:23 UTC (rev 56586)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -984,9 +984,10 @@
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function prepare_item_for_response( $item, $request ) {
</span><span class="cx" style="display: block; padding: 0 10px"> // Restores the more descriptive, specific name for use within this method.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $user = $item;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $user = $item;
+
+ $fields = $this->get_fields_for_response( $request );
</ins><span class="cx" style="display: block; padding: 0 10px"> $data = array();
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $fields = $this->get_fields_for_response( $request );
</del><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> if ( in_array( 'id', $fields, true ) ) {
</span><span class="cx" style="display: block; padding: 0 10px"> $data['id'] = $user->ID;
</span></span></pre></div>
<a id="trunksrcwpincludesrestapiendpointsclasswprestwidgettypescontrollerphp"></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-widget-types-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-widget-types-controller.php 2023-09-14 12:38:04 UTC (rev 56585)
+++ trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-widget-types-controller.php 2023-09-14 12:44:23 UTC (rev 56586)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -297,8 +297,9 @@
</span><span class="cx" style="display: block; padding: 0 10px"> public function prepare_item_for_response( $item, $request ) {
</span><span class="cx" style="display: block; padding: 0 10px"> // Restores the more descriptive, specific name for use within this method.
</span><span class="cx" style="display: block; padding: 0 10px"> $widget_type = $item;
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $fields = $this->get_fields_for_response( $request );
- $data = array(
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+
+ $fields = $this->get_fields_for_response( $request );
+ $data = array(
</ins><span class="cx" style="display: block; padding: 0 10px"> 'id' => $widget_type['id'],
</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="trunksrcwpincludessitemapsprovidersclasswpsitemapstaxonomiesphp"></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/sitemaps/providers/class-wp-sitemaps-taxonomies.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/sitemaps/providers/class-wp-sitemaps-taxonomies.php 2023-09-14 12:38:04 UTC (rev 56585)
+++ trunk/src/wp-includes/sitemaps/providers/class-wp-sitemaps-taxonomies.php 2023-09-14 12:44:23 UTC (rev 56586)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -60,7 +60,8 @@
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function get_url_list( $page_num, $object_subtype = '' ) {
</span><span class="cx" style="display: block; padding: 0 10px"> // Restores the more descriptive, specific name for use within this method.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $taxonomy = $object_subtype;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $taxonomy = $object_subtype;
+
</ins><span class="cx" style="display: block; padding: 0 10px"> $supported_types = $this->get_object_subtypes();
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> // Bail early if the queried taxonomy is not supported.
</span></span></pre>
</div>
</div>
</body>
</html>