<!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>[54891] trunk: Coding Standards: Always use parentheses when instantiating an object.</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/54891">54891</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/54891","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>2022-11-29 15:49:49 +0000 (Tue, 29 Nov 2022)</dd>
</dl>

<pre style='padding-left: 1em; margin: 2em 0; border-left: 2px solid #ccc; line-height: 1.25; font-size: 105%; font-family: sans-serif'>Coding Standards: Always use parentheses when instantiating an object.

Note: This will be enforced by WPCS 3.0.0.

Props jrf.
See <a href="https://core.trac.wordpress.org/ticket/56791">#56791</a>.</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunksrcwpadmincustomizephp">trunk/src/wp-admin/customize.php</a></li>
<li><a href="#trunksrcwpadminincludesajaxactionsphp">trunk/src/wp-admin/includes/ajax-actions.php</a></li>
<li><a href="#trunksrcwpadminincludesbookmarkphp">trunk/src/wp-admin/includes/bookmark.php</a></li>
<li><a href="#trunksrcwpadminincludesclasslanguagepackupgraderphp">trunk/src/wp-admin/includes/class-language-pack-upgrader.php</a></li>
<li><a href="#trunksrcwpadminincludesclasswpautomaticupdaterphp">trunk/src/wp-admin/includes/class-wp-automatic-updater.php</a></li>
<li><a href="#trunksrcwpadminincludesclasswpsitehealthautoupdatesphp">trunk/src/wp-admin/includes/class-wp-site-health-auto-updates.php</a></li>
<li><a href="#trunksrcwpadminincludesimageeditphp">trunk/src/wp-admin/includes/image-edit.php</a></li>
<li><a href="#trunksrcwpadminincludesnavmenuphp">trunk/src/wp-admin/includes/nav-menu.php</a></li>
<li><a href="#trunksrcwpadminincludespostphp">trunk/src/wp-admin/includes/post.php</a></li>
<li><a href="#trunksrcwpadminincludesprivacytoolsphp">trunk/src/wp-admin/includes/privacy-tools.php</a></li>
<li><a href="#trunksrcwpadminincludesschemaphp">trunk/src/wp-admin/includes/schema.php</a></li>
<li><a href="#trunksrcwpadminincludestemplatephp">trunk/src/wp-admin/includes/template.php</a></li>
<li><a href="#trunksrcwpadminincludestranslationinstallphp">trunk/src/wp-admin/includes/translation-install.php</a></li>
<li><a href="#trunksrcwpadminincludesupdatecorephp">trunk/src/wp-admin/includes/update-core.php</a></li>
<li><a href="#trunksrcwpadminincludesupdatephp">trunk/src/wp-admin/includes/update.php</a></li>
<li><a href="#trunksrcwpadminincludesupgradephp">trunk/src/wp-admin/includes/upgrade.php</a></li>
<li><a href="#trunksrcwpadminincludesuserphp">trunk/src/wp-admin/includes/user.php</a></li>
<li><a href="#trunksrcwpadminusereditphp">trunk/src/wp-admin/user-edit.php</a></li>
<li><a href="#trunksrcwpincludesadminbarphp">trunk/src/wp-includes/admin-bar.php</a></li>
<li><a href="#trunksrcwpincludescapabilitiesphp">trunk/src/wp-includes/capabilities.php</a></li>
<li><a href="#trunksrcwpincludescategorytemplatephp">trunk/src/wp-includes/category-template.php</a></li>
<li><a href="#trunksrcwpincludesclasswpadminbarphp">trunk/src/wp-includes/class-wp-admin-bar.php</a></li>
<li><a href="#trunksrcwpincludesclasswpeditorphp">trunk/src/wp-includes/class-wp-editor.php</a></li>
<li><a href="#trunksrcwpincludesclasswphttpphp">trunk/src/wp-includes/class-wp-http.php</a></li>
<li><a href="#trunksrcwpincludesclasswpoembedphp">trunk/src/wp-includes/class-wp-oembed.php</a></li>
<li><a href="#trunksrcwpincludesclasswptextdiffrenderertablephp">trunk/src/wp-includes/class-wp-text-diff-renderer-table.php</a></li>
<li><a href="#trunksrcwpincludesclasswpuserphp">trunk/src/wp-includes/class-wp-user.php</a></li>
<li><a href="#trunksrcwpincludescommenttemplatephp">trunk/src/wp-includes/comment-template.php</a></li>
<li><a href="#trunksrcwpincludescommentphp">trunk/src/wp-includes/comment.php</a></li>
<li><a href="#trunksrcwpincludesfunctionsphp">trunk/src/wp-includes/functions.php</a></li>
<li><a href="#trunksrcwpincludesl10nphp">trunk/src/wp-includes/l10n.php</a></li>
<li><a href="#trunksrcwpincludesmsloadphp">trunk/src/wp-includes/ms-load.php</a></li>
<li><a href="#trunksrcwpincludesnavmenutemplatephp">trunk/src/wp-includes/nav-menu-template.php</a></li>
<li><a href="#trunksrcwpincludesnavmenuphp">trunk/src/wp-includes/nav-menu.php</a></li>
<li><a href="#trunksrcwpincludespluggablephp">trunk/src/wp-includes/pluggable.php</a></li>
<li><a href="#trunksrcwpincludesposttemplatephp">trunk/src/wp-includes/post-template.php</a></li>
<li><a href="#trunksrcwpincludespostphp">trunk/src/wp-includes/post.php</a></li>
<li><a href="#trunksrcwpincludesrestapiclasswprestresponsephp">trunk/src/wp-includes/rest-api/class-wp-rest-response.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="#trunksrcwpincludesrestapiendpointsclasswprestcommentscontrollerphp">trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.php</a></li>
<li><a href="#trunksrcwpincludesrestapiendpointsclasswpresttermscontrollerphp">trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-terms-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="#trunksrcwpincludesrestapiendpointsclasswprestwidgetscontrollerphp">trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-widgets-controller.php</a></li>
<li><a href="#trunksrcwpincludesrestapiphp">trunk/src/wp-includes/rest-api.php</a></li>
<li><a href="#trunksrcwpincludesthemephp">trunk/src/wp-includes/theme.php</a></li>
<li><a href="#trunksrcwpincludesupdatephp">trunk/src/wp-includes/update.php</a></li>
<li><a href="#trunksrcwpincludesuserphp">trunk/src/wp-includes/user.php</a></li>
<li><a href="#trunksrcxmlrpcphp">trunk/src/xmlrpc.php</a></li>
<li><a href="#trunktestsphpunitincludestestcaserestcontrollerphp">trunk/tests/phpunit/includes/testcase-rest-controller.php</a></li>
<li><a href="#trunktestsphpunittestsadminbarphp">trunk/tests/phpunit/tests/adminbar.php</a></li>
<li><a href="#trunktestsphpunittestsblockseditorphp">trunk/tests/phpunit/tests/blocks/editor.php</a></li>
<li><a href="#trunktestsphpunittestscachephp">trunk/tests/phpunit/tests/cache.php</a></li>
<li><a href="#trunktestsphpunittestsdependenciesjqueryphp">trunk/tests/phpunit/tests/dependencies/jquery.php</a></li>
<li><a href="#trunktestsphpunittestsdependenciesscriptsphp">trunk/tests/phpunit/tests/dependencies/scripts.php</a></li>
<li><a href="#trunktestsphpunittestsdependenciesphp">trunk/tests/phpunit/tests/dependencies.php</a></li>
<li><a href="#trunktestsphpunittestsformattingsanitizeTextFieldphp">trunk/tests/phpunit/tests/formatting/sanitizeTextField.php</a></li>
<li><a href="#trunktestsphpunittestsformattingstripslashesDeepphp">trunk/tests/phpunit/tests/formatting/stripslashesDeep.php</a></li>
<li><a href="#trunktestsphpunittestsformattingwpSlashphp">trunk/tests/phpunit/tests/formatting/wpSlash.php</a></li>
<li><a href="#trunktestsphpunittestsfunctionsphp">trunk/tests/phpunit/tests/functions.php</a></li>
<li><a href="#trunktestsphpunittestsimportparserphp">trunk/tests/phpunit/tests/import/parser.php</a></li>
<li><a href="#trunktestsphpunittestsmediaphp">trunk/tests/phpunit/tests/media.php</a></li>
<li><a href="#trunktestsphpunittestsmenuwpExpandNavMenuPostDataphp">trunk/tests/phpunit/tests/menu/wpExpandNavMenuPostData.php</a></li>
<li><a href="#trunktestsphpunittestsmetaphp">trunk/tests/phpunit/tests/meta.php</a></li>
<li><a href="#trunktestsphpunittestsoembedcontrollerphp">trunk/tests/phpunit/tests/oembed/controller.php</a></li>
<li><a href="#trunktestsphpunittestspomomophp">trunk/tests/phpunit/tests/pomo/mo.php</a></li>
<li><a href="#trunktestsphpunittestspomonoopTranslationsphp">trunk/tests/phpunit/tests/pomo/noopTranslations.php</a></li>
<li><a href="#trunktestsphpunittestspomotranslationsphp">trunk/tests/phpunit/tests/pomo/translations.php</a></li>
<li><a href="#trunktestsphpunittestspostmetaphp">trunk/tests/phpunit/tests/post/meta.php</a></li>
<li><a href="#trunktestsphpunittestsposttypesphp">trunk/tests/phpunit/tests/post/types.php</a></li>
<li><a href="#trunktestsphpunittestspostphp">trunk/tests/phpunit/tests/post.php</a></li>
<li><a href="#trunktestsphpunittestsquerygeneratePostdataphp">trunk/tests/phpunit/tests/query/generatePostdata.php</a></li>
<li><a href="#trunktestsphpunittestsquerysetupPostdataphp">trunk/tests/phpunit/tests/query/setupPostdata.php</a></li>
<li><a href="#trunktestsphpunittestsqueryphp">trunk/tests/phpunit/tests/query.php</a></li>
<li><a href="#trunktestsphpunittestsrestapirestblocktypecontrollerphp">trunk/tests/phpunit/tests/rest-api/rest-block-type-controller.php</a></li>
<li><a href="#trunktestsphpunittestsrestapirestcategoriescontrollerphp">trunk/tests/phpunit/tests/rest-api/rest-categories-controller.php</a></li>
<li><a href="#trunktestsphpunittestsrestapirestcommentscontrollerphp">trunk/tests/phpunit/tests/rest-api/rest-comments-controller.php</a></li>
<li><a href="#trunktestsphpunittestsrestapirestpostmetafieldsphp">trunk/tests/phpunit/tests/rest-api/rest-post-meta-fields.php</a></li>
<li><a href="#trunktestsphpunittestsrestapirestpoststatusescontrollerphp">trunk/tests/phpunit/tests/rest-api/rest-post-statuses-controller.php</a></li>
<li><a href="#trunktestsphpunittestsrestapirestposttypescontrollerphp">trunk/tests/phpunit/tests/rest-api/rest-post-types-controller.php</a></li>
<li><a href="#trunktestsphpunittestsrestapirestschemasetupphp">trunk/tests/phpunit/tests/rest-api/rest-schema-setup.php</a></li>
<li><a href="#trunktestsphpunittestsrestapiresttagscontrollerphp">trunk/tests/phpunit/tests/rest-api/rest-tags-controller.php</a></li>
<li><a href="#trunktestsphpunittestsrestapiresttaxonomiescontrollerphp">trunk/tests/phpunit/tests/rest-api/rest-taxonomies-controller.php</a></li>
<li><a href="#trunktestsphpunittestsrestapiresttermmetafieldsphp">trunk/tests/phpunit/tests/rest-api/rest-term-meta-fields.php</a></li>
<li><a href="#trunktestsphpunittestsrestapirestuserscontrollerphp">trunk/tests/phpunit/tests/rest-api/rest-users-controller.php</a></li>
<li><a href="#trunktestsphpunittestsrestapirestwidgettypescontrollerphp">trunk/tests/phpunit/tests/rest-api/rest-widget-types-controller.php</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunksrcwpadmincustomizephp"></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/customize.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-admin/customize.php  2022-11-29 12:40:08 UTC (rev 54890)
+++ trunk/src/wp-admin/customize.php    2022-11-29 15:49:49 UTC (rev 54891)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -97,7 +97,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px"> $registered             = $wp_scripts->registered;
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-$wp_scripts             = new WP_Scripts;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+$wp_scripts             = new WP_Scripts();
</ins><span class="cx" style="display: block; padding: 0 10px"> $wp_scripts->registered = $registered;
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px"> add_action( 'customize_controls_print_scripts', 'print_head_scripts', 20 );
</span></span></pre></div>
<a id="trunksrcwpadminincludesajaxactionsphp"></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/ajax-actions.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-admin/includes/ajax-actions.php      2022-11-29 12:40:08 UTC (rev 54890)
+++ trunk/src/wp-admin/includes/ajax-actions.php        2022-11-29 15:49:49 UTC (rev 54891)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1570,7 +1570,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                        'before'      => '',
</span><span class="cx" style="display: block; padding: 0 10px">                        'link_after'  => '',
</span><span class="cx" style="display: block; padding: 0 10px">                        'link_before' => '',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                        'walker'      => new $walker_class_name,
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                 'walker'      => new $walker_class_name(),
</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">                echo walk_nav_menu_tree( $menu_items, 0, (object) $args );
</span></span></pre></div>
<a id="trunksrcwpadminincludesbookmarkphp"></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/bookmark.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-admin/includes/bookmark.php  2022-11-29 12:40:08 UTC (rev 54890)
+++ trunk/src/wp-admin/includes/bookmark.php    2022-11-29 15:49:49 UTC (rev 54891)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -59,7 +59,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">  * @return stdClass Default link object.
</span><span class="cx" style="display: block; padding: 0 10px">  */
</span><span class="cx" style="display: block; padding: 0 10px"> function get_default_link_to_edit() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-        $link = new stdClass;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $link = new stdClass();
</ins><span class="cx" style="display: block; padding: 0 10px">         if ( isset( $_GET['linkurl'] ) ) {
</span><span class="cx" style="display: block; padding: 0 10px">                $link->link_url = esc_url( wp_unslash( $_GET['linkurl'] ) );
</span><span class="cx" style="display: block; padding: 0 10px">        } else {
</span></span></pre></div>
<a id="trunksrcwpadminincludesclasslanguagepackupgraderphp"></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-language-pack-upgrader.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-admin/includes/class-language-pack-upgrader.php      2022-11-29 12:40:08 UTC (rev 54890)
+++ trunk/src/wp-admin/includes/class-language-pack-upgrader.php        2022-11-29 15:49:49 UTC (rev 54891)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -62,7 +62,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                 * Avoid messing with VCS installations, at least for now.
</span><span class="cx" style="display: block; padding: 0 10px">                 * Noted: this is not the ideal way to accomplish this.
</span><span class="cx" style="display: block; padding: 0 10px">                 */
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $check_vcs = new WP_Automatic_Updater;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $check_vcs = new WP_Automatic_Updater();
</ins><span class="cx" style="display: block; padding: 0 10px">                 if ( $check_vcs->is_vcs_checkout( WP_CONTENT_DIR ) ) {
</span><span class="cx" style="display: block; padding: 0 10px">                        return;
</span><span class="cx" style="display: block; padding: 0 10px">                }
</span></span></pre></div>
<a id="trunksrcwpadminincludesclasswpautomaticupdaterphp"></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-automatic-updater.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-admin/includes/class-wp-automatic-updater.php        2022-11-29 12:40:08 UTC (rev 54890)
+++ trunk/src/wp-admin/includes/class-wp-automatic-updater.php  2022-11-29 15:49:49 UTC (rev 54891)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -139,7 +139,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">         */
</span><span class="cx" style="display: block; padding: 0 10px">        public function should_update( $type, $item, $context ) {
</span><span class="cx" style="display: block; padding: 0 10px">                // Used to see if WP_Filesystem is set up to allow unattended updates.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $skin = new Automatic_Upgrader_Skin;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $skin = new Automatic_Upgrader_Skin();
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                if ( $this->is_disabled() ) {
</span><span class="cx" style="display: block; padding: 0 10px">                        return false;
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -305,7 +305,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">         * @return null|WP_Error
</span><span class="cx" style="display: block; padding: 0 10px">         */
</span><span class="cx" style="display: block; padding: 0 10px">        public function update( $type, $item ) {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $skin = new Automatic_Upgrader_Skin;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $skin = new Automatic_Upgrader_Skin();
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                switch ( $type ) {
</span><span class="cx" style="display: block; padding: 0 10px">                        case 'core':
</span></span></pre></div>
<a id="trunksrcwpadminincludesclasswpsitehealthautoupdatesphp"></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-site-health-auto-updates.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-admin/includes/class-wp-site-health-auto-updates.php 2022-11-29 12:40:08 UTC (rev 54890)
+++ trunk/src/wp-admin/includes/class-wp-site-health-auto-updates.php   2022-11-29 15:49:49 UTC (rev 54891)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -280,7 +280,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                        require_once ABSPATH . 'wp-admin/includes/file.php';
</span><span class="cx" style="display: block; padding: 0 10px">                }
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $skin    = new Automatic_Upgrader_Skin;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $skin    = new Automatic_Upgrader_Skin();
</ins><span class="cx" style="display: block; padding: 0 10px">                 $success = $skin->request_filesystem_credentials( false, ABSPATH );
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                if ( ! $success ) {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -313,7 +313,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                require ABSPATH . WPINC . '/version.php'; // $wp_version; // x.y.z
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $skin    = new Automatic_Upgrader_Skin;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $skin    = new Automatic_Upgrader_Skin();
</ins><span class="cx" style="display: block; padding: 0 10px">                 $success = $skin->request_filesystem_credentials( false, ABSPATH );
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                if ( ! $success ) {
</span></span></pre></div>
<a id="trunksrcwpadminincludesimageeditphp"></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/image-edit.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-admin/includes/image-edit.php        2022-11-29 12:40:08 UTC (rev 54890)
+++ trunk/src/wp-admin/includes/image-edit.php  2022-11-29 15:49:49 UTC (rev 54891)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -739,7 +739,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">        $backup_sizes     = get_post_meta( $post_id, '_wp_attachment_backup_sizes', true );
</span><span class="cx" style="display: block; padding: 0 10px">        $old_backup_sizes = $backup_sizes;
</span><span class="cx" style="display: block; padding: 0 10px">        $restored         = false;
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-        $msg              = new stdClass;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $msg              = new stdClass();
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">        if ( ! is_array( $backup_sizes ) ) {
</span><span class="cx" style="display: block; padding: 0 10px">                $msg->error = __( 'Cannot load image metadata.' );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -827,7 +827,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> function wp_save_image( $post_id ) {
</span><span class="cx" style="display: block; padding: 0 10px">        $_wp_additional_image_sizes = wp_get_additional_image_sizes();
</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  = new stdClass;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $return  = new stdClass();
</ins><span class="cx" style="display: block; padding: 0 10px">         $success = false;
</span><span class="cx" style="display: block; padding: 0 10px">        $delete  = false;
</span><span class="cx" style="display: block; padding: 0 10px">        $scaled  = false;
</span></span></pre></div>
<a id="trunksrcwpadminincludesnavmenuphp"></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/nav-menu.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-admin/includes/nav-menu.php  2022-11-29 12:40:08 UTC (rev 54890)
+++ trunk/src/wp-admin/includes/nav-menu.php    2022-11-29 15:49:49 UTC (rev 54891)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -32,7 +32,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">        }
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">        if ( 'markup' === $response_format ) {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $args['walker'] = new Walker_Nav_Menu_Checklist;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $args['walker'] = new Walker_Nav_Menu_Checklist();
</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">        if ( 'get-post-item' === $type ) {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -429,7 +429,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">        }
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">        // @todo Transient caching of these results with proper invalidation on updating of a post of this type.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-        $get_posts = new WP_Query;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $get_posts = new WP_Query();
</ins><span class="cx" style="display: block; padding: 0 10px">         $posts     = $get_posts->query( $args );
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">        // Only suppress and insert when more than just suppression pages available.
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -436,7 +436,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">        if ( ! $get_posts->post_count ) {
</span><span class="cx" style="display: block; padding: 0 10px">                if ( ! empty( $suppress_page_ids ) ) {
</span><span class="cx" style="display: block; padding: 0 10px">                        unset( $args['post__not_in'] );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                        $get_posts = new WP_Query;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                 $get_posts = new WP_Query();
</ins><span class="cx" style="display: block; padding: 0 10px">                         $posts     = $get_posts->query( $args );
</span><span class="cx" style="display: block; padding: 0 10px">                } else {
</span><span class="cx" style="display: block; padding: 0 10px">                        echo '<p>' . __( 'No items.' ) . '</p>';
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1059,7 +1059,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                $walker_class_name = apply_filters( 'wp_edit_nav_menu_walker', 'Walker_Nav_Menu_Edit', $menu_id );
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                if ( class_exists( $walker_class_name ) ) {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                        $walker = new $walker_class_name;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                 $walker = new $walker_class_name();
</ins><span class="cx" style="display: block; padding: 0 10px">                 } else {
</span><span class="cx" style="display: block; padding: 0 10px">                        return new WP_Error(
</span><span class="cx" style="display: block; padding: 0 10px">                                'menu_walker_not_exist',
</span></span></pre></div>
<a id="trunksrcwpadminincludespostphp"></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/post.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-admin/includes/post.php      2022-11-29 12:40:08 UTC (rev 54890)
+++ trunk/src/wp-admin/includes/post.php        2022-11-29 15:49:49 UTC (rev 54891)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -716,7 +716,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                        wp_schedule_event( time(), 'daily', 'wp_scheduled_auto_draft_delete' );
</span><span class="cx" style="display: block; padding: 0 10px">                }
</span><span class="cx" style="display: block; padding: 0 10px">        } else {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $post                 = new stdClass;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $post                 = new stdClass();
</ins><span class="cx" style="display: block; padding: 0 10px">                 $post->ID             = 0;
</span><span class="cx" style="display: block; padding: 0 10px">                $post->post_author    = '';
</span><span class="cx" style="display: block; padding: 0 10px">                $post->post_date      = '';
</span></span></pre></div>
<a id="trunksrcwpadminincludesprivacytoolsphp"></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/privacy-tools.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-admin/includes/privacy-tools.php     2022-11-29 12:40:08 UTC (rev 54890)
+++ trunk/src/wp-admin/includes/privacy-tools.php       2022-11-29 15:49:49 UTC (rev 54891)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -535,7 +535,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                wp_delete_file( $archive_pathname );
</span><span class="cx" style="display: block; padding: 0 10px">        }
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-        $zip = new ZipArchive;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $zip = new ZipArchive();
</ins><span class="cx" style="display: block; padding: 0 10px">         if ( true === $zip->open( $archive_pathname, ZipArchive::CREATE ) ) {
</span><span class="cx" style="display: block; padding: 0 10px">                if ( ! $zip->addFile( $json_report_pathname, 'export.json' ) ) {
</span><span class="cx" style="display: block; padding: 0 10px">                        $error = __( 'Unable to archive the personal data export file (JSON format).' );
</span></span></pre></div>
<a id="trunksrcwpadminincludesschemaphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/wp-admin/includes/schema.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-admin/includes/schema.php    2022-11-29 12:40:08 UTC (rev 54890)
+++ trunk/src/wp-admin/includes/schema.php      2022-11-29 15:49:49 UTC (rev 54891)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1050,7 +1050,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">         * created.
</span><span class="cx" style="display: block; padding: 0 10px">         */
</span><span class="cx" style="display: block; padding: 0 10px">        if ( ! is_multisite() ) {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $current_site            = new stdClass;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $current_site            = new stdClass();
</ins><span class="cx" style="display: block; padding: 0 10px">                 $current_site->domain    = $domain;
</span><span class="cx" style="display: block; padding: 0 10px">                $current_site->path      = $path;
</span><span class="cx" style="display: block; padding: 0 10px">                $current_site->site_name = ucfirst( $domain );
</span></span></pre></div>
<a id="trunksrcwpadminincludestemplatephp"></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/template.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-admin/includes/template.php  2022-11-29 12:40:08 UTC (rev 54890)
+++ trunk/src/wp-admin/includes/template.php    2022-11-29 15:49:49 UTC (rev 54891)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -104,7 +104,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">        $parsed_args = wp_parse_args( $params, $defaults );
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">        if ( empty( $parsed_args['walker'] ) || ! ( $parsed_args['walker'] instanceof Walker ) ) {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $walker = new Walker_Category_Checklist;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $walker = new Walker_Category_Checklist();
</ins><span class="cx" style="display: block; padding: 0 10px">         } else {
</span><span class="cx" style="display: block; padding: 0 10px">                $walker = $parsed_args['walker'];
</span><span class="cx" style="display: block; padding: 0 10px">        }
</span></span></pre></div>
<a id="trunksrcwpadminincludestranslationinstallphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/wp-admin/includes/translation-install.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-admin/includes/translation-install.php       2022-11-29 12:40:08 UTC (rev 54890)
+++ trunk/src/wp-admin/includes/translation-install.php 2022-11-29 15:49:49 UTC (rev 54891)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -237,7 +237,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">        $translation = (object) $translation;
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">        require_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php';
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-        $skin              = new Automatic_Upgrader_Skin;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $skin              = new Automatic_Upgrader_Skin();
</ins><span class="cx" style="display: block; padding: 0 10px">         $upgrader          = new Language_Pack_Upgrader( $skin );
</span><span class="cx" style="display: block; padding: 0 10px">        $translation->type = 'core';
</span><span class="cx" style="display: block; padding: 0 10px">        $result            = $upgrader->upgrade( $translation, array( 'clear_update_cache' => false ) );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -263,7 +263,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">        }
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">        require_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php';
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-        $skin     = new Automatic_Upgrader_Skin;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $skin     = new Automatic_Upgrader_Skin();
</ins><span class="cx" style="display: block; padding: 0 10px">         $upgrader = new Language_Pack_Upgrader( $skin );
</span><span class="cx" style="display: block; padding: 0 10px">        $upgrader->init();
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span></span></pre></div>
<a id="trunksrcwpadminincludesupdatecorephp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/wp-admin/includes/update-core.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-admin/includes/update-core.php       2022-11-29 12:40:08 UTC (rev 54890)
+++ trunk/src/wp-admin/includes/update-core.php 2022-11-29 15:49:49 UTC (rev 54891)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1395,7 +1395,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                                        // If a error occurs partway through this final step, keep the error flowing through, but keep process going.
</span><span class="cx" style="display: block; padding: 0 10px">                                        if ( is_wp_error( $_result ) ) {
</span><span class="cx" style="display: block; padding: 0 10px">                                                if ( ! is_wp_error( $result ) ) {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                                        $result = new WP_Error;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                                                 $result = new WP_Error();
</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">                                                $result->add(
</span></span></pre></div>
<a id="trunksrcwpadminincludesupdatephp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/wp-admin/includes/update.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-admin/includes/update.php    2022-11-29 12:40:08 UTC (rev 54890)
+++ trunk/src/wp-admin/includes/update.php      2022-11-29 15:49:49 UTC (rev 54891)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -93,7 +93,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">        require_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php';
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">        $auto_update = false;
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-        $upgrader    = new WP_Automatic_Updater;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $upgrader    = new WP_Automatic_Updater();
</ins><span class="cx" style="display: block; padding: 0 10px">         foreach ( $updates->updates as $update ) {
</span><span class="cx" style="display: block; padding: 0 10px">                if ( 'autoupdate' !== $update->response ) {
</span><span class="cx" style="display: block; padding: 0 10px">                        continue;
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -235,7 +235,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">        $cur = get_preferred_from_update_core();
</span><span class="cx" style="display: block; padding: 0 10px">        if ( ! is_object( $cur ) ) {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $cur = new stdClass;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $cur = new stdClass();
</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">        if ( ! isset( $cur->current ) ) {
</span></span></pre></div>
<a id="trunksrcwpadminincludesupgradephp"></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/upgrade.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-admin/includes/upgrade.php   2022-11-29 12:40:08 UTC (rev 54890)
+++ trunk/src/wp-admin/includes/upgrade.php     2022-11-29 15:49:49 UTC (rev 54891)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -2617,7 +2617,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">  */
</span><span class="cx" style="display: block; padding: 0 10px"> function get_alloptions_110() {
</span><span class="cx" style="display: block; padding: 0 10px">        global $wpdb;
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-        $all_options = new stdClass;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $all_options = new stdClass();
</ins><span class="cx" style="display: block; padding: 0 10px">         $options     = $wpdb->get_results( "SELECT option_name, option_value FROM $wpdb->options" );
</span><span class="cx" style="display: block; padding: 0 10px">        if ( $options ) {
</span><span class="cx" style="display: block; padding: 0 10px">                foreach ( $options as $option ) {
</span></span></pre></div>
<a id="trunksrcwpadminincludesuserphp"></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/user.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-admin/includes/user.php      2022-11-29 12:40:08 UTC (rev 54890)
+++ trunk/src/wp-admin/includes/user.php        2022-11-29 15:49:49 UTC (rev 54891)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -29,7 +29,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">  */
</span><span class="cx" style="display: block; padding: 0 10px"> function edit_user( $user_id = 0 ) {
</span><span class="cx" style="display: block; padding: 0 10px">        $wp_roles = wp_roles();
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-        $user     = new stdClass;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $user     = new stdClass();
</ins><span class="cx" style="display: block; padding: 0 10px">         $user_id  = (int) $user_id;
</span><span class="cx" style="display: block; padding: 0 10px">        if ( $user_id ) {
</span><span class="cx" style="display: block; padding: 0 10px">                $update           = true;
</span></span></pre></div>
<a id="trunksrcwpadminusereditphp"></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/user-edit.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-admin/user-edit.php  2022-11-29 12:40:08 UTC (rev 54890)
+++ trunk/src/wp-admin/user-edit.php    2022-11-29 15:49:49 UTC (rev 54891)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -104,7 +104,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> if ( IS_PROFILE_PAGE && isset( $_GET['newuseremail'] ) && $current_user->ID ) {
</span><span class="cx" style="display: block; padding: 0 10px">        $new_email = get_user_meta( $current_user->ID, '_new_email', true );
</span><span class="cx" style="display: block; padding: 0 10px">        if ( $new_email && hash_equals( $new_email['hash'], $_GET['newuseremail'] ) ) {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $user             = new stdClass;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $user             = new stdClass();
</ins><span class="cx" style="display: block; padding: 0 10px">                 $user->ID         = $current_user->ID;
</span><span class="cx" style="display: block; padding: 0 10px">                $user->user_email = esc_html( trim( $new_email['newemail'] ) );
</span><span class="cx" style="display: block; padding: 0 10px">                if ( is_multisite() && $wpdb->get_var( $wpdb->prepare( "SELECT user_login FROM {$wpdb->signups} WHERE user_login = %s", $current_user->user_login ) ) ) {
</span></span></pre></div>
<a id="trunksrcwpincludesadminbarphp"></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/admin-bar.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/admin-bar.php       2022-11-29 12:40:08 UTC (rev 54890)
+++ trunk/src/wp-includes/admin-bar.php 2022-11-29 15:49:49 UTC (rev 54891)
</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">        $admin_bar_class = apply_filters( 'wp_admin_bar_class', 'WP_Admin_Bar' );
</span><span class="cx" style="display: block; padding: 0 10px">        if ( class_exists( $admin_bar_class ) ) {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $wp_admin_bar = new $admin_bar_class;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $wp_admin_bar = new $admin_bar_class();
</ins><span class="cx" style="display: block; padding: 0 10px">         } else {
</span><span class="cx" style="display: block; padding: 0 10px">                return false;
</span><span class="cx" style="display: block; padding: 0 10px">        }
</span></span></pre></div>
<a id="trunksrcwpincludescapabilitiesphp"></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/capabilities.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/capabilities.php    2022-11-29 12:40:08 UTC (rev 54890)
+++ trunk/src/wp-includes/capabilities.php      2022-11-29 15:49:49 UTC (rev 54891)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -975,7 +975,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">        if ( empty( $user ) ) {
</span><span class="cx" style="display: block; padding: 0 10px">                // User is logged out, create anonymous user object.
</span><span class="cx" style="display: block; padding: 0 10px">                $user = new WP_User( 0 );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $user->init( new stdClass );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $user->init( new stdClass() );
</ins><span class="cx" style="display: block; padding: 0 10px">         }
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">        return $user->has_cap( $capability, ...$args );
</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       2022-11-29 12:40:08 UTC (rev 54890)
+++ trunk/src/wp-includes/category-template.php 2022-11-29 15:49:49 UTC (rev 54891)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1110,7 +1110,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> function walk_category_tree( ...$args ) {
</span><span class="cx" style="display: block; padding: 0 10px">        // The user's options are the third parameter.
</span><span class="cx" style="display: block; padding: 0 10px">        if ( empty( $args[2]['walker'] ) || ! ( $args[2]['walker'] instanceof Walker ) ) {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $walker = new Walker_Category;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $walker = new Walker_Category();
</ins><span class="cx" style="display: block; padding: 0 10px">         } else {
</span><span class="cx" style="display: block; padding: 0 10px">                /**
</span><span class="cx" style="display: block; padding: 0 10px">                 * @var Walker $walker
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1136,7 +1136,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> function walk_category_dropdown_tree( ...$args ) {
</span><span class="cx" style="display: block; padding: 0 10px">        // The user's options are the third parameter.
</span><span class="cx" style="display: block; padding: 0 10px">        if ( empty( $args[2]['walker'] ) || ! ( $args[2]['walker'] instanceof Walker ) ) {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $walker = new Walker_CategoryDropdown;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $walker = new Walker_CategoryDropdown();
</ins><span class="cx" style="display: block; padding: 0 10px">         } else {
</span><span class="cx" style="display: block; padding: 0 10px">                /**
</span><span class="cx" style="display: block; padding: 0 10px">                 * @var Walker $walker
</span></span></pre></div>
<a id="trunksrcwpincludesclasswpadminbarphp"></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-admin-bar.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/class-wp-admin-bar.php      2022-11-29 12:40:08 UTC (rev 54890)
+++ trunk/src/wp-includes/class-wp-admin-bar.php        2022-11-29 15:49:49 UTC (rev 54891)
</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">         * @since 3.1.0
</span><span class="cx" style="display: block; padding: 0 10px">         */
</span><span class="cx" style="display: block; padding: 0 10px">        public function initialize() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->user = new stdClass;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->user = new stdClass();
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                if ( is_user_logged_in() ) {
</span><span class="cx" style="display: block; padding: 0 10px">                        /* Populate settings we need for the menu based on the current user. */
</span></span></pre></div>
<a id="trunksrcwpincludesclasswpeditorphp"></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-editor.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/class-wp-editor.php 2022-11-29 12:40:08 UTC (rev 54890)
+++ trunk/src/wp-includes/class-wp-editor.php   2022-11-29 15:49:49 UTC (rev 54891)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1799,7 +1799,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                $query = apply_filters( 'wp_link_query_args', $query );
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                // Do main query.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $get_posts = new WP_Query;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $get_posts = new WP_Query();
</ins><span class="cx" style="display: block; padding: 0 10px">                 $posts     = $get_posts->query( $query );
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                // Build results.
</span></span></pre></div>
<a id="trunksrcwpincludesclasswphttpphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/wp-includes/class-wp-http.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/class-wp-http.php   2022-11-29 12:40:08 UTC (rev 54890)
+++ trunk/src/wp-includes/class-wp-http.php     2022-11-29 15:49:49 UTC (rev 54891)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -581,7 +581,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                // Transport claims to support request, instantiate it and give it a whirl.
</span><span class="cx" style="display: block; padding: 0 10px">                if ( empty( $transports[ $class ] ) ) {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                        $transports[ $class ] = new $class;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                 $transports[ $class ] = new $class();
</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">                $response = $transports[ $class ]->request( $url, $args );
</span></span></pre></div>
<a id="trunksrcwpincludesclasswpoembedphp"></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-oembed.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/class-wp-oembed.php 2022-11-29 12:40:08 UTC (rev 54890)
+++ trunk/src/wp-includes/class-wp-oembed.php   2022-11-29 15:49:49 UTC (rev 54891)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -639,7 +639,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                        return false;
</span><span class="cx" style="display: block; padding: 0 10px">                }
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $dom     = new DOMDocument;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $dom     = new DOMDocument();
</ins><span class="cx" style="display: block; padding: 0 10px">                 $success = $dom->loadXML( $response_body );
</span><span class="cx" style="display: block; padding: 0 10px">                if ( ! $success ) {
</span><span class="cx" style="display: block; padding: 0 10px">                        return false;
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -660,7 +660,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                        return false;
</span><span class="cx" style="display: block; padding: 0 10px">                }
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $return = new stdClass;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $return = new stdClass();
</ins><span class="cx" style="display: block; padding: 0 10px">                 foreach ( $xml as $key => $value ) {
</span><span class="cx" style="display: block; padding: 0 10px">                        $return->$key = (string) $value;
</span><span class="cx" style="display: block; padding: 0 10px">                }
</span></span></pre></div>
<a id="trunksrcwpincludesclasswptextdiffrenderertablephp"></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-text-diff-renderer-table.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/class-wp-text-diff-renderer-table.php       2022-11-29 12:40:08 UTC (rev 54890)
+++ trunk/src/wp-includes/class-wp-text-diff-renderer-table.php 2022-11-29 15:49:49 UTC (rev 54891)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -269,7 +269,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                foreach ( $orig_matches as $o => $f ) {
</span><span class="cx" style="display: block; padding: 0 10px">                        if ( is_numeric( $o ) && is_numeric( $f ) ) {
</span><span class="cx" style="display: block; padding: 0 10px">                                $text_diff = new Text_Diff( 'auto', array( array( $orig[ $o ] ), array( $final[ $f ] ) ) );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                $renderer  = new $this->inline_diff_renderer;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                         $renderer  = new $this->inline_diff_renderer();
</ins><span class="cx" style="display: block; padding: 0 10px">                                 $diff      = $renderer->render( $text_diff );
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                                // If they're too different, don't include any <ins> or <del>'s.
</span></span></pre></div>
<a id="trunksrcwpincludesclasswpuserphp"></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.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/class-wp-user.php   2022-11-29 12:40:08 UTC (rev 54890)
+++ trunk/src/wp-includes/class-wp-user.php     2022-11-29 15:49:49 UTC (rev 54891)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -156,7 +156,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                if ( $data ) {
</span><span class="cx" style="display: block; padding: 0 10px">                        $this->init( $data, $site_id );
</span><span class="cx" style="display: block; padding: 0 10px">                } else {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                        $this->data = new stdClass;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                 $this->data = new stdClass();
</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="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        2022-11-29 12:40:08 UTC (rev 54890)
+++ trunk/src/wp-includes/comment-template.php  2022-11-29 15:49:49 UTC (rev 54891)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -2238,7 +2238,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">        wp_queue_comments_for_comment_meta_lazyload( $_comments );
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">        if ( empty( $parsed_args['walker'] ) ) {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $walker = new Walker_Comment;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $walker = new Walker_Comment();
</ins><span class="cx" style="display: block; padding: 0 10px">         } else {
</span><span class="cx" style="display: block; padding: 0 10px">                $walker = $parsed_args['walker'];
</span><span class="cx" style="display: block; padding: 0 10px">        }
</span></span></pre></div>
<a id="trunksrcwpincludescommentphp"></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.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/comment.php 2022-11-29 12:40:08 UTC (rev 54890)
+++ trunk/src/wp-includes/comment.php   2022-11-29 15:49:49 UTC (rev 54891)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -171,7 +171,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">        );
</span><span class="cx" style="display: block; padding: 0 10px">        $parsed_args = wp_parse_args( $args, $defaults );
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-        $query = new WP_Comment_Query;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $query = new WP_Comment_Query();
</ins><span class="cx" style="display: block; padding: 0 10px">         return $query->query( $parsed_args );
</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">@@ -240,7 +240,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">  * @return WP_Comment[]|int[]|int List of comments or number of found comments if `$count` argument is true.
</span><span class="cx" style="display: block; padding: 0 10px">  */
</span><span class="cx" style="display: block; padding: 0 10px"> function get_comments( $args = '' ) {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-        $query = new WP_Comment_Query;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $query = new WP_Comment_Query();
</ins><span class="cx" style="display: block; padding: 0 10px">         return $query->query( $args );
</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">@@ -1023,7 +1023,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">        }
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">        if ( $threaded ) {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $walker = new Walker_Comment;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $walker = new Walker_Comment();
</ins><span class="cx" style="display: block; padding: 0 10px">                 $count  = ceil( $walker->get_number_of_root_elements( $comments ) / $per_page );
</span><span class="cx" style="display: block; padding: 0 10px">        } else {
</span><span class="cx" style="display: block; padding: 0 10px">                $count = ceil( count( $comments ) / $per_page );
</span></span></pre></div>
<a id="trunksrcwpincludesfunctionsphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/wp-includes/functions.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/functions.php       2022-11-29 12:40:08 UTC (rev 54890)
+++ trunk/src/wp-includes/functions.php 2022-11-29 15:49:49 UTC (rev 54891)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -4302,7 +4302,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                        }
</span><span class="cx" style="display: block; padding: 0 10px">                }
</span><span class="cx" style="display: block; padding: 0 10px">        } elseif ( is_object( $data ) ) {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $output = new stdClass;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $output = new stdClass();
</ins><span class="cx" style="display: block; padding: 0 10px">                 foreach ( $data as $id => $el ) {
</span><span class="cx" style="display: block; padding: 0 10px">                        if ( is_string( $id ) ) {
</span><span class="cx" style="display: block; padding: 0 10px">                                $clean_id = _wp_json_convert_string( $id );
</span></span></pre></div>
<a id="trunksrcwpincludesl10nphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/wp-includes/l10n.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/l10n.php    2022-11-29 12:40:08 UTC (rev 54890)
+++ trunk/src/wp-includes/l10n.php      2022-11-29 15:49:49 UTC (rev 54891)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1306,7 +1306,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">        static $noop_translations = null;
</span><span class="cx" style="display: block; padding: 0 10px">        if ( null === $noop_translations ) {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $noop_translations = new NOOP_Translations;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $noop_translations = new NOOP_Translations();
</ins><span class="cx" style="display: block; padding: 0 10px">         }
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">        return $noop_translations;
</span></span></pre></div>
<a id="trunksrcwpincludesmsloadphp"></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-load.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/ms-load.php 2022-11-29 12:40:08 UTC (rev 54890)
+++ trunk/src/wp-includes/ms-load.php   2022-11-29 15:49:49 UTC (rev 54891)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -297,7 +297,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">        // If the network is defined in wp-config.php, we can simply use that.
</span><span class="cx" style="display: block; padding: 0 10px">        if ( defined( 'DOMAIN_CURRENT_SITE' ) && defined( 'PATH_CURRENT_SITE' ) ) {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $current_site         = new stdClass;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $current_site         = new stdClass();
</ins><span class="cx" style="display: block; padding: 0 10px">                 $current_site->id     = defined( 'SITE_ID_CURRENT_SITE' ) ? SITE_ID_CURRENT_SITE : 1;
</span><span class="cx" style="display: block; padding: 0 10px">                $current_site->domain = DOMAIN_CURRENT_SITE;
</span><span class="cx" style="display: block; padding: 0 10px">                $current_site->path   = PATH_CURRENT_SITE;
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -387,7 +387,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">        // During activation of a new subdomain, the requested site does not yet exist.
</span><span class="cx" style="display: block; padding: 0 10px">        if ( empty( $current_blog ) && wp_installing() ) {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $current_blog          = new stdClass;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $current_blog          = new stdClass();
</ins><span class="cx" style="display: block; padding: 0 10px">                 $current_blog->blog_id = 1;
</span><span class="cx" style="display: block; padding: 0 10px">                $blog_id               = 1;
</span><span class="cx" style="display: block; padding: 0 10px">                $current_blog->public  = 1;
</span></span></pre></div>
<a id="trunksrcwpincludesnavmenutemplatephp"></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/nav-menu-template.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/nav-menu-template.php       2022-11-29 12:40:08 UTC (rev 54890)
+++ trunk/src/wp-includes/nav-menu-template.php 2022-11-29 15:49:49 UTC (rev 54891)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -617,7 +617,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">  * @return string The HTML list content for the menu items.
</span><span class="cx" style="display: block; padding: 0 10px">  */
</span><span class="cx" style="display: block; padding: 0 10px"> function walk_nav_menu_tree( $items, $depth, $args ) {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-        $walker = ( empty( $args->walker ) ) ? new Walker_Nav_Menu : $args->walker;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $walker = ( empty( $args->walker ) ) ? new Walker_Nav_Menu() : $args->walker;
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">        return $walker->walk( $items, $depth, $args );
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span></span></pre></div>
<a id="trunksrcwpincludesnavmenuphp"></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/nav-menu.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/nav-menu.php        2022-11-29 12:40:08 UTC (rev 54890)
+++ trunk/src/wp-includes/nav-menu.php  2022-11-29 15:49:49 UTC (rev 54891)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1010,7 +1010,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">        $object_id     = (int) $object_id;
</span><span class="cx" style="display: block; padding: 0 10px">        $menu_item_ids = array();
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-        $query      = new WP_Query;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $query      = new WP_Query();
</ins><span class="cx" style="display: block; padding: 0 10px">         $menu_items = $query->query(
</span><span class="cx" style="display: block; padding: 0 10px">                array(
</span><span class="cx" style="display: block; padding: 0 10px">                        'meta_key'       => '_menu_item_object_id',
</span></span></pre></div>
<a id="trunksrcwpincludespluggablephp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/wp-includes/pluggable.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/pluggable.php       2022-11-29 12:40:08 UTC (rev 54890)
+++ trunk/src/wp-includes/pluggable.php 2022-11-29 15:49:49 UTC (rev 54891)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -105,7 +105,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                        return false;
</span><span class="cx" style="display: block; padding: 0 10px">                }
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $user = new WP_User;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $user = new WP_User();
</ins><span class="cx" style="display: block; padding: 0 10px">                 $user->init( $userdata );
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                return $user;
</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   2022-11-29 12:40:08 UTC (rev 54890)
+++ trunk/src/wp-includes/post-template.php     2022-11-29 15:49:49 UTC (rev 54891)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1546,7 +1546,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">  */
</span><span class="cx" style="display: block; padding: 0 10px"> function walk_page_tree( $pages, $depth, $current_page, $args ) {
</span><span class="cx" style="display: block; padding: 0 10px">        if ( empty( $args['walker'] ) ) {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $walker = new Walker_Page;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $walker = new Walker_Page();
</ins><span class="cx" style="display: block; padding: 0 10px">         } else {
</span><span class="cx" style="display: block; padding: 0 10px">                /**
</span><span class="cx" style="display: block; padding: 0 10px">                 * @var Walker $walker
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1578,7 +1578,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">  */
</span><span class="cx" style="display: block; padding: 0 10px"> function walk_page_dropdown_tree( ...$args ) {
</span><span class="cx" style="display: block; padding: 0 10px">        if ( empty( $args[2]['walker'] ) ) { // The user's options are the third parameter.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $walker = new Walker_PageDropdown;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $walker = new Walker_PageDropdown();
</ins><span class="cx" style="display: block; padding: 0 10px">         } else {
</span><span class="cx" style="display: block; padding: 0 10px">                /**
</span><span class="cx" style="display: block; padding: 0 10px">                 * @var Walker $walker
</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    2022-11-29 12:40:08 UTC (rev 54890)
+++ trunk/src/wp-includes/post.php      2022-11-29 15:49:49 UTC (rev 54891)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -2410,7 +2410,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">        $parsed_args['ignore_sticky_posts'] = true;
</span><span class="cx" style="display: block; padding: 0 10px">        $parsed_args['no_found_rows']       = 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">-        $get_posts = new WP_Query;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $get_posts = new WP_Query();
</ins><span class="cx" style="display: block; padding: 0 10px">         return $get_posts->query( $parsed_args );
</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">@@ -3013,7 +3013,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">        global $wpdb;
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">        if ( ! post_type_exists( $type ) ) {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                return new stdClass;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         return new stdClass();
</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">        $cache_key = _count_posts_cache_key( $type, $perm );
</span></span></pre></div>
<a id="trunksrcwpincludesrestapiclasswprestresponsephp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/wp-includes/rest-api/class-wp-rest-response.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/rest-api/class-wp-rest-response.php 2022-11-29 12:40:08 UTC (rev 54890)
+++ trunk/src/wp-includes/rest-api/class-wp-rest-response.php   2022-11-29 15:49:49 UTC (rev 54891)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -227,7 +227,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                        return null;
</span><span class="cx" style="display: block; padding: 0 10px">                }
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $error = new WP_Error;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $error = new WP_Error();
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                if ( is_array( $this->get_data() ) ) {
</span><span class="cx" style="display: block; padding: 0 10px">                        $data = $this->get_data();
</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 2022-11-29 12:40:08 UTC (rev 54890)
+++ trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php   2022-11-29 15:49:49 UTC (rev 54891)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -766,7 +766,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                        // Ensure empty details is an empty object.
</span><span class="cx" style="display: block; padding: 0 10px">                        if ( empty( $data['media_details'] ) ) {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                $data['media_details'] = new stdClass;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                         $data['media_details'] = new stdClass();
</ins><span class="cx" style="display: block; padding: 0 10px">                         } elseif ( ! empty( $data['media_details']['sizes'] ) ) {
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                                foreach ( $data['media_details']['sizes'] as $size => &$size_data ) {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -797,7 +797,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                                        );
</span><span class="cx" style="display: block; padding: 0 10px">                                }
</span><span class="cx" style="display: block; padding: 0 10px">                        } else {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                $data['media_details']['sizes'] = new stdClass;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                         $data['media_details']['sizes'] = new stdClass();
</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="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    2022-11-29 12:40:08 UTC (rev 54890)
+++ trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.php      2022-11-29 15:49:49 UTC (rev 54891)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -274,7 +274,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                 */
</span><span class="cx" style="display: block; padding: 0 10px">                $prepared_args = apply_filters( 'rest_comment_query', $prepared_args, $request );
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $query        = new WP_Comment_Query;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $query        = new WP_Comment_Query();
</ins><span class="cx" style="display: block; padding: 0 10px">                 $query_result = $query->query( $prepared_args );
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                $comments = array();
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -295,7 +295,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                        // Out-of-bounds, run the query again without LIMIT for total count.
</span><span class="cx" style="display: block; padding: 0 10px">                        unset( $prepared_args['number'], $prepared_args['offset'] );
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                        $query                  = new WP_Comment_Query;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                 $query                  = new WP_Comment_Query();
</ins><span class="cx" style="display: block; padding: 0 10px">                         $prepared_args['count'] = true;
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                        $total_comments = $query->query( $prepared_args );
</span></span></pre></div>
<a id="trunksrcwpincludesrestapiendpointsclasswpresttermscontrollerphp"></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-terms-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-terms-controller.php       2022-11-29 12:40:08 UTC (rev 54890)
+++ trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-terms-controller.php 2022-11-29 15:49:49 UTC (rev 54891)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -807,7 +807,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">         * @return object Term object.
</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_database( $request ) {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $prepared_term = new stdClass;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $prepared_term = new stdClass();
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                $schema = $this->get_item_schema();
</span><span class="cx" style="display: block; padding: 0 10px">                if ( isset( $request['name'] ) && ! empty( $schema['properties']['name'] ) ) {
</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       2022-11-29 12:40:08 UTC (rev 54890)
+++ trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php 2022-11-29 15:49:49 UTC (rev 54891)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1121,7 +1121,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">         * @return object User object.
</span><span class="cx" style="display: block; padding: 0 10px">         */
</span><span class="cx" style="display: block; padding: 0 10px">        protected function prepare_item_for_database( $request ) {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $prepared_user = new stdClass;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $prepared_user = new stdClass();
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                $schema = $this->get_item_schema();
</span><span class="cx" style="display: block; padding: 0 10px"> 
</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        2022-11-29 12:40:08 UTC (rev 54890)
+++ trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-widget-types-controller.php  2022-11-29 15:49:49 UTC (rev 54891)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -529,7 +529,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                if ( ! empty( $widget_object->widget_options['show_instance_in_rest'] ) ) {
</span><span class="cx" style="display: block; padding: 0 10px">                        // Use new stdClass so that JSON result is {} and not [].
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                        $response['instance']['raw'] = empty( $instance ) ? new stdClass : $instance;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                 $response['instance']['raw'] = empty( $instance ) ? new stdClass() : $instance;
</ins><span class="cx" style="display: block; padding: 0 10px">                 }
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                return rest_ensure_response( $response );
</span></span></pre></div>
<a id="trunksrcwpincludesrestapiendpointsclasswprestwidgetscontrollerphp"></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-widgets-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-widgets-controller.php     2022-11-29 12:40:08 UTC (rev 54890)
+++ trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-widgets-controller.php       2022-11-29 15:49:49 UTC (rev 54891)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -715,7 +715,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                                if ( ! empty( $widget_object->widget_options['show_instance_in_rest'] ) ) {
</span><span class="cx" style="display: block; padding: 0 10px">                                        // Use new stdClass so that JSON result is {} and not [].
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                        $prepared['instance']['raw'] = empty( $instance ) ? new stdClass : $instance;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                                 $prepared['instance']['raw'] = empty( $instance ) ? new stdClass() : $instance;
</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="trunksrcwpincludesrestapiphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/wp-includes/rest-api.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/rest-api.php        2022-11-29 12:40:08 UTC (rev 54890)
+++ trunk/src/wp-includes/rest-api.php  2022-11-29 15:49:49 UTC (rev 54891)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -255,15 +255,15 @@
</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">        // Post types.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-        $controller = new WP_REST_Post_Types_Controller;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $controller = new WP_REST_Post_Types_Controller();
</ins><span class="cx" style="display: block; padding: 0 10px">         $controller->register_routes();
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">        // Post statuses.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-        $controller = new WP_REST_Post_Statuses_Controller;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $controller = new WP_REST_Post_Statuses_Controller();
</ins><span class="cx" style="display: block; padding: 0 10px">         $controller->register_routes();
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">        // Taxonomies.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-        $controller = new WP_REST_Taxonomies_Controller;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $controller = new WP_REST_Taxonomies_Controller();
</ins><span class="cx" style="display: block; padding: 0 10px">         $controller->register_routes();
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">        // Terms.
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -278,7 +278,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">        }
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">        // Users.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-        $controller = new WP_REST_Users_Controller;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $controller = new WP_REST_Users_Controller();
</ins><span class="cx" style="display: block; padding: 0 10px">         $controller->register_routes();
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">        // Application Passwords
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -286,7 +286,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">        $controller->register_routes();
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">        // Comments.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-        $controller = new WP_REST_Comments_Controller;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $controller = new WP_REST_Comments_Controller();
</ins><span class="cx" style="display: block; padding: 0 10px">         $controller->register_routes();
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">        $search_handlers = array(
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -318,15 +318,15 @@
</span><span class="cx" style="display: block; padding: 0 10px">        $controller->register_routes();
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">        // Global Styles.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-        $controller = new WP_REST_Global_Styles_Controller;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $controller = new WP_REST_Global_Styles_Controller();
</ins><span class="cx" style="display: block; padding: 0 10px">         $controller->register_routes();
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">        // Settings.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-        $controller = new WP_REST_Settings_Controller;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $controller = new WP_REST_Settings_Controller();
</ins><span class="cx" style="display: block; padding: 0 10px">         $controller->register_routes();
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">        // Themes.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-        $controller = new WP_REST_Themes_Controller;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $controller = new WP_REST_Themes_Controller();
</ins><span class="cx" style="display: block; padding: 0 10px">         $controller->register_routes();
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">        // Plugins.
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -562,7 +562,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                 * @param string $class_name The name of the server class. Default 'WP_REST_Server'.
</span><span class="cx" style="display: block; padding: 0 10px">                 */
</span><span class="cx" style="display: block; padding: 0 10px">                $wp_rest_server_class = apply_filters( 'wp_rest_server_class', 'WP_REST_Server' );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $wp_rest_server       = new $wp_rest_server_class;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $wp_rest_server       = new $wp_rest_server_class();
</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">                 * Fires when preparing to serve a REST API request.
</span></span></pre></div>
<a id="trunksrcwpincludesthemephp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/wp-includes/theme.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/theme.php   2022-11-29 12:40:08 UTC (rev 54890)
+++ trunk/src/wp-includes/theme.php     2022-11-29 15:49:49 UTC (rev 54891)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1331,7 +1331,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                }
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                if ( empty( $headers ) ) {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                        return new stdClass;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                 return new stdClass();
</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">                $_wp_random_header = (object) $headers[ array_rand( $headers ) ];
</span></span></pre></div>
<a id="trunksrcwpincludesupdatephp"></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/update.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/update.php  2022-11-29 12:40:08 UTC (rev 54890)
+++ trunk/src/wp-includes/update.php    2022-11-29 15:49:49 UTC (rev 54891)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -44,7 +44,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">        }
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">        if ( ! is_object( $current ) ) {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $current                  = new stdClass;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $current                  = new stdClass();
</ins><span class="cx" style="display: block; padding: 0 10px">                 $current->updates         = array();
</span><span class="cx" style="display: block; padding: 0 10px">                $current->version_checked = $wp_version;
</span><span class="cx" style="display: block; padding: 0 10px">        }
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -327,10 +327,10 @@
</span><span class="cx" style="display: block; padding: 0 10px">        $current = get_site_transient( 'update_plugins' );
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">        if ( ! is_object( $current ) ) {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $current = new stdClass;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $current = new stdClass();
</ins><span class="cx" style="display: block; padding: 0 10px">         }
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-        $updates               = new stdClass;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $updates               = new stdClass();
</ins><span class="cx" style="display: block; padding: 0 10px">         $updates->last_checked = time();
</span><span class="cx" style="display: block; padding: 0 10px">        $updates->response     = array();
</span><span class="cx" style="display: block; padding: 0 10px">        $updates->translations = array();
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -595,7 +595,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">        $last_update = get_site_transient( 'update_themes' );
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">        if ( ! is_object( $last_update ) ) {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $last_update = new stdClass;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $last_update = new stdClass();
</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">        $themes  = array();
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -734,7 +734,7 @@
</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><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-        $new_update               = new stdClass;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $new_update               = new stdClass();
</ins><span class="cx" style="display: block; padding: 0 10px">         $new_update->last_checked = time();
</span><span class="cx" style="display: block; padding: 0 10px">        $new_update->checked      = $checked;
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -846,7 +846,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">        include_once ABSPATH . 'wp-admin/includes/admin.php';
</span><span class="cx" style="display: block; padding: 0 10px">        require_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php';
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-        $upgrader = new WP_Automatic_Updater;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $upgrader = new WP_Automatic_Updater();
</ins><span class="cx" style="display: block; padding: 0 10px">         $upgrader->run();
</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="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    2022-11-29 12:40:08 UTC (rev 54890)
+++ trunk/src/wp-includes/user.php      2022-11-29 15:49:49 UTC (rev 54891)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -951,7 +951,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">        if ( ! is_multisite() ) {
</span><span class="cx" style="display: block; padding: 0 10px">                $site_id                        = get_current_blog_id();
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $sites                          = array( $site_id => new stdClass );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $sites                          = array( $site_id => new stdClass() );
</ins><span class="cx" style="display: block; padding: 0 10px">                 $sites[ $site_id ]->userblog_id = $site_id;
</span><span class="cx" style="display: block; padding: 0 10px">                $sites[ $site_id ]->blogname    = get_option( 'blogname' );
</span><span class="cx" style="display: block; padding: 0 10px">                $sites[ $site_id ]->domain      = '';
</span></span></pre></div>
<a id="trunksrcxmlrpcphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/xmlrpc.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/xmlrpc.php      2022-11-29 12:40:08 UTC (rev 54890)
+++ trunk/src/xmlrpc.php        2022-11-29 15:49:49 UTC (rev 54891)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -81,7 +81,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">  * @param string $class The name of the XML-RPC server class.
</span><span class="cx" style="display: block; padding: 0 10px">  */
</span><span class="cx" style="display: block; padding: 0 10px"> $wp_xmlrpc_server_class = apply_filters( 'wp_xmlrpc_server_class', 'wp_xmlrpc_server' );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-$wp_xmlrpc_server       = new $wp_xmlrpc_server_class;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+$wp_xmlrpc_server       = new $wp_xmlrpc_server_class();
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px"> // Fire off the request.
</span><span class="cx" style="display: block; padding: 0 10px"> $wp_xmlrpc_server->serve_request();
</span></span></pre></div>
<a id="trunktestsphpunitincludestestcaserestcontrollerphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/includes/testcase-rest-controller.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/includes/testcase-rest-controller.php 2022-11-29 12:40:08 UTC (rev 54890)
+++ trunk/tests/phpunit/includes/testcase-rest-controller.php   2022-11-29 15:49:49 UTC (rev 54891)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -9,7 +9,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                add_filter( 'rest_url', array( $this, 'filter_rest_url_for_leading_slash' ), 10, 2 );
</span><span class="cx" style="display: block; padding: 0 10px">                /** @var WP_REST_Server $wp_rest_server */
</span><span class="cx" style="display: block; padding: 0 10px">                global $wp_rest_server;
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $wp_rest_server = new Spy_REST_Server;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $wp_rest_server = new Spy_REST_Server();
</ins><span class="cx" style="display: block; padding: 0 10px">                 do_action( 'rest_api_init', $wp_rest_server );
</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="trunktestsphpunittestsadminbarphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/adminbar.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/adminbar.php    2022-11-29 12:40:08 UTC (rev 54890)
+++ trunk/tests/phpunit/tests/adminbar.php      2022-11-29 15:49:49 UTC (rev 54891)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -37,7 +37,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                register_post_type( 'content', array( 'show_in_admin_bar' => 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">-                $admin_bar = new WP_Admin_Bar;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $admin_bar = new WP_Admin_Bar();
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                wp_admin_bar_new_content_menu( $admin_bar );
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -54,7 +54,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">        public function test_merging_existing_meta_values() {
</span><span class="cx" style="display: block; padding: 0 10px">                wp_set_current_user( self::$editor_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">-                $admin_bar = new WP_Admin_Bar;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $admin_bar = new WP_Admin_Bar();
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                $admin_bar->add_node(
</span><span class="cx" style="display: block; padding: 0 10px">                        array(
</span></span></pre></div>
<a id="trunktestsphpunittestsblockseditorphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/blocks/editor.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/blocks/editor.php       2022-11-29 12:40:08 UTC (rev 54890)
+++ trunk/tests/phpunit/tests/blocks/editor.php 2022-11-29 15:49:49 UTC (rev 54891)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -31,7 +31,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                $post = self::factory()->post->create_and_get( $args );
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                global $wp_rest_server;
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $wp_rest_server = new Spy_REST_Server;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $wp_rest_server = new Spy_REST_Server();
</ins><span class="cx" style="display: block; padding: 0 10px">                 do_action( 'rest_api_init', $wp_rest_server );
</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="trunktestsphpunittestscachephp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/cache.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/cache.php       2022-11-29 12:40:08 UTC (rev 54890)
+++ trunk/tests/phpunit/tests/cache.php 2022-11-29 15:49:49 UTC (rev 54891)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -230,7 +230,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">        // Make sure objects are cloned going to and from the cache.
</span><span class="cx" style="display: block; padding: 0 10px">        public function test_object_refs() {
</span><span class="cx" style="display: block; padding: 0 10px">                $key           = __FUNCTION__ . '_1';
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $object_a      = new stdClass;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $object_a      = new stdClass();
</ins><span class="cx" style="display: block; padding: 0 10px">                 $object_a->foo = 'alpha';
</span><span class="cx" style="display: block; padding: 0 10px">                $this->cache->set( $key, $object_a );
</span><span class="cx" style="display: block; padding: 0 10px">                $object_a->foo = 'bravo';
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -240,7 +240,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                $this->assertSame( 'bravo', $object_a->foo );
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                $key           = __FUNCTION__ . '_2';
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $object_a      = new stdClass;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $object_a      = new stdClass();
</ins><span class="cx" style="display: block; padding: 0 10px">                 $object_a->foo = 'alpha';
</span><span class="cx" style="display: block; padding: 0 10px">                $this->cache->add( $key, $object_a );
</span><span class="cx" style="display: block; padding: 0 10px">                $object_a->foo = 'bravo';
</span></span></pre></div>
<a id="trunktestsphpunittestsdependenciesjqueryphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/dependencies/jquery.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/dependencies/jquery.php 2022-11-29 12:40:08 UTC (rev 54890)
+++ trunk/tests/phpunit/tests/dependencies/jquery.php   2022-11-29 15:49:49 UTC (rev 54891)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -10,7 +10,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">         * @covers WP_Scripts::query
</span><span class="cx" style="display: block; padding: 0 10px">         */
</span><span class="cx" style="display: block; padding: 0 10px">        public function test_location_of_jquery() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $scripts = new WP_Scripts;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $scripts = new WP_Scripts();
</ins><span class="cx" style="display: block; padding: 0 10px">                 wp_default_scripts( $scripts );
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                if ( SCRIPT_DEBUG ) {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -106,7 +106,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">         * @covers WP_Scripts::do_items
</span><span class="cx" style="display: block; padding: 0 10px">         */
</span><span class="cx" style="display: block; padding: 0 10px">        public function test_jquery_in_footer() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $scripts = new WP_Scripts;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $scripts = new WP_Scripts();
</ins><span class="cx" style="display: block; padding: 0 10px">                 $scripts->add( 'jquery', false, array( 'jquery-core', 'jquery-migrate' ) );
</span><span class="cx" style="display: block; padding: 0 10px">                $scripts->add( 'jquery-core', '/jquery.js', array() );
</span><span class="cx" style="display: block; padding: 0 10px">                $scripts->add( 'jquery-migrate', '/jquery-migrate.js', array() );
</span></span></pre></div>
<a id="trunktestsphpunittestsdependenciesscriptsphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/dependencies/scripts.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/dependencies/scripts.php        2022-11-29 12:40:08 UTC (rev 54890)
+++ trunk/tests/phpunit/tests/dependencies/scripts.php  2022-11-29 15:49:49 UTC (rev 54891)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -276,7 +276,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">         * @covers WP_Dependencies::do_items
</span><span class="cx" style="display: block; padding: 0 10px">         */
</span><span class="cx" style="display: block; padding: 0 10px">        public function test_group_mismatch_in_deps() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $scripts = new WP_Scripts;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $scripts = new WP_Scripts();
</ins><span class="cx" style="display: block; padding: 0 10px">                 $scripts->add( 'one', 'one', array(), 'v1', 1 );
</span><span class="cx" style="display: block; padding: 0 10px">                $scripts->add( 'two', 'two', array( 'one' ) );
</span><span class="cx" style="display: block; padding: 0 10px">                $scripts->add( 'three', 'three', array( 'two' ), 'v1', 1 );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -295,7 +295,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                $this->assertContains( 'two', $scripts->done );
</span><span class="cx" style="display: block; padding: 0 10px">                $this->assertContains( 'three', $scripts->done );
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $scripts = new WP_Scripts;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $scripts = new WP_Scripts();
</ins><span class="cx" style="display: block; padding: 0 10px">                 $scripts->add( 'one', 'one', array(), 'v1', 1 );
</span><span class="cx" style="display: block; padding: 0 10px">                $scripts->add( 'two', 'two', array( 'one' ), 'v1', 1 );
</span><span class="cx" style="display: block; padding: 0 10px">                $scripts->add( 'three', 'three', array( 'one' ) );
</span></span></pre></div>
<a id="trunktestsphpunittestsdependenciesphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/dependencies.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/dependencies.php        2022-11-29 12:40:08 UTC (rev 54890)
+++ trunk/tests/phpunit/tests/dependencies.php  2022-11-29 15:49:49 UTC (rev 54891)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -5,7 +5,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">  */
</span><span class="cx" style="display: block; padding: 0 10px"> class Tests_Dependencies extends WP_UnitTestCase {
</span><span class="cx" style="display: block; padding: 0 10px">        public function test_add() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $dep = new WP_Dependencies;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $dep = new WP_Dependencies();
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                $this->assertTrue( $dep->add( 'one', '' ) );
</span><span class="cx" style="display: block; padding: 0 10px">                $this->assertTrue( $dep->add( 'two', '' ) );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -18,7 +18,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">        }
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">        public function test_remove() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $dep = new WP_Dependencies;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $dep = new WP_Dependencies();
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                $this->assertTrue( $dep->add( 'one', '' ) );
</span><span class="cx" style="display: block; padding: 0 10px">                $this->assertTrue( $dep->add( 'two', '' ) );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -31,7 +31,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">        }
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">        public function test_enqueue() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $dep = new WP_Dependencies;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $dep = new WP_Dependencies();
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                $this->assertTrue( $dep->add( 'one', '' ) );
</span><span class="cx" style="display: block; padding: 0 10px">                $this->assertTrue( $dep->add( 'two', '' ) );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -47,7 +47,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">        }
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">        public function test_dequeue() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $dep = new WP_Dependencies;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $dep = new WP_Dependencies();
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                $this->assertTrue( $dep->add( 'one', '' ) );
</span><span class="cx" style="display: block; padding: 0 10px">                $this->assertTrue( $dep->add( 'two', '' ) );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -67,7 +67,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">        }
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">        public function test_enqueue_args() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $dep = new WP_Dependencies;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $dep = new WP_Dependencies();
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                $this->assertTrue( $dep->add( 'one', '' ) );
</span><span class="cx" style="display: block; padding: 0 10px">                $this->assertTrue( $dep->add( 'two', '' ) );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -85,7 +85,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">        }
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">        public function test_dequeue_args() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $dep = new WP_Dependencies;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $dep = new WP_Dependencies();
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                $this->assertTrue( $dep->add( 'one', '' ) );
</span><span class="cx" style="display: block; padding: 0 10px">                $this->assertTrue( $dep->add( 'two', '' ) );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -112,7 +112,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">         * @ticket 21741
</span><span class="cx" style="display: block; padding: 0 10px">         */
</span><span class="cx" style="display: block; padding: 0 10px">        public function test_query_and_registered_enqueued() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $dep = new WP_Dependencies;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $dep = new WP_Dependencies();
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                $this->assertTrue( $dep->add( 'one', '' ) );
</span><span class="cx" style="display: block; padding: 0 10px">                $this->assertInstanceOf( '_WP_Dependency', $dep->query( 'one' ) );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -138,7 +138,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">        }
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">        function test_enqueue_before_register() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $dep = new WP_Dependencies;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $dep = new WP_Dependencies();
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                $this->assertArrayNotHasKey( 'one', $dep->registered );
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span></span></pre></div>
<a id="trunktestsphpunittestsformattingsanitizeTextFieldphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/formatting/sanitizeTextField.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/formatting/sanitizeTextField.php        2022-11-29 12:40:08 UTC (rev 54890)
+++ trunk/tests/phpunit/tests/formatting/sanitizeTextField.php  2022-11-29 15:49:49 UTC (rev 54891)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -105,7 +105,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                                '',
</span><span class="cx" style="display: block; padding: 0 10px">                        ),
</span><span class="cx" style="display: block; padding: 0 10px">                        array(
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                new WP_Query,
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                         new WP_Query(),
</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">                        array(
</span></span></pre></div>
<a id="trunktestsphpunittestsformattingstripslashesDeepphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/formatting/stripslashesDeep.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/formatting/stripslashesDeep.php 2022-11-29 12:40:08 UTC (rev 54890)
+++ trunk/tests/phpunit/tests/formatting/stripslashesDeep.php   2022-11-29 15:49:49 UTC (rev 54891)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -26,7 +26,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                $this->assertSame( $arr, stripslashes_deep( $arr ) ); // Keyed array.
</span><span class="cx" style="display: block; padding: 0 10px">                $this->assertSame( array_values( $arr ), stripslashes_deep( array_values( $arr ) ) ); // Non-keyed.
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $obj = new stdClass;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $obj = new stdClass();
</ins><span class="cx" style="display: block; padding: 0 10px">                 foreach ( $arr as $k => $v ) {
</span><span class="cx" style="display: block; padding: 0 10px">                        $obj->$k = $v;
</span><span class="cx" style="display: block; padding: 0 10px">                }
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -41,9 +41,9 @@
</span><span class="cx" style="display: block; padding: 0 10px">                $this->assertSame( array( 'a' => $new ), stripslashes_deep( array( 'a' => $old ) ) ); // Keyed array.
</span><span class="cx" style="display: block; padding: 0 10px">                $this->assertSame( array( $new ), stripslashes_deep( array( $old ) ) ); // Non-keyed.
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $obj_old    = new stdClass;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $obj_old    = new stdClass();
</ins><span class="cx" style="display: block; padding: 0 10px">                 $obj_old->a = $old;
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $obj_new    = new stdClass;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $obj_new    = new stdClass();
</ins><span class="cx" style="display: block; padding: 0 10px">                 $obj_new->a = $new;
</span><span class="cx" style="display: block; padding: 0 10px">                $this->assertEquals( $obj_new, stripslashes_deep( $obj_old ) );
</span><span class="cx" style="display: block; padding: 0 10px">        }
</span></span></pre></div>
<a id="trunktestsphpunittestsformattingwpSlashphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/formatting/wpSlash.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/formatting/wpSlash.php  2022-11-29 12:40:08 UTC (rev 54890)
+++ trunk/tests/phpunit/tests/formatting/wpSlash.php    2022-11-29 15:49:49 UTC (rev 54891)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -84,7 +84,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                $this->assertSame( $arr, wp_slash( $arr ) ); // Keyed array.
</span><span class="cx" style="display: block; padding: 0 10px">                $this->assertSame( array_values( $arr ), wp_slash( array_values( $arr ) ) ); // Non-keyed.
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $obj = new stdClass;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $obj = new stdClass();
</ins><span class="cx" style="display: block; padding: 0 10px">                 foreach ( $arr as $k => $v ) {
</span><span class="cx" style="display: block; padding: 0 10px">                        $obj->$k = $v;
</span><span class="cx" style="display: block; padding: 0 10px">                }
</span></span></pre></div>
<a id="trunktestsphpunittestsfunctionsphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/functions.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/functions.php   2022-11-29 12:40:08 UTC (rev 54890)
+++ trunk/tests/phpunit/tests/functions.php     2022-11-29 15:49:49 UTC (rev 54891)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -5,7 +5,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">  */
</span><span class="cx" style="display: block; padding: 0 10px"> class Tests_Functions extends WP_UnitTestCase {
</span><span class="cx" style="display: block; padding: 0 10px">        public function test_wp_parse_args_object() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $x        = new MockClass;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $x        = new MockClass();
</ins><span class="cx" style="display: block; padding: 0 10px">                 $x->_baba = 5;
</span><span class="cx" style="display: block; padding: 0 10px">                $x->yZ    = 'baba'; // phpcs:ignore WordPress.NamingConventions.ValidVariableName.UsedPropertyNotSnakeCase
</span><span class="cx" style="display: block; padding: 0 10px">                $x->a     = array( 5, 111, 'x' );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -17,7 +17,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                        ),
</span><span class="cx" style="display: block; padding: 0 10px">                        wp_parse_args( $x )
</span><span class="cx" style="display: block; padding: 0 10px">                );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $y = new MockClass;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $y = new MockClass();
</ins><span class="cx" style="display: block; padding: 0 10px">                 $this->assertSame( array(), wp_parse_args( $y ) );
</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">@@ -41,7 +41,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">        }
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">        public function test_wp_parse_args_defaults() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $x        = new MockClass;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $x        = new MockClass();
</ins><span class="cx" style="display: block; padding: 0 10px">                 $x->_baba = 5;
</span><span class="cx" style="display: block; padding: 0 10px">                $x->yZ    = 'baba'; // phpcs:ignore WordPress.NamingConventions.ValidVariableName.UsedPropertyNotSnakeCase
</span><span class="cx" style="display: block; padding: 0 10px">                $x->a     = array( 5, 111, 'x' );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1113,7 +1113,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">         * @ticket 28786
</span><span class="cx" style="display: block; padding: 0 10px">         */
</span><span class="cx" style="display: block; padding: 0 10px">        public function test_wp_json_encode_object() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $object    = new stdClass;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $object    = new stdClass();
</ins><span class="cx" style="display: block; padding: 0 10px">                 $object->a = 'b';
</span><span class="cx" style="display: block; padding: 0 10px">                $this->assertSame( wp_json_encode( $object ), '{"a":"b"}' );
</span><span class="cx" style="display: block; padding: 0 10px">        }
</span></span></pre></div>
<a id="trunktestsphpunittestsimportparserphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/import/parser.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/import/parser.php       2022-11-29 12:40:08 UTC (rev 54890)
+++ trunk/tests/phpunit/tests/import/parser.php 2022-11-29 15:49:49 UTC (rev 54891)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -33,7 +33,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                // Regex based parser cannot detect malformed XML.
</span><span class="cx" style="display: block; padding: 0 10px">                foreach ( array( 'WXR_Parser_SimpleXML', 'WXR_Parser_XML' ) as $p ) {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                        $parser = new $p;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                 $parser = new $p();
</ins><span class="cx" style="display: block; padding: 0 10px">                         $result = $parser->parse( $file );
</span><span class="cx" style="display: block; padding: 0 10px">                        $this->assertWPError( $result );
</span><span class="cx" style="display: block; padding: 0 10px">                        $this->assertSame( 'There was an error when reading this WXR file', $result->get_error_message() );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -51,7 +51,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                foreach ( array( 'WXR_Parser_SimpleXML', 'WXR_Parser_XML', 'WXR_Parser_Regex' ) as $p ) {
</span><span class="cx" style="display: block; padding: 0 10px">                        foreach ( array( $f1, $f2 ) as $file ) {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                $parser = new $p;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                         $parser = new $p();
</ins><span class="cx" style="display: block; padding: 0 10px">                                 $result = $parser->parse( $file );
</span><span class="cx" style="display: block; padding: 0 10px">                                $this->assertWPError( $result );
</span><span class="cx" style="display: block; padding: 0 10px">                                $this->assertSame( 'This does not appear to be a WXR file, missing/invalid WXR version number', $result->get_error_message() );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -69,7 +69,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                foreach ( array( 'WXR_Parser_SimpleXML', 'WXR_Parser_XML', 'WXR_Parser_Regex' ) as $p ) {
</span><span class="cx" style="display: block; padding: 0 10px">                        $message = $p . ' failed';
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                        $parser  = new $p;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                 $parser  = new $p();
</ins><span class="cx" style="display: block; padding: 0 10px">                         $result  = $parser->parse( $file );
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                        $this->assertIsArray( $result, $message );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -167,7 +167,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                foreach ( array( 'WXR_Parser_SimpleXML', 'WXR_Parser_XML', 'WXR_Parser_Regex' ) as $p ) {
</span><span class="cx" style="display: block; padding: 0 10px">                        $message = $p . ' failed';
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                        $parser  = new $p;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                 $parser  = new $p();
</ins><span class="cx" style="display: block; padding: 0 10px">                         $result  = $parser->parse( $file );
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                        $this->assertIsArray( $result, $message );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -265,7 +265,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                foreach ( array( 'WXR_Parser_SimpleXML', 'WXR_Parser_XML', 'WXR_Parser_Regex' ) as $p ) {
</span><span class="cx" style="display: block; padding: 0 10px">                        $message = 'Parser ' . $p;
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                        $parser  = new $p;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                 $parser  = new $p();
</ins><span class="cx" style="display: block; padding: 0 10px">                         $result  = $parser->parse( $file );
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                        $post = $result['posts'][0];
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -298,7 +298,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">        public function test_unescaped_cdata_closing_sequence() {
</span><span class="cx" style="display: block; padding: 0 10px">                $file = DIR_TESTDATA . '/export/crazy-cdata.xml';
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $parser = new WXR_Parser_Regex;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $parser = new WXR_Parser_Regex();
</ins><span class="cx" style="display: block; padding: 0 10px">                 $result = $parser->parse( $file );
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                $post = $result['posts'][0];
</span></span></pre></div>
<a id="trunktestsphpunittestsmediaphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/media.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/media.php       2022-11-29 12:40:08 UTC (rev 54890)
+++ trunk/tests/phpunit/tests/media.php 2022-11-29 15:49:49 UTC (rev 54891)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -361,7 +361,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">         * @dataProvider data_autoembed
</span><span class="cx" style="display: block; padding: 0 10px">         */
</span><span class="cx" style="display: block; padding: 0 10px">        public function test_autoembed( $content, $result = null ) {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $wp_embed = new Test_Autoembed;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $wp_embed = new Test_Autoembed();
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                $this->assertSame( $wp_embed->autoembed( $content ), $result ? $result : $content );
</span><span class="cx" style="display: block; padding: 0 10px">        }
</span></span></pre></div>
<a id="trunktestsphpunittestsmenuwpExpandNavMenuPostDataphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/menu/wpExpandNavMenuPostData.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/menu/wpExpandNavMenuPostData.php        2022-11-29 12:40:08 UTC (rev 54890)
+++ trunk/tests/phpunit/tests/menu/wpExpandNavMenuPostData.php  2022-11-29 15:49:49 UTC (rev 54891)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -13,7 +13,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                }
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                $data                   = array();
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $data[0]                = new StdClass;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $data[0]                = new StdClass();
</ins><span class="cx" style="display: block; padding: 0 10px">                 $data[0]->name          = 'yesorno';
</span><span class="cx" style="display: block; padding: 0 10px">                $data[0]->value         = 'yes';
</span><span class="cx" style="display: block; padding: 0 10px">                $_POST['nav-menu-data'] = addslashes( json_encode( $data ) );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -36,7 +36,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                }
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                $data                   = array();
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $data[0]                = new StdClass;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $data[0]                = new StdClass();
</ins><span class="cx" style="display: block; padding: 0 10px">                 $data[0]->name          = 'would[1][do][the][trick]';
</span><span class="cx" style="display: block; padding: 0 10px">                $data[0]->value         = 'yes';
</span><span class="cx" style="display: block; padding: 0 10px">                $_POST['nav-menu-data'] = addslashes( json_encode( $data ) );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -66,13 +66,13 @@
</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">                $data                   = array();
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $data[0]                = new StdClass;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $data[0]                = new StdClass();
</ins><span class="cx" style="display: block; padding: 0 10px">                 $data[0]->name          = 'would[1][do][the][trick]';
</span><span class="cx" style="display: block; padding: 0 10px">                $data[0]->value         = 'yes';
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $data[1]                = new StdClass;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $data[1]                = new StdClass();
</ins><span class="cx" style="display: block; padding: 0 10px">                 $data[1]->name          = 'would[2][do][the][trick]';
</span><span class="cx" style="display: block; padding: 0 10px">                $data[1]->value         = 'yes';
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $data[2]                = new StdClass;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $data[2]                = new StdClass();
</ins><span class="cx" style="display: block; padding: 0 10px">                 $data[2]->name          = 'would[2][do][the][job]';
</span><span class="cx" style="display: block; padding: 0 10px">                $data[2]->value         = 'yes';
</span><span class="cx" style="display: block; padding: 0 10px">                $_POST['nav-menu-data'] = addslashes( json_encode( $data ) );
</span></span></pre></div>
<a id="trunktestsphpunittestsmetaphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/meta.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/meta.php        2022-11-29 12:40:08 UTC (rev 54890)
+++ trunk/tests/phpunit/tests/meta.php  2022-11-29 15:49:49 UTC (rev 54891)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -401,7 +401,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">         * @ticket 15030
</span><span class="cx" style="display: block; padding: 0 10px">         */
</span><span class="cx" style="display: block; padding: 0 10px">        public function test_get_metadata_with_empty_key_object_value() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $data      = new stdClass;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $data      = new stdClass();
</ins><span class="cx" style="display: block; padding: 0 10px">                 $data->foo = 'bar';
</span><span class="cx" style="display: block; padding: 0 10px">                $value     = serialize( $data );
</span><span class="cx" style="display: block; padding: 0 10px">                add_metadata( 'user', $this->author->ID, 'foo', $data );
</span></span></pre></div>
<a id="trunktestsphpunittestsoembedcontrollerphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/oembed/controller.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/oembed/controller.php   2022-11-29 12:40:08 UTC (rev 54890)
+++ trunk/tests/phpunit/tests/oembed/controller.php     2022-11-29 15:49:49 UTC (rev 54891)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -49,7 +49,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                /** @var WP_REST_Server $wp_rest_server */
</span><span class="cx" style="display: block; padding: 0 10px">                global $wp_rest_server;
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $wp_rest_server = new Spy_REST_Server;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $wp_rest_server = new Spy_REST_Server();
</ins><span class="cx" style="display: block; padding: 0 10px">                 do_action( 'rest_api_init', $wp_rest_server );
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                add_filter( 'pre_http_request', array( $this, 'mock_embed_request' ), 10, 3 );
</span></span></pre></div>
<a id="trunktestsphpunittestspomomophp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/pomo/mo.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/pomo/mo.php     2022-11-29 12:40:08 UTC (rev 54890)
+++ trunk/tests/phpunit/tests/pomo/mo.php       2022-11-29 15:49:49 UTC (rev 54891)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -145,7 +145,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">        public function test_export_should_not_include_empty_translations() {
</span><span class="cx" style="display: block; padding: 0 10px">                $entries = array();
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $mo      = new MO;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $mo      = new MO();
</ins><span class="cx" style="display: block; padding: 0 10px">                 $mo->add_entry(
</span><span class="cx" style="display: block; padding: 0 10px">                        array(
</span><span class="cx" style="display: block; padding: 0 10px">                                'singular'     => 'baba',
</span></span></pre></div>
<a id="trunktestsphpunittestspomonoopTranslationsphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/pomo/noopTranslations.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/pomo/noopTranslations.php       2022-11-29 12:40:08 UTC (rev 54890)
+++ trunk/tests/phpunit/tests/pomo/noopTranslations.php 2022-11-29 15:49:49 UTC (rev 54891)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -28,7 +28,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">        public function set_up() {
</span><span class="cx" style="display: block; padding: 0 10px">                parent::set_up();
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->noop         = new NOOP_Translations;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->noop         = new NOOP_Translations();
</ins><span class="cx" style="display: block; padding: 0 10px">                 $this->entry        = new Translation_Entry( array( 'singular' => 'baba' ) );
</span><span class="cx" style="display: block; padding: 0 10px">                $this->plural_entry = new Translation_Entry(
</span><span class="cx" style="display: block; padding: 0 10px">                        array(
</span></span></pre></div>
<a id="trunktestsphpunittestspomotranslationsphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/pomo/translations.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/pomo/translations.php   2022-11-29 12:40:08 UTC (rev 54890)
+++ trunk/tests/phpunit/tests/pomo/translations.php     2022-11-29 15:49:49 UTC (rev 54891)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -121,7 +121,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                $domain        = new Translations();
</span><span class="cx" style="display: block; padding: 0 10px">                $domain->add_entry( $entry_digit_1 );
</span><span class="cx" style="display: block; padding: 0 10px">                $domain->add_entry( $entry_digit_2 );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $dummy_translation = new Translations;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $dummy_translation = new Translations();
</ins><span class="cx" style="display: block; padding: 0 10px">                 $this->assertSame( '1', $domain->translate( '1' ) );
</span><span class="cx" style="display: block; padding: 0 10px">                $domain->merge_with( $dummy_translation );
</span><span class="cx" style="display: block; padding: 0 10px">                $this->assertSame( '1', $domain->translate( '1' ) );
</span></span></pre></div>
<a id="trunktestsphpunittestspostmetaphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/post/meta.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/post/meta.php   2022-11-29 12:40:08 UTC (rev 54890)
+++ trunk/tests/phpunit/tests/post/meta.php     2022-11-29 15:49:49 UTC (rev 54891)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -169,7 +169,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                $mid = add_post_meta( self::$post_id, 'get_post_meta_by_key', 'get_post_meta_by_key_value', true );
</span><span class="cx" style="display: block; padding: 0 10px">                $this->assertIsInt( $mid );
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $mobj             = new stdClass;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $mobj             = new stdClass();
</ins><span class="cx" style="display: block; padding: 0 10px">                 $mobj->meta_id    = $mid;
</span><span class="cx" style="display: block; padding: 0 10px">                $mobj->post_id    = self::$post_id;
</span><span class="cx" style="display: block; padding: 0 10px">                $mobj->meta_key   = 'get_post_meta_by_key';
</span></span></pre></div>
<a id="trunktestsphpunittestsposttypesphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/post/types.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/post/types.php  2022-11-29 12:40:08 UTC (rev 54890)
+++ trunk/tests/phpunit/tests/post/types.php    2022-11-29 15:49:49 UTC (rev 54891)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -256,7 +256,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                $this->assertNotNull( get_post_type_object( 'foo' ) );
</span><span class="cx" style="display: block; padding: 0 10px">                $this->assertNull( get_post_type_object( array() ) );
</span><span class="cx" style="display: block; padding: 0 10px">                $this->assertNull( get_post_type_object( array( 'foo' ) ) );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertNull( get_post_type_object( new stdClass ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertNull( get_post_type_object( new stdClass() ) );
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                _unregister_post_type( 'foo' );
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span></span></pre></div>
<a id="trunktestsphpunittestspostphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/post.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/post.php        2022-11-29 12:40:08 UTC (rev 54890)
+++ trunk/tests/phpunit/tests/post.php  2022-11-29 15:49:49 UTC (rev 54891)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -158,7 +158,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                _unregister_post_type( $post_type );
</span><span class="cx" style="display: block; padding: 0 10px">                $count = wp_count_posts( $post_type, 'readable' );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( new stdClass, $count );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertEquals( new stdClass(), $count );
</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 test_wp_count_posts_filtered() {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -601,7 +601,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                        '1 int'     => array( 1 ),
</span><span class="cx" style="display: block; padding: 0 10px">                        'null'      => array( null ),
</span><span class="cx" style="display: block; padding: 0 10px">                        'true'      => array( true ),
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                        'an object' => array( new stdClass ),
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                 'an object' => array( new stdClass() ),
</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="trunktestsphpunittestsquerygeneratePostdataphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/query/generatePostdata.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/query/generatePostdata.php      2022-11-29 12:40:08 UTC (rev 54890)
+++ trunk/tests/phpunit/tests/query/generatePostdata.php        2022-11-29 15:49:49 UTC (rev 54891)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -19,7 +19,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">         * @ticket 42814
</span><span class="cx" style="display: block; padding: 0 10px">         */
</span><span class="cx" style="display: block; padding: 0 10px">        public function test_setup_by_fake_post() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $fake     = new stdClass;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $fake     = new stdClass();
</ins><span class="cx" style="display: block; padding: 0 10px">                 $fake->ID = 98765;
</span><span class="cx" style="display: block; padding: 0 10px">                $data     = generate_postdata( $fake->ID );
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span></span></pre></div>
<a id="trunktestsphpunittestsquerysetupPostdataphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/query/setupPostdata.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/query/setupPostdata.php 2022-11-29 12:40:08 UTC (rev 54890)
+++ trunk/tests/phpunit/tests/query/setupPostdata.php   2022-11-29 15:49:49 UTC (rev 54891)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -33,7 +33,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">         * @ticket 30970
</span><span class="cx" style="display: block; padding: 0 10px">         */
</span><span class="cx" style="display: block; padding: 0 10px">        public function test_setup_by_fake_post() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $fake     = new stdClass;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $fake     = new stdClass();
</ins><span class="cx" style="display: block; padding: 0 10px">                 $fake->ID = 98765;
</span><span class="cx" style="display: block; padding: 0 10px">                setup_postdata( $fake->ID );
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span></span></pre></div>
<a id="trunktestsphpunittestsqueryphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/query.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/query.php       2022-11-29 12:40:08 UTC (rev 54890)
+++ trunk/tests/phpunit/tests/query.php 2022-11-29 15:49:49 UTC (rev 54891)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -33,7 +33,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">         * @ticket 16471
</span><span class="cx" style="display: block; padding: 0 10px">         */
</span><span class="cx" style="display: block; padding: 0 10px">        public function test_default_query_var() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $query = new WP_Query;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $query = new WP_Query();
</ins><span class="cx" style="display: block; padding: 0 10px">                 $this->assertSame( '', $query->get( 'nonexistent' ) );
</span><span class="cx" style="display: block; padding: 0 10px">                $this->assertFalse( $query->get( 'nonexistent', false ) );
</span><span class="cx" style="display: block; padding: 0 10px">                $this->assertTrue( $query->get( 'nonexistent', true ) );
</span></span></pre></div>
<a id="trunktestsphpunittestsrestapirestblocktypecontrollerphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/rest-api/rest-block-type-controller.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/rest-api/rest-block-type-controller.php 2022-11-29 12:40:08 UTC (rev 54890)
+++ trunk/tests/phpunit/tests/rest-api/rest-block-type-controller.php   2022-11-29 15:49:49 UTC (rev 54891)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -624,7 +624,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">         * @ticket 47620
</span><span class="cx" style="display: block; padding: 0 10px">         */
</span><span class="cx" style="display: block; padding: 0 10px">        public function test_prepare_item() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $registry = new WP_Block_Type_Registry;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $registry = new WP_Block_Type_Registry();
</ins><span class="cx" style="display: block; padding: 0 10px">                 $settings = array(
</span><span class="cx" style="display: block; padding: 0 10px">                        'icon'            => 'text',
</span><span class="cx" style="display: block; padding: 0 10px">                        'render_callback' => '__return_null',
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -631,8 +631,8 @@
</span><span class="cx" style="display: block; padding: 0 10px">                );
</span><span class="cx" style="display: block; padding: 0 10px">                $registry->register( 'fake/line', $settings );
</span><span class="cx" style="display: block; padding: 0 10px">                $block_type = $registry->get_registered( 'fake/line' );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $endpoint   = new WP_REST_Block_Types_Controller;
-               $request    = new WP_REST_Request;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $endpoint   = new WP_REST_Block_Types_Controller();
+               $request    = new WP_REST_Request();
</ins><span class="cx" style="display: block; padding: 0 10px">                 $request->set_param( 'context', 'edit' );
</span><span class="cx" style="display: block; padding: 0 10px">                $response = $endpoint->prepare_item_for_response( $block_type, $request );
</span><span class="cx" style="display: block; padding: 0 10px">                $this->check_block_type_object( $block_type, $response->get_data(), $response->get_links() );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -642,7 +642,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">         * @ticket 47620
</span><span class="cx" style="display: block; padding: 0 10px">         */
</span><span class="cx" style="display: block; padding: 0 10px">        public function test_prepare_item_limit_fields() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $registry = new WP_Block_Type_Registry;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $registry = new WP_Block_Type_Registry();
</ins><span class="cx" style="display: block; padding: 0 10px">                 $settings = array(
</span><span class="cx" style="display: block; padding: 0 10px">                        'icon'            => 'text',
</span><span class="cx" style="display: block; padding: 0 10px">                        'render_callback' => '__return_null',
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -649,8 +649,8 @@
</span><span class="cx" style="display: block; padding: 0 10px">                );
</span><span class="cx" style="display: block; padding: 0 10px">                $registry->register( 'fake/line', $settings );
</span><span class="cx" style="display: block; padding: 0 10px">                $block_type = $registry->get_registered( 'fake/line' );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $request    = new WP_REST_Request;
-               $endpoint   = new WP_REST_Block_Types_Controller;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $request    = new WP_REST_Request();
+               $endpoint   = new WP_REST_Block_Types_Controller();
</ins><span class="cx" style="display: block; padding: 0 10px">                 $request->set_param( 'context', 'edit' );
</span><span class="cx" style="display: block; padding: 0 10px">                $request->set_param( '_fields', 'name' );
</span><span class="cx" style="display: block; padding: 0 10px">                $response = $endpoint->prepare_item_for_response( $block_type, $request );
</span></span></pre></div>
<a id="trunktestsphpunittestsrestapirestcategoriescontrollerphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/rest-api/rest-categories-controller.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/rest-api/rest-categories-controller.php 2022-11-29 12:40:08 UTC (rev 54890)
+++ trunk/tests/phpunit/tests/rest-api/rest-categories-controller.php   2022-11-29 15:49:49 UTC (rev 54891)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1093,7 +1093,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">        }
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">        public function test_prepare_item_limit_fields() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $request  = new WP_REST_Request;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $request  = new WP_REST_Request();
</ins><span class="cx" style="display: block; padding: 0 10px">                 $endpoint = new WP_REST_Terms_Controller( 'category' );
</span><span class="cx" style="display: block; padding: 0 10px">                $request->set_param( '_fields', 'id,name' );
</span><span class="cx" style="display: block; padding: 0 10px">                $term     = get_term( 1, 'category' );
</span></span></pre></div>
<a id="trunktestsphpunittestsrestapirestcommentscontrollerphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/rest-api/rest-comments-controller.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/rest-api/rest-comments-controller.php   2022-11-29 12:40:08 UTC (rev 54890)
+++ trunk/tests/phpunit/tests/rest-api/rest-comments-controller.php     2022-11-29 15:49:49 UTC (rev 54891)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -152,7 +152,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">        public function set_up() {
</span><span class="cx" style="display: block; padding: 0 10px">                parent::set_up();
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->endpoint = new WP_REST_Comments_Controller;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->endpoint = new WP_REST_Comments_Controller();
</ins><span class="cx" style="display: block; padding: 0 10px">                 if ( is_multisite() ) {
</span><span class="cx" style="display: block; padding: 0 10px">                        update_site_option( 'site_admins', array( 'superadmin' ) );
</span><span class="cx" style="display: block; padding: 0 10px">                }
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -953,7 +953,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">        public function test_prepare_item_limit_fields() {
</span><span class="cx" style="display: block; padding: 0 10px">                wp_set_current_user( self::$admin_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">-                $endpoint = new WP_REST_Comments_Controller;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $endpoint = new WP_REST_Comments_Controller();
</ins><span class="cx" style="display: block; padding: 0 10px">                 $request  = new WP_REST_Request( 'GET', sprintf( '/wp/v2/comments/%d', self::$approved_id ) );
</span><span class="cx" style="display: block; padding: 0 10px">                $request->set_param( 'context', 'edit' );
</span><span class="cx" style="display: block; padding: 0 10px">                $request->set_param( '_fields', 'id,status' );
</span></span></pre></div>
<a id="trunktestsphpunittestsrestapirestpostmetafieldsphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/rest-api/rest-post-meta-fields.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/rest-api/rest-post-meta-fields.php      2022-11-29 12:40:08 UTC (rev 54890)
+++ trunk/tests/phpunit/tests/rest-api/rest-post-meta-fields.php        2022-11-29 15:49:49 UTC (rev 54891)
</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"> 
</span><span class="cx" style="display: block; padding: 0 10px">                /** @var WP_REST_Server $wp_rest_server */
</span><span class="cx" style="display: block; padding: 0 10px">                global $wp_rest_server;
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $wp_rest_server = new Spy_REST_Server;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $wp_rest_server = new Spy_REST_Server();
</ins><span class="cx" style="display: block; padding: 0 10px">                 do_action( 'rest_api_init', $wp_rest_server );
</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">@@ -380,7 +380,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                /** @var WP_REST_Server $wp_rest_server */
</span><span class="cx" style="display: block; padding: 0 10px">                global $wp_rest_server;
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $wp_rest_server = new Spy_REST_Server;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $wp_rest_server = new Spy_REST_Server();
</ins><span class="cx" style="display: block; padding: 0 10px">                 do_action( 'rest_api_init', $wp_rest_server );
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                add_post_meta( self::$post_id, 'test_string', 42 );
</span></span></pre></div>
<a id="trunktestsphpunittestsrestapirestpoststatusescontrollerphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/rest-api/rest-post-statuses-controller.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/rest-api/rest-post-statuses-controller.php      2022-11-29 12:40:08 UTC (rev 54890)
+++ trunk/tests/phpunit/tests/rest-api/rest-post-statuses-controller.php        2022-11-29 15:49:49 UTC (rev 54891)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -125,8 +125,8 @@
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">        public function test_prepare_item() {
</span><span class="cx" style="display: block; padding: 0 10px">                $obj      = get_post_status_object( 'publish' );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $endpoint = new WP_REST_Post_Statuses_Controller;
-               $request  = new WP_REST_Request;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $endpoint = new WP_REST_Post_Statuses_Controller();
+               $request  = new WP_REST_Request();
</ins><span class="cx" style="display: block; padding: 0 10px">                 $request->set_param( 'context', 'edit' );
</span><span class="cx" style="display: block; padding: 0 10px">                $data = $endpoint->prepare_item_for_response( $obj, $request );
</span><span class="cx" style="display: block; padding: 0 10px">                $this->check_post_status_obj( $obj, $data->get_data(), $data->get_links() );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -134,8 +134,8 @@
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">        public function test_prepare_item_limit_fields() {
</span><span class="cx" style="display: block; padding: 0 10px">                $obj      = get_post_status_object( 'publish' );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $request  = new WP_REST_Request;
-               $endpoint = new WP_REST_Post_Statuses_Controller;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $request  = new WP_REST_Request();
+               $endpoint = new WP_REST_Post_Statuses_Controller();
</ins><span class="cx" style="display: block; padding: 0 10px">                 $request->set_param( 'context', 'edit' );
</span><span class="cx" style="display: block; padding: 0 10px">                $request->set_param( '_fields', 'id,name' );
</span><span class="cx" style="display: block; padding: 0 10px">                $response = $endpoint->prepare_item_for_response( $obj, $request );
</span></span></pre></div>
<a id="trunktestsphpunittestsrestapirestposttypescontrollerphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/rest-api/rest-post-types-controller.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/rest-api/rest-post-types-controller.php 2022-11-29 12:40:08 UTC (rev 54890)
+++ trunk/tests/phpunit/tests/rest-api/rest-post-types-controller.php   2022-11-29 15:49:49 UTC (rev 54891)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -133,8 +133,8 @@
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">        public function test_prepare_item() {
</span><span class="cx" style="display: block; padding: 0 10px">                $obj      = get_post_type_object( 'post' );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $endpoint = new WP_REST_Post_Types_Controller;
-               $request  = new WP_REST_Request;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $endpoint = new WP_REST_Post_Types_Controller();
+               $request  = new WP_REST_Request();
</ins><span class="cx" style="display: block; padding: 0 10px">                 $request->set_param( 'context', 'edit' );
</span><span class="cx" style="display: block; padding: 0 10px">                $response = $endpoint->prepare_item_for_response( $obj, $request );
</span><span class="cx" style="display: block; padding: 0 10px">                $this->check_post_type_obj( 'edit', $obj, $response->get_data(), $response->get_links() );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -142,8 +142,8 @@
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">        public function test_prepare_item_limit_fields() {
</span><span class="cx" style="display: block; padding: 0 10px">                $obj      = get_post_type_object( 'post' );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $request  = new WP_REST_Request;
-               $endpoint = new WP_REST_Post_Types_Controller;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $request  = new WP_REST_Request();
+               $endpoint = new WP_REST_Post_Types_Controller();
</ins><span class="cx" style="display: block; padding: 0 10px">                 $request->set_param( 'context', 'edit' );
</span><span class="cx" style="display: block; padding: 0 10px">                $request->set_param( '_fields', 'id,name' );
</span><span class="cx" style="display: block; padding: 0 10px">                $response = $endpoint->prepare_item_for_response( $obj, $request );
</span></span></pre></div>
<a id="trunktestsphpunittestsrestapirestschemasetupphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/rest-api/rest-schema-setup.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/rest-api/rest-schema-setup.php  2022-11-29 12:40:08 UTC (rev 54890)
+++ trunk/tests/phpunit/tests/rest-api/rest-schema-setup.php    2022-11-29 15:49:49 UTC (rev 54891)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -20,7 +20,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                /** @var WP_REST_Server $wp_rest_server */
</span><span class="cx" style="display: block; padding: 0 10px">                global $wp_rest_server;
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $wp_rest_server = new Spy_REST_Server;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $wp_rest_server = new Spy_REST_Server();
</ins><span class="cx" style="display: block; padding: 0 10px">                 do_action( 'rest_api_init', $wp_rest_server );
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                add_filter( 'pre_http_request', array( $this, 'mock_embed_request' ), 10, 3 );
</span></span></pre></div>
<a id="trunktestsphpunittestsrestapiresttagscontrollerphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/rest-api/rest-tags-controller.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/rest-api/rest-tags-controller.php       2022-11-29 12:40:08 UTC (rev 54890)
+++ trunk/tests/phpunit/tests/rest-api/rest-tags-controller.php 2022-11-29 15:49:49 UTC (rev 54891)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1211,7 +1211,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">        }
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">        public function test_prepare_item_limit_fields() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $request  = new WP_REST_Request;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $request  = new WP_REST_Request();
</ins><span class="cx" style="display: block; padding: 0 10px">                 $endpoint = new WP_REST_Terms_Controller( 'post_tag' );
</span><span class="cx" style="display: block; padding: 0 10px">                $request->set_param( '_fields', 'id,name' );
</span><span class="cx" style="display: block; padding: 0 10px">                $term     = get_term_by( 'id', self::factory()->tag->create(), 'post_tag' );
</span></span></pre></div>
<a id="trunktestsphpunittestsrestapiresttaxonomiescontrollerphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/rest-api/rest-taxonomies-controller.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/rest-api/rest-taxonomies-controller.php 2022-11-29 12:40:08 UTC (rev 54890)
+++ trunk/tests/phpunit/tests/rest-api/rest-taxonomies-controller.php   2022-11-29 15:49:49 UTC (rev 54891)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -174,8 +174,8 @@
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">        public function test_prepare_item() {
</span><span class="cx" style="display: block; padding: 0 10px">                $tax      = get_taxonomy( 'category' );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $endpoint = new WP_REST_Taxonomies_Controller;
-               $request  = new WP_REST_Request;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $endpoint = new WP_REST_Taxonomies_Controller();
+               $request  = new WP_REST_Request();
</ins><span class="cx" style="display: block; padding: 0 10px">                 $request->set_param( 'context', 'edit' );
</span><span class="cx" style="display: block; padding: 0 10px">                $response = $endpoint->prepare_item_for_response( $tax, $request );
</span><span class="cx" style="display: block; padding: 0 10px">                $this->check_taxonomy_object( 'edit', $tax, $response->get_data(), $response->get_links() );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -183,8 +183,8 @@
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">        public function test_prepare_item_limit_fields() {
</span><span class="cx" style="display: block; padding: 0 10px">                $tax      = get_taxonomy( 'category' );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $request  = new WP_REST_Request;
-               $endpoint = new WP_REST_Taxonomies_Controller;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $request  = new WP_REST_Request();
+               $endpoint = new WP_REST_Taxonomies_Controller();
</ins><span class="cx" style="display: block; padding: 0 10px">                 $request->set_param( 'context', 'edit' );
</span><span class="cx" style="display: block; padding: 0 10px">                $request->set_param( '_fields', 'id,name' );
</span><span class="cx" style="display: block; padding: 0 10px">                $response = $endpoint->prepare_item_for_response( $tax, $request );
</span></span></pre></div>
<a id="trunktestsphpunittestsrestapiresttermmetafieldsphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/rest-api/rest-term-meta-fields.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/rest-api/rest-term-meta-fields.php      2022-11-29 12:40:08 UTC (rev 54890)
+++ trunk/tests/phpunit/tests/rest-api/rest-term-meta-fields.php        2022-11-29 15:49:49 UTC (rev 54891)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -194,7 +194,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                /** @var WP_REST_Server $wp_rest_server */
</span><span class="cx" style="display: block; padding: 0 10px">                global $wp_rest_server;
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $wp_rest_server = new Spy_REST_Server;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $wp_rest_server = new Spy_REST_Server();
</ins><span class="cx" style="display: block; padding: 0 10px">                 do_action( 'rest_api_init', $wp_rest_server );
</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">@@ -327,7 +327,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                /** @var WP_REST_Server $wp_rest_server */
</span><span class="cx" style="display: block; padding: 0 10px">                global $wp_rest_server;
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $wp_rest_server = new Spy_REST_Server;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $wp_rest_server = new Spy_REST_Server();
</ins><span class="cx" style="display: block; padding: 0 10px">                 do_action( 'rest_api_init', $wp_rest_server );
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                add_term_meta( self::$category_id, 'test_string', 42 );
</span></span></pre></div>
<a id="trunktestsphpunittestsrestapirestuserscontrollerphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/rest-api/rest-users-controller.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/rest-api/rest-users-controller.php      2022-11-29 12:40:08 UTC (rev 54890)
+++ trunk/tests/phpunit/tests/rest-api/rest-users-controller.php        2022-11-29 15:49:49 UTC (rev 54891)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -974,7 +974,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">        public function test_prepare_item() {
</span><span class="cx" style="display: block; padding: 0 10px">                wp_set_current_user( self::$user );
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $request = new WP_REST_Request;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $request = new WP_REST_Request();
</ins><span class="cx" style="display: block; padding: 0 10px">                 $request->set_param( 'context', 'edit' );
</span><span class="cx" style="display: block; padding: 0 10px">                $user = get_user_by( 'id', get_current_user_id() );
</span><span class="cx" style="display: block; padding: 0 10px">                $data = $this->endpoint->prepare_item_for_response( $user, $request );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -984,7 +984,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">        public function test_prepare_item_limit_fields() {
</span><span class="cx" style="display: block; padding: 0 10px">                wp_set_current_user( self::$user );
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $request = new WP_REST_Request;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $request = new WP_REST_Request();
</ins><span class="cx" style="display: block; padding: 0 10px">                 $request->set_param( 'context', 'edit' );
</span><span class="cx" style="display: block; padding: 0 10px">                $request->set_param( '_fields', 'id,name' );
</span><span class="cx" style="display: block; padding: 0 10px">                $user     = get_user_by( 'id', get_current_user_id() );
</span></span></pre></div>
<a id="trunktestsphpunittestsrestapirestwidgettypescontrollerphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/rest-api/rest-widget-types-controller.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/rest-api/rest-widget-types-controller.php       2022-11-29 12:40:08 UTC (rev 54890)
+++ trunk/tests/phpunit/tests/rest-api/rest-widget-types-controller.php 2022-11-29 15:49:49 UTC (rev 54891)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -118,7 +118,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                $response = rest_get_server()->dispatch( $request );
</span><span class="cx" style="display: block; padding: 0 10px">                $data     = $response->get_data();
</span><span class="cx" style="display: block; padding: 0 10px">                $this->assertGreaterThan( 1, count( $data ) );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $endpoint = new WP_REST_Widget_Types_Controller;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $endpoint = new WP_REST_Widget_Types_Controller();
</ins><span class="cx" style="display: block; padding: 0 10px">                 foreach ( $data as $item ) {
</span><span class="cx" style="display: block; padding: 0 10px">                        $widget_type = $endpoint->get_widget( $item['name'] );
</span><span class="cx" style="display: block; padding: 0 10px">                        $this->check_widget_type_object( $widget_type, $item, $item['_links'] );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -180,7 +180,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                wp_set_current_user( self::$admin_id );
</span><span class="cx" style="display: block; padding: 0 10px">                $request     = new WP_REST_Request( 'GET', '/wp/v2/widget-types/' . $widget_name );
</span><span class="cx" style="display: block; padding: 0 10px">                $response    = rest_get_server()->dispatch( $request );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $endpoint    = new WP_REST_Widget_Types_Controller;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $endpoint    = new WP_REST_Widget_Types_Controller();
</ins><span class="cx" style="display: block; padding: 0 10px">                 $widget_type = $endpoint->get_widget( $widget_name );
</span><span class="cx" style="display: block; padding: 0 10px">                $this->check_widget_type_object( $widget_type, $response->get_data(), $response->get_links() );
</span><span class="cx" style="display: block; padding: 0 10px">        }
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -198,7 +198,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                wp_set_current_user( self::$admin_id );
</span><span class="cx" style="display: block; padding: 0 10px">                $request     = new WP_REST_Request( 'GET', '/wp/v2/widget-types/' . $widget_id );
</span><span class="cx" style="display: block; padding: 0 10px">                $response    = rest_get_server()->dispatch( $request );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $endpoint    = new WP_REST_Widget_Types_Controller;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $endpoint    = new WP_REST_Widget_Types_Controller();
</ins><span class="cx" style="display: block; padding: 0 10px">                 $widget_type = $endpoint->get_widget( $widget_id );
</span><span class="cx" style="display: block; padding: 0 10px">                $this->check_widget_type_object( $widget_type, $response->get_data(), $response->get_links() );
</span><span class="cx" style="display: block; padding: 0 10px">        }
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -298,9 +298,9 @@
</span><span class="cx" style="display: block; padding: 0 10px">         * @ticket 41683
</span><span class="cx" style="display: block; padding: 0 10px">         */
</span><span class="cx" style="display: block; padding: 0 10px">        public function test_prepare_item() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $endpoint    = new WP_REST_Widget_Types_Controller;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $endpoint    = new WP_REST_Widget_Types_Controller();
</ins><span class="cx" style="display: block; padding: 0 10px">                 $widget_type = $endpoint->get_widget( 'calendar' );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $request     = new WP_REST_Request;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $request     = new WP_REST_Request();
</ins><span class="cx" style="display: block; padding: 0 10px">                 $request->set_param( 'context', 'edit' );
</span><span class="cx" style="display: block; padding: 0 10px">                $response = $endpoint->prepare_item_for_response( $widget_type, $request );
</span><span class="cx" style="display: block; padding: 0 10px">                $this->check_widget_type_object( $widget_type, $response->get_data(), $response->get_links() );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -366,7 +366,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                        array(
</span><span class="cx" style="display: block; padding: 0 10px">                                'encoded' => base64_encode( serialize( array() ) ),
</span><span class="cx" style="display: block; padding: 0 10px">                                'hash'    => wp_hash( serialize( array() ) ),
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                'raw'     => new stdClass,
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                         'raw'     => new stdClass(),
</ins><span class="cx" style="display: block; padding: 0 10px">                         ),
</span><span class="cx" style="display: block; padding: 0 10px">                        $data['instance']
</span><span class="cx" style="display: block; padding: 0 10px">                );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -402,7 +402,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                        array(
</span><span class="cx" style="display: block; padding: 0 10px">                                'encoded' => base64_encode( serialize( array() ) ),
</span><span class="cx" style="display: block; padding: 0 10px">                                'hash'    => wp_hash( serialize( array() ) ),
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                'raw'     => new stdClass,
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                         'raw'     => new stdClass(),
</ins><span class="cx" style="display: block; padding: 0 10px">                         ),
</span><span class="cx" style="display: block; padding: 0 10px">                        $data['instance']
</span><span class="cx" style="display: block; padding: 0 10px">                );
</span></span></pre>
</div>
</div>

</body>
</html>