<!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>[56559] trunk: Coding Standards: Include one space after `function` keyword for closures.</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/56559">56559</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/56559","name":"Review Commit"}}</script></dd>
<dt style="float: left; width: 6em; font-weight: bold">Author</dt> <dd>SergeyBiryukov</dd>
<dt style="float: left; width: 6em; font-weight: bold">Date</dt> <dd>2023-09-12 15:21:02 +0000 (Tue, 12 Sep 2023)</dd>
</dl>
<pre style='padding-left: 1em; margin: 2em 0; border-left: 2px solid #ccc; line-height: 1.25; font-size: 105%; font-family: sans-serif'>Coding Standards: Include one space after `function` keyword for closures.
Note: This is enforced by WPCS 3.0.0.
Reference: [https://github.com/WordPress/WordPress-Coding-Standards/pull/2328 WPCS: PR <a href="https://core.trac.wordpress.org/ticket/2328">#2328</a> Core: properly check formatting of function declaration statements].
Props jrf.
See <a href="https://core.trac.wordpress.org/ticket/59161">#59161</a>, <a href="https://core.trac.wordpress.org/ticket/58831">#58831</a>.</pre>
<h3>Modified Paths</h3>
<ul>
<li><a href="#trunksrcwpadmineditformblocksphp">trunk/src/wp-admin/edit-form-blocks.php</a></li>
<li><a href="#trunksrcwpadminincludesclasswpcommunityeventsphp">trunk/src/wp-admin/includes/class-wp-community-events.php</a></li>
<li><a href="#trunksrcwpadminincludesclasswpsitehealthautoupdatesphp">trunk/src/wp-admin/includes/class-wp-site-health-auto-updates.php</a></li>
<li><a href="#trunksrcwpadminincludesfilephp">trunk/src/wp-admin/includes/file.php</a></li>
<li><a href="#trunksrcwpadminincludesupdatecorephp">trunk/src/wp-admin/includes/update-core.php</a></li>
<li><a href="#trunksrcwpadminoptionsprivacyphp">trunk/src/wp-admin/options-privacy.php</a></li>
<li><a href="#trunksrcwpadminprivacypolicyguidephp">trunk/src/wp-admin/privacy-policy-guide.php</a></li>
<li><a href="#trunksrcwpadminsiteeditorphp">trunk/src/wp-admin/site-editor.php</a></li>
<li><a href="#trunksrcwpadminuploadphp">trunk/src/wp-admin/upload.php</a></li>
<li><a href="#trunksrcwpcontentthemestwentytwentyclassesclasstwentytwentycustomizephp">trunk/src/wp-content/themes/twentytwenty/classes/class-twentytwenty-customize.php</a></li>
<li><a href="#trunksrcwpcontentthemestwentytwentyoneclassesclasstwentytwentyonecustomizephp">trunk/src/wp-content/themes/twentytwentyone/classes/class-twenty-twenty-one-customize.php</a></li>
<li><a href="#trunksrcwpcontentthemestwentytwentyoneclassesclasstwentytwentyonedarkmodephp">trunk/src/wp-content/themes/twentytwentyone/classes/class-twenty-twenty-one-dark-mode.php</a></li>
<li><a href="#trunksrcwpincludesblocksupportslayoutphp">trunk/src/wp-includes/block-supports/layout.php</a></li>
<li><a href="#trunksrcwpincludesblocksindexphp">trunk/src/wp-includes/blocks/index.php</a></li>
<li><a href="#trunksrcwpincludesblocksphp">trunk/src/wp-includes/blocks.php</a></li>
<li><a href="#trunksrcwpincludesclasswpcustomizewidgetsphp">trunk/src/wp-includes/class-wp-customize-widgets.php</a></li>
<li><a href="#trunksrcwpincludesclasswphttpphp">trunk/src/wp-includes/class-wp-http.php</a></li>
<li><a href="#trunksrcwpincludesclasswpnavigationfallbackphp">trunk/src/wp-includes/class-wp-navigation-fallback.php</a></li>
<li><a href="#trunksrcwpincludesclasswpthemejsonphp">trunk/src/wp-includes/class-wp-theme-json.php</a></li>
<li><a href="#trunksrcwpincludesformattingphp">trunk/src/wp-includes/formatting.php</a></li>
<li><a href="#trunksrcwpincludesfunctionsphp">trunk/src/wp-includes/functions.php</a></li>
<li><a href="#trunksrcwpincludesksesphp">trunk/src/wp-includes/kses.php</a></li>
<li><a href="#trunksrcwpincludespostphp">trunk/src/wp-includes/post.php</a></li>
<li><a href="#trunksrcwpincludesrestapiendpointsclasswprestcontrollerphp">trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-controller.php</a></li>
<li><a href="#trunksrcwpincludesrestapiendpointsclasswprestpluginscontrollerphp">trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-plugins-controller.php</a></li>
<li><a href="#trunksrcwpincludesrestapiendpointsclasswprestsitehealthcontrollerphp">trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-site-health-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="#trunksrcwpincludesscriptloaderphp">trunk/src/wp-includes/script-loader.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="#trunktestsperformancewpcontentmupluginsservertimingphp">trunk/tests/performance/wp-content/mu-plugins/server-timing.php</a></li>
<li><a href="#trunktestsphpunittestsactionsphp">trunk/tests/phpunit/tests/actions.php</a></li>
<li><a href="#trunktestsphpunittestsadminincludesFilephp">trunk/tests/phpunit/tests/admin/includesFile.php</a></li>
<li><a href="#trunktestsphpunittestsadminincludesPostphp">trunk/tests/phpunit/tests/admin/includesPost.php</a></li>
<li><a href="#trunktestsphpunittestsadminincludesSchemaphp">trunk/tests/phpunit/tests/admin/includesSchema.php</a></li>
<li><a href="#trunktestsphpunittestsadminwpAutomaticUpdaterphp">trunk/tests/phpunit/tests/admin/wpAutomaticUpdater.php</a></li>
<li><a href="#trunktestsphpunittestsadminwpCommentsListTablephp">trunk/tests/phpunit/tests/admin/wpCommentsListTable.php</a></li>
<li><a href="#trunktestsphpunittestsadminwpSiteHealthphp">trunk/tests/phpunit/tests/admin/wpSiteHealth.php</a></li>
<li><a href="#trunktestsphpunittestsajaxwpAjaxAddTagphp">trunk/tests/phpunit/tests/ajax/wpAjaxAddTag.php</a></li>
<li><a href="#trunktestsphpunittestsajaxwpAjaxAjaxTagSearchphp">trunk/tests/phpunit/tests/ajax/wpAjaxAjaxTagSearch.php</a></li>
<li><a href="#trunktestsphpunittestsblocktemplatephp">trunk/tests/phpunit/tests/block-template.php</a></li>
<li><a href="#trunktestsphpunittestsblockscontextphp">trunk/tests/phpunit/tests/blocks/context.php</a></li>
<li><a href="#trunktestsphpunittestsblockseditorphp">trunk/tests/phpunit/tests/blocks/editor.php</a></li>
<li><a href="#trunktestsphpunittestsblocksgetBlockTemplatesphp">trunk/tests/phpunit/tests/blocks/getBlockTemplates.php</a></li>
<li><a href="#trunktestsphpunittestsblocksregisterphp">trunk/tests/phpunit/tests/blocks/register.php</a></li>
<li><a href="#trunktestsphpunittestsblocksrenderCommentTemplatephp">trunk/tests/phpunit/tests/blocks/renderCommentTemplate.php</a></li>
<li><a href="#trunktestsphpunittestsblockswpBlockphp">trunk/tests/phpunit/tests/blocks/wpBlock.php</a></li>
<li><a href="#trunktestsphpunittestscanonicalphp">trunk/tests/phpunit/tests/canonical.php</a></li>
<li><a href="#trunktestsphpunittestscategorywalkerCategoryphp">trunk/tests/phpunit/tests/category/walkerCategory.php</a></li>
<li><a href="#trunktestsphpunittestscronphp">trunk/tests/phpunit/tests/cron.php</a></li>
<li><a href="#trunktestsphpunittestsdependenciesscriptsphp">trunk/tests/phpunit/tests/dependencies/scripts.php</a></li>
<li><a href="#trunktestsphpunittestsfeedrss2php">trunk/tests/phpunit/tests/feed/rss2.php</a></li>
<li><a href="#trunktestsphpunittestsfilephp">trunk/tests/phpunit/tests/file.php</a></li>
<li><a href="#trunktestsphpunittestsformattingwpTrimExcerptphp">trunk/tests/phpunit/tests/formatting/wpTrimExcerpt.php</a></li>
<li><a href="#trunktestsphpunittestsfunctionswpFilesizephp">trunk/tests/phpunit/tests/functions/wpFilesize.php</a></li>
<li><a href="#trunktestsphpunittestsfunctionsphp">trunk/tests/phpunit/tests/functions.php</a></li>
<li><a href="#trunktestsphpunittestsgeneralfeedLinksExtraphp">trunk/tests/phpunit/tests/general/feedLinksExtra.php</a></li>
<li><a href="#trunktestsphpunittestshttphttpphp">trunk/tests/phpunit/tests/http/http.php</a></li>
<li><a href="#trunktestsphpunittestshttpsdetectionphp">trunk/tests/phpunit/tests/https-detection.php</a></li>
<li><a href="#trunktestsphpunittestshttpsmigrationphp">trunk/tests/phpunit/tests/https-migration.php</a></li>
<li><a href="#trunktestsphpunittestsimageeditorImagickphp">trunk/tests/phpunit/tests/image/editorImagick.php</a></li>
<li><a href="#trunktestsphpunittestsimagefunctionsphp">trunk/tests/phpunit/tests/image/functions.php</a></li>
<li><a href="#trunktestsphpunittestsimageintermediateSizephp">trunk/tests/phpunit/tests/image/intermediateSize.php</a></li>
<li><a href="#trunktestsphpunittestsl10ndetermineLocalephp">trunk/tests/phpunit/tests/l10n/determineLocale.php</a></li>
<li><a href="#trunktestsphpunittestslinkeditTermLinkphp">trunk/tests/phpunit/tests/link/editTermLink.php</a></li>
<li><a href="#trunktestsphpunittestslinkgetEditTermLinkphp">trunk/tests/phpunit/tests/link/getEditTermLink.php</a></li>
<li><a href="#trunktestsphpunittestsmediawpGenerateAttachmentMetadataphp">trunk/tests/phpunit/tests/media/wpGenerateAttachmentMetadata.php</a></li>
<li><a href="#trunktestsphpunittestsmediawpImageTagAddDecodingAttrphp">trunk/tests/phpunit/tests/media/wpImageTagAddDecodingAttr.php</a></li>
<li><a href="#trunktestsphpunittestsmediaphp">trunk/tests/phpunit/tests/media.php</a></li>
<li><a href="#trunktestsphpunittestsmenuwalkernavmenuphp">trunk/tests/phpunit/tests/menu/walker-nav-menu.php</a></li>
<li><a href="#trunktestsphpunittestsoptionwpSetOptionAutoloadValuesphp">trunk/tests/phpunit/tests/option/wpSetOptionAutoloadValues.php</a></li>
<li><a href="#trunktestsphpunittestspostgetPagesphp">trunk/tests/phpunit/tests/post/getPages.php</a></li>
<li><a href="#trunktestsphpunittestspostrevisionsphp">trunk/tests/phpunit/tests/post/revisions.php</a></li>
<li><a href="#trunktestsphpunittestspostthumbnailsphp">trunk/tests/phpunit/tests/post/thumbnails.php</a></li>
<li><a href="#trunktestsphpunittestspostwalkerPagephp">trunk/tests/phpunit/tests/post/walkerPage.php</a></li>
<li><a href="#trunktestsphpunittestspostwpGetAttachmentLinkphp">trunk/tests/phpunit/tests/post/wpGetAttachmentLink.php</a></li>
<li><a href="#trunktestsphpunittestsqueryconditionalsphp">trunk/tests/phpunit/tests/query/conditionals.php</a></li>
<li><a href="#trunktestsphpunittestsqueryphp">trunk/tests/phpunit/tests/query.php</a></li>
<li><a href="#trunktestsphpunittestsrestapirestapplicationpasswordscontrollerphp">trunk/tests/phpunit/tests/rest-api/rest-application-passwords-controller.php</a></li>
<li><a href="#trunktestsphpunittestsrestapirestblockdirectorycontrollerphp">trunk/tests/phpunit/tests/rest-api/rest-block-directory-controller.php</a></li>
<li><a href="#trunktestsphpunittestsrestapirestblockrenderercontrollerphp">trunk/tests/phpunit/tests/rest-api/rest-block-renderer-controller.php</a></li>
<li><a href="#trunktestsphpunittestsrestapirestpatterndirectorycontrollerphp">trunk/tests/phpunit/tests/rest-api/rest-pattern-directory-controller.php</a></li>
<li><a href="#trunktestsphpunittestsrestapirestpluginscontrollerphp">trunk/tests/phpunit/tests/rest-api/rest-plugins-controller.php</a></li>
<li><a href="#trunktestsphpunittestsrestapirestpostmetafieldsphp">trunk/tests/phpunit/tests/rest-api/rest-post-meta-fields.php</a></li>
<li><a href="#trunktestsphpunittestsrestapirestpostscontrollerphp">trunk/tests/phpunit/tests/rest-api/rest-posts-controller.php</a></li>
<li><a href="#trunktestsphpunittestsrestapirestserverphp">trunk/tests/phpunit/tests/rest-api/rest-server.php</a></li>
<li><a href="#trunktestsphpunittestsrestapirestwidgettypescontrollerphp">trunk/tests/phpunit/tests/rest-api/rest-widget-types-controller.php</a></li>
<li><a href="#trunktestsphpunittestsrestapiwpRestUrlDetailsControllerphp">trunk/tests/phpunit/tests/rest-api/wpRestUrlDetailsController.php</a></li>
<li><a href="#trunktestsphpunittestsrobotsphp">trunk/tests/phpunit/tests/robots.php</a></li>
<li><a href="#trunktestsphpunitteststermgetTermLinkphp">trunk/tests/phpunit/tests/term/getTermLink.php</a></li>
<li><a href="#trunktestsphpunitteststhemecustomHeaderphp">trunk/tests/phpunit/tests/theme/customHeader.php</a></li>
<li><a href="#trunktestsphpunitteststhemewpThemeJsonResolverphp">trunk/tests/phpunit/tests/theme/wpThemeJsonResolver.php</a></li>
<li><a href="#trunktestsphpunittestsuserqueryCachephp">trunk/tests/phpunit/tests/user/queryCache.php</a></li>
<li><a href="#trunktestsphpunittestsuserretrievePasswordphp">trunk/tests/phpunit/tests/user/retrievePassword.php</a></li>
<li><a href="#trunktestsphpunittestswidgetsphp">trunk/tests/phpunit/tests/widgets.php</a></li>
</ul>
</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunksrcwpadmineditformblocksphp"></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/edit-form-blocks.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-admin/edit-form-blocks.php 2023-09-12 15:10:19 UTC (rev 56558)
+++ trunk/src/wp-admin/edit-form-blocks.php 2023-09-12 15:21:02 UTC (rev 56559)
</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"> // Default to is-fullscreen-mode to avoid jumps in the UI.
</span><span class="cx" style="display: block; padding: 0 10px"> add_filter(
</span><span class="cx" style="display: block; padding: 0 10px"> 'admin_body_class',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- static function( $classes ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ static function ( $classes ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> return "$classes is-fullscreen-mode";
</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="trunksrcwpadminincludesclasswpcommunityeventsphp"></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-community-events.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-admin/includes/class-wp-community-events.php 2023-09-12 15:10:19 UTC (rev 56558)
+++ trunk/src/wp-admin/includes/class-wp-community-events.php 2023-09-12 15:21:02 UTC (rev 56559)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -483,7 +483,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> $future_wordcamps = array_filter(
</span><span class="cx" style="display: block; padding: 0 10px"> $future_events,
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- static function( $wordcamp ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ static function ( $wordcamp ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> return 'wordcamp' === $wordcamp['type'];
</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="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 2023-09-12 15:10:19 UTC (rev 56558)
+++ trunk/src/wp-admin/includes/class-wp-site-health-auto-updates.php 2023-09-12 15:21:02 UTC (rev 56559)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -42,7 +42,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> $tests = array_filter( $tests );
</span><span class="cx" style="display: block; padding: 0 10px"> $tests = array_map(
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- static function( $test ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ static function ( $test ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> $test = (object) $test;
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> if ( empty( $test->severity ) ) {
</span></span></pre></div>
<a id="trunksrcwpadminincludesfilephp"></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/file.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-admin/includes/file.php 2023-09-12 15:10:19 UTC (rev 56558)
+++ trunk/src/wp-admin/includes/file.php 2023-09-12 15:21:02 UTC (rev 56559)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -2726,7 +2726,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * with sub-directories represented as nested arrays.
</span><span class="cx" style="display: block; padding: 0 10px"> * @param string $path Absolute path to the directory.
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $invalidate_directory = static function( $dirlist, $path ) use ( &$invalidate_directory ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $invalidate_directory = static function ( $dirlist, $path ) use ( &$invalidate_directory ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> $path = trailingslashit( $path );
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> foreach ( $dirlist as $name => $details ) {
</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 2023-09-12 15:10:19 UTC (rev 56558)
+++ trunk/src/wp-admin/includes/update-core.php 2023-09-12 15:21:02 UTC (rev 56559)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1805,7 +1805,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> $dirs = glob( $directory . '*', GLOB_ONLYDIR );
</span><span class="cx" style="display: block; padding: 0 10px"> $dirs = array_filter(
</span><span class="cx" style="display: block; padding: 0 10px"> $dirs,
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- static function( $dir ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ static function ( $dir ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> /*
</span><span class="cx" style="display: block; padding: 0 10px"> * Skip any node_modules directories.
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span></span></pre></div>
<a id="trunksrcwpadminoptionsprivacyphp"></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/options-privacy.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-admin/options-privacy.php 2023-09-12 15:10:19 UTC (rev 56558)
+++ trunk/src/wp-admin/options-privacy.php 2023-09-12 15:21:02 UTC (rev 56559)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -23,7 +23,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> add_filter(
</span><span class="cx" style="display: block; padding: 0 10px"> 'admin_body_class',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- static function( $body_class ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ static function ( $body_class ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> $body_class .= ' privacy-settings ';
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> return $body_class;
</span></span></pre></div>
<a id="trunksrcwpadminprivacypolicyguidephp"></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/privacy-policy-guide.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-admin/privacy-policy-guide.php 2023-09-12 15:10:19 UTC (rev 56558)
+++ trunk/src/wp-admin/privacy-policy-guide.php 2023-09-12 15:21:02 UTC (rev 56559)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -22,7 +22,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> add_filter(
</span><span class="cx" style="display: block; padding: 0 10px"> 'admin_body_class',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- static function( $body_class ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ static function ( $body_class ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> $body_class .= ' privacy-settings ';
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> return $body_class;
</span></span></pre></div>
<a id="trunksrcwpadminsiteeditorphp"></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/site-editor.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-admin/site-editor.php 2023-09-12 15:10:19 UTC (rev 56558)
+++ trunk/src/wp-admin/site-editor.php 2023-09-12 15:21:02 UTC (rev 56559)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -42,7 +42,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> // Default to is-fullscreen-mode to avoid jumps in the UI.
</span><span class="cx" style="display: block; padding: 0 10px"> add_filter(
</span><span class="cx" style="display: block; padding: 0 10px"> 'admin_body_class',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- static function( $classes ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ static function ( $classes ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> return "$classes is-fullscreen-mode";
</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="trunksrcwpadminuploadphp"></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/upload.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-admin/upload.php 2023-09-12 15:10:19 UTC (rev 56558)
+++ trunk/src/wp-admin/upload.php 2023-09-12 15:21:02 UTC (rev 56559)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -144,7 +144,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> // Remove the error parameter added by deprecation of wp-admin/media.php.
</span><span class="cx" style="display: block; padding: 0 10px"> add_filter(
</span><span class="cx" style="display: block; padding: 0 10px"> 'removable_query_args',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- function() {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ function () {
</ins><span class="cx" style="display: block; padding: 0 10px"> return array( 'error' );
</span><span class="cx" style="display: block; padding: 0 10px"> },
</span><span class="cx" style="display: block; padding: 0 10px"> 10,
</span></span></pre></div>
<a id="trunksrcwpcontentthemestwentytwentyclassesclasstwentytwentycustomizephp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/wp-content/themes/twentytwenty/classes/class-twentytwenty-customize.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-content/themes/twentytwenty/classes/class-twentytwenty-customize.php 2023-09-12 15:10:19 UTC (rev 56558)
+++ trunk/src/wp-content/themes/twentytwenty/classes/class-twentytwenty-customize.php 2023-09-12 15:21:02 UTC (rev 56559)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -187,7 +187,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> 'settings' => 'accent_hue',
</span><span class="cx" style="display: block; padding: 0 10px"> 'description' => __( 'Apply a custom color for links, buttons, featured images.', 'twentytwenty' ),
</span><span class="cx" style="display: block; padding: 0 10px"> 'mode' => 'hue',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- 'active_callback' => static function() use ( $wp_customize ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ 'active_callback' => static function () use ( $wp_customize ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> return ( 'custom' === $wp_customize->get_setting( 'accent_hue_active' )->value() );
</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="trunksrcwpcontentthemestwentytwentyoneclassesclasstwentytwentyonecustomizephp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/wp-content/themes/twentytwentyone/classes/class-twenty-twenty-one-customize.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-content/themes/twentytwentyone/classes/class-twenty-twenty-one-customize.php 2023-09-12 15:10:19 UTC (rev 56558)
+++ trunk/src/wp-content/themes/twentytwentyone/classes/class-twenty-twenty-one-customize.php 2023-09-12 15:21:02 UTC (rev 56559)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -92,7 +92,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> array(
</span><span class="cx" style="display: block; padding: 0 10px"> 'capability' => 'edit_theme_options',
</span><span class="cx" style="display: block; padding: 0 10px"> 'default' => 'excerpt',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- 'sanitize_callback' => static function( $value ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ 'sanitize_callback' => static function ( $value ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> return 'excerpt' === $value || 'full' === $value ? $value : 'excerpt';
</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="trunksrcwpcontentthemestwentytwentyoneclassesclasstwentytwentyonedarkmodephp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/wp-content/themes/twentytwentyone/classes/class-twenty-twenty-one-dark-mode.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-content/themes/twentytwentyone/classes/class-twenty-twenty-one-dark-mode.php 2023-09-12 15:10:19 UTC (rev 56558)
+++ trunk/src/wp-content/themes/twentytwentyone/classes/class-twenty-twenty-one-dark-mode.php 2023-09-12 15:21:02 UTC (rev 56559)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -153,7 +153,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> array(
</span><span class="cx" style="display: block; padding: 0 10px"> 'section' => 'colors',
</span><span class="cx" style="display: block; padding: 0 10px"> 'priority' => 100,
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- 'active_callback' => static function() {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ 'active_callback' => static function () {
</ins><span class="cx" style="display: block; padding: 0 10px"> return 127 >= Twenty_Twenty_One_Custom_Colors::get_relative_luminance_from_hex( get_theme_mod( 'background_color', 'D1E4DD' ) );
</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">@@ -165,7 +165,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> array(
</span><span class="cx" style="display: block; padding: 0 10px"> 'capability' => 'edit_theme_options',
</span><span class="cx" style="display: block; padding: 0 10px"> 'default' => false,
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- 'sanitize_callback' => static function( $value ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ 'sanitize_callback' => static function ( $value ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> return (bool) $value;
</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">@@ -188,7 +188,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> 'label' => esc_html__( 'Dark Mode support', 'twentytwentyone' ),
</span><span class="cx" style="display: block; padding: 0 10px"> 'priority' => 110,
</span><span class="cx" style="display: block; padding: 0 10px"> 'description' => $description,
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- 'active_callback' => static function( $value ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ 'active_callback' => static function ( $value ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> return 127 < Twenty_Twenty_One_Custom_Colors::get_relative_luminance_from_hex( get_theme_mod( 'background_color', 'D1E4DD' ) );
</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">@@ -200,7 +200,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> array(
</span><span class="cx" style="display: block; padding: 0 10px"> 'selector' => '#dark-mode-toggler',
</span><span class="cx" style="display: block; padding: 0 10px"> 'container_inclusive' => true,
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- 'render_callback' => function() {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ 'render_callback' => function () {
</ins><span class="cx" style="display: block; padding: 0 10px"> $attrs = ( $this->switch_should_render() ) ? array() : array( 'style' => 'display:none;' );
</span><span class="cx" style="display: block; padding: 0 10px"> $this->the_html( $attrs );
</span><span class="cx" style="display: block; padding: 0 10px"> },
</span></span></pre></div>
<a id="trunksrcwpincludesblocksupportslayoutphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/wp-includes/block-supports/layout.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/block-supports/layout.php 2023-09-12 15:10:19 UTC (rev 56558)
+++ trunk/src/wp-includes/block-supports/layout.php 2023-09-12 15:21:02 UTC (rev 56559)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -789,7 +789,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> );
</span><span class="cx" style="display: block; padding: 0 10px"> $updated_content = preg_replace_callback(
</span><span class="cx" style="display: block; padding: 0 10px"> $replace_regex,
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- static function( $matches ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ static function ( $matches ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> return $matches[1] . '<div class="wp-block-group__inner-container">' . $matches[2] . '</div>' . $matches[3];
</span><span class="cx" style="display: block; padding: 0 10px"> },
</span><span class="cx" style="display: block; padding: 0 10px"> $block_content
</span></span></pre></div>
<a id="trunksrcwpincludesblocksindexphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/wp-includes/blocks/index.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/blocks/index.php 2023-09-12 15:10:19 UTC (rev 56558)
+++ trunk/src/wp-includes/blocks/index.php 2023-09-12 15:21:02 UTC (rev 56559)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -87,7 +87,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $register_style = static function( $name, $filename, $style_handle ) use ( $blocks_url, $suffix, $wp_styles, $files ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $register_style = static function ( $name, $filename, $style_handle ) use ( $blocks_url, $suffix, $wp_styles, $files ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> $style_path = "{$name}/{$filename}{$suffix}.css";
</span><span class="cx" style="display: block; padding: 0 10px"> $path = wp_normalize_path( BLOCKS_PATH . $style_path );
</span><span class="cx" style="display: block; padding: 0 10px">
</span></span></pre></div>
<a id="trunksrcwpincludesblocksphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/wp-includes/blocks.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/blocks.php 2023-09-12 15:10:19 UTC (rev 56558)
+++ trunk/src/wp-includes/blocks.php 2023-09-12 15:21:02 UTC (rev 56559)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -532,7 +532,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @return string Returns the block content.
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $settings['render_callback'] = static function( $attributes, $content, $block ) use ( $template_path ) { // phpcs:ignore VariableAnalysis.CodeAnalysis.VariableAnalysis.UnusedVariable
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $settings['render_callback'] = static function ( $attributes, $content, $block ) use ( $template_path ) { // phpcs:ignore VariableAnalysis.CodeAnalysis.VariableAnalysis.UnusedVariable
</ins><span class="cx" style="display: block; padding: 0 10px"> ob_start();
</span><span class="cx" style="display: block; padding: 0 10px"> require $template_path;
</span><span class="cx" style="display: block; padding: 0 10px"> return ob_get_clean();
</span></span></pre></div>
<a id="trunksrcwpincludesclasswpcustomizewidgetsphp"></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-customize-widgets.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/class-wp-customize-widgets.php 2023-09-12 15:10:19 UTC (rev 56558)
+++ trunk/src/wp-includes/class-wp-customize-widgets.php 2023-09-12 15:21:02 UTC (rev 56559)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -982,10 +982,10 @@
</span><span class="cx" style="display: block; padding: 0 10px"> $args['transport'] = current_theme_supports( 'customize-selective-refresh-widgets' ) ? 'postMessage' : 'refresh';
</span><span class="cx" style="display: block; padding: 0 10px"> } elseif ( preg_match( $this->setting_id_patterns['widget_instance'], $id, $matches ) ) {
</span><span class="cx" style="display: block; padding: 0 10px"> $id_base = $matches['id_base'];
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $args['sanitize_callback'] = function( $value ) use ( $id_base ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $args['sanitize_callback'] = function ( $value ) use ( $id_base ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> return $this->sanitize_widget_instance( $value, $id_base );
</span><span class="cx" style="display: block; padding: 0 10px"> };
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $args['sanitize_js_callback'] = function( $value ) use ( $id_base ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $args['sanitize_js_callback'] = function ( $value ) use ( $id_base ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> return $this->sanitize_widget_js_instance( $value, $id_base );
</span><span class="cx" style="display: block; padding: 0 10px"> };
</span><span class="cx" style="display: block; padding: 0 10px"> $args['transport'] = $this->is_widget_selective_refreshable( $matches['id_base'] ) ? 'postMessage' : 'refresh';
</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 2023-09-12 15:10:19 UTC (rev 56558)
+++ trunk/src/wp-includes/class-wp-http.php 2023-09-12 15:21:02 UTC (rev 56559)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -463,7 +463,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> if ( $value instanceof WP_Http_Cookie ) {
</span><span class="cx" style="display: block; padding: 0 10px"> $attributes = array_filter(
</span><span class="cx" style="display: block; padding: 0 10px"> $value->get_attributes(),
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- static function( $attr ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ static function ( $attr ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> return null !== $attr;
</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="trunksrcwpincludesclasswpnavigationfallbackphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/wp-includes/class-wp-navigation-fallback.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/class-wp-navigation-fallback.php 2023-09-12 15:10:19 UTC (rev 56558)
+++ trunk/src/wp-includes/class-wp-navigation-fallback.php 2023-09-12 15:21:02 UTC (rev 56559)
</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"> private static function get_most_recently_created_nav_menu( $classic_nav_menus ) {
</span><span class="cx" style="display: block; padding: 0 10px"> usort(
</span><span class="cx" style="display: block; padding: 0 10px"> $classic_nav_menus,
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- static function( $a, $b ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ static function ( $a, $b ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> return $b->term_id - $a->term_id;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px"> );
</span></span></pre></div>
<a id="trunksrcwpincludesclasswpthemejsonphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/wp-includes/class-wp-theme-json.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/class-wp-theme-json.php 2023-09-12 15:10:19 UTC (rev 56558)
+++ trunk/src/wp-includes/class-wp-theme-json.php 2023-09-12 15:21:02 UTC (rev 56559)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -2334,7 +2334,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> // Prepend the variation selector to the current selector.
</span><span class="cx" style="display: block; padding: 0 10px"> $split_selectors = explode( ',', $shortened_selector );
</span><span class="cx" style="display: block; padding: 0 10px"> $updated_selectors = array_map(
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- static function( $split_selector ) use ( $clean_style_variation_selector ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ static function ( $split_selector ) use ( $clean_style_variation_selector ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> return $clean_style_variation_selector . $split_selector;
</span><span class="cx" style="display: block; padding: 0 10px"> },
</span><span class="cx" style="display: block; padding: 0 10px"> $split_selectors
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -2372,7 +2372,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> $pseudo_matches = array_values(
</span><span class="cx" style="display: block; padding: 0 10px"> array_filter(
</span><span class="cx" style="display: block; padding: 0 10px"> $element_pseudo_allowed,
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- static function( $pseudo_selector ) use ( $selector ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ static function ( $pseudo_selector ) use ( $selector ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> return str_contains( $selector, $pseudo_selector );
</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">@@ -3733,7 +3733,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> $theme_vars = static::compute_theme_vars( $settings );
</span><span class="cx" style="display: block; padding: 0 10px"> $vars = array_reduce(
</span><span class="cx" style="display: block; padding: 0 10px"> array_merge( $preset_vars, $theme_vars ),
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- function( $carry, $item ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ function ( $carry, $item ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> $name = $item['name'];
</span><span class="cx" style="display: block; padding: 0 10px"> $carry[ "var({$name})" ] = $item['value'];
</span><span class="cx" style="display: block; padding: 0 10px"> return $carry;
</span></span></pre></div>
<a id="trunksrcwpincludesformattingphp"></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/formatting.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/formatting.php 2023-09-12 15:10:19 UTC (rev 56558)
+++ trunk/src/wp-includes/formatting.php 2023-09-12 15:21:02 UTC (rev 56559)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -3259,7 +3259,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> $text = stripslashes( $text );
</span><span class="cx" style="display: block; padding: 0 10px"> $text = preg_replace_callback(
</span><span class="cx" style="display: block; padding: 0 10px"> '|<a (.+?)>|i',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- static function( $matches ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ static function ( $matches ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> return wp_rel_callback( $matches, 'nofollow' );
</span><span class="cx" style="display: block; padding: 0 10px"> },
</span><span class="cx" style="display: block; padding: 0 10px"> $text
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -3293,7 +3293,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> $text = stripslashes( $text );
</span><span class="cx" style="display: block; padding: 0 10px"> $text = preg_replace_callback(
</span><span class="cx" style="display: block; padding: 0 10px"> '|<a (.+?)>|i',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- static function( $matches ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ static function ( $matches ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> return wp_rel_callback( $matches, 'nofollow ugc' );
</span><span class="cx" style="display: block; padding: 0 10px"> },
</span><span class="cx" style="display: block; padding: 0 10px"> $text
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -4756,7 +4756,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> $safe_text = (string) preg_replace_callback(
</span><span class="cx" style="display: block; padding: 0 10px"> $regex,
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- static function( $matches ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ static function ( $matches ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> if ( ! isset( $matches[0] ) ) {
</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="trunksrcwpincludesfunctionsphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/wp-includes/functions.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/functions.php 2023-09-12 15:10:19 UTC (rev 56558)
+++ trunk/src/wp-includes/functions.php 2023-09-12 15:21:02 UTC (rev 56559)
</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">
</span><span class="cx" style="display: block; padding: 0 10px"> $post_links = array_unique(
</span><span class="cx" style="display: block; padding: 0 10px"> array_map(
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- static function( $link ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ static function ( $link ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> // Decode to replace valid entities, like &.
</span><span class="cx" style="display: block; padding: 0 10px"> $link = html_entity_decode( $link );
</span><span class="cx" style="display: block; padding: 0 10px"> // Maintain backward compatibility by removing extraneous semi-colons (`;`).
</span></span></pre></div>
<a id="trunksrcwpincludesksesphp"></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/kses.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/kses.php 2023-09-12 15:10:19 UTC (rev 56558)
+++ trunk/src/wp-includes/kses.php 2023-09-12 15:21:02 UTC (rev 56559)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1183,7 +1183,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> // Check if there are attributes that are required.
</span><span class="cx" style="display: block; padding: 0 10px"> $required_attrs = array_filter(
</span><span class="cx" style="display: block; padding: 0 10px"> $allowed_html[ $element_low ],
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- static function( $required_attr_limits ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ static function ( $required_attr_limits ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> return isset( $required_attr_limits['required'] ) && true === $required_attr_limits['required'];
</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="trunksrcwpincludespostphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/wp-includes/post.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/post.php 2023-09-12 15:10:19 UTC (rev 56558)
+++ trunk/src/wp-includes/post.php 2023-09-12 15:21:02 UTC (rev 56559)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -6071,7 +6071,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> $orderby = wp_parse_list( $parsed_args['sort_column'] );
</span><span class="cx" style="display: block; padding: 0 10px"> $orderby = array_map(
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- static function( $orderby_field ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ static function ( $orderby_field ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> $orderby_field = trim( $orderby_field );
</span><span class="cx" style="display: block; padding: 0 10px"> if ( 'post_modified_gmt' === $orderby_field || 'modified_gmt' === $orderby_field ) {
</span><span class="cx" style="display: block; padding: 0 10px"> $orderby_field = str_replace( '_gmt', '', $orderby_field );
</span></span></pre></div>
<a id="trunksrcwpincludesrestapiendpointsclasswprestcontrollerphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-controller.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-controller.php 2023-09-12 15:10:19 UTC (rev 56558)
+++ trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-controller.php 2023-09-12 15:21:02 UTC (rev 56559)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -625,7 +625,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> // Return the list of all requested fields which appear in the schema.
</span><span class="cx" style="display: block; padding: 0 10px"> return array_reduce(
</span><span class="cx" style="display: block; padding: 0 10px"> $requested_fields,
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- static function( $response_fields, $field ) use ( $fields ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ static function ( $response_fields, $field ) use ( $fields ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> if ( in_array( $field, $fields, true ) ) {
</span><span class="cx" style="display: block; padding: 0 10px"> $response_fields[] = $field;
</span><span class="cx" style="display: block; padding: 0 10px"> return $response_fields;
</span></span></pre></div>
<a id="trunksrcwpincludesrestapiendpointsclasswprestpluginscontrollerphp"></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-plugins-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-plugins-controller.php 2023-09-12 15:10:19 UTC (rev 56558)
+++ trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-plugins-controller.php 2023-09-12 15:21:02 UTC (rev 56559)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -381,7 +381,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> $installed_locales = apply_filters( 'plugins_update_check_locales', $installed_locales );
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> $language_packs = array_map(
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- static function( $item ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ static function ( $item ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> return (object) $item;
</span><span class="cx" style="display: block; padding: 0 10px"> },
</span><span class="cx" style="display: block; padding: 0 10px"> $api->language_packs
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -389,7 +389,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> $language_packs = array_filter(
</span><span class="cx" style="display: block; padding: 0 10px"> $language_packs,
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- static function( $pack ) use ( $installed_locales ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ static function ( $pack ) use ( $installed_locales ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> return in_array( $pack->language, $installed_locales, true );
</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="trunksrcwpincludesrestapiendpointsclasswprestsitehealthcontrollerphp"></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-site-health-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-site-health-controller.php 2023-09-12 15:10:19 UTC (rev 56558)
+++ trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-site-health-controller.php 2023-09-12 15:21:02 UTC (rev 56559)
</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"> array(
</span><span class="cx" style="display: block; padding: 0 10px"> 'methods' => 'GET',
</span><span class="cx" style="display: block; padding: 0 10px"> 'callback' => array( $this, 'get_directory_sizes' ),
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- 'permission_callback' => function() {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ 'permission_callback' => function () {
</ins><span class="cx" style="display: block; padding: 0 10px"> return $this->validate_request_permission( 'directory_sizes' ) && ! is_multisite();
</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="trunksrcwpincludesrestapiendpointsclasswprestwidgettypescontrollerphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-widget-types-controller.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-widget-types-controller.php 2023-09-12 15:10:19 UTC (rev 56558)
+++ trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-widget-types-controller.php 2023-09-12 15:21:02 UTC (rev 56559)
</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"> 'form_data' => array(
</span><span class="cx" style="display: block; padding: 0 10px"> 'description' => __( 'Serialized widget form data to encode into instance settings.' ),
</span><span class="cx" style="display: block; padding: 0 10px"> 'type' => 'string',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- 'sanitize_callback' => static function( $form_data ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ 'sanitize_callback' => static function ( $form_data ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> $array = array();
</span><span class="cx" style="display: block; padding: 0 10px"> wp_parse_str( $form_data, $array );
</span><span class="cx" style="display: block; padding: 0 10px"> return $array;
</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 2023-09-12 15:10:19 UTC (rev 56558)
+++ trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-widgets-controller.php 2023-09-12 15:21:02 UTC (rev 56559)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -861,7 +861,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> 'type' => 'string',
</span><span class="cx" style="display: block; padding: 0 10px"> 'context' => array(),
</span><span class="cx" style="display: block; padding: 0 10px"> 'arg_options' => array(
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- 'sanitize_callback' => static function( $form_data ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ 'sanitize_callback' => static function ( $form_data ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> $array = array();
</span><span class="cx" style="display: block; padding: 0 10px"> wp_parse_str( $form_data, $array );
</span><span class="cx" style="display: block; padding: 0 10px"> return $array;
</span></span></pre></div>
<a id="trunksrcwpincludesscriptloaderphp"></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/script-loader.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/script-loader.php 2023-09-12 15:10:19 UTC (rev 56558)
+++ trunk/src/wp-includes/script-loader.php 2023-09-12 15:21:02 UTC (rev 56559)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -2453,7 +2453,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> function wp_filter_out_block_nodes( $nodes ) {
</span><span class="cx" style="display: block; padding: 0 10px"> return array_filter(
</span><span class="cx" style="display: block; padding: 0 10px"> $nodes,
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- static function( $node ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ static function ( $node ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> return ! in_array( 'blocks', $node['path'], true );
</span><span class="cx" style="display: block; padding: 0 10px"> },
</span><span class="cx" style="display: block; padding: 0 10px"> ARRAY_FILTER_USE_BOTH
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -2655,7 +2655,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> if ( wp_should_load_separate_core_block_assets() ) {
</span><span class="cx" style="display: block; padding: 0 10px"> add_filter(
</span><span class="cx" style="display: block; padding: 0 10px"> 'render_block',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- static function( $html, $block ) use ( $block_name, $style_properties ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ static function ( $html, $block ) use ( $block_name, $style_properties ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> if ( $block['blockName'] === $block_name ) {
</span><span class="cx" style="display: block; padding: 0 10px"> wp_enqueue_style( $style_properties['style_handle'] );
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -2917,7 +2917,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> // Reorder styles array based on size.
</span><span class="cx" style="display: block; padding: 0 10px"> usort(
</span><span class="cx" style="display: block; padding: 0 10px"> $styles,
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- static function( $a, $b ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ static function ( $a, $b ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> return ( $a['size'] <= $b['size'] ) ? -1 : 1;
</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">@@ -3150,7 +3150,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * is to ensure the content exists.
</span><span class="cx" style="display: block; padding: 0 10px"> * @return string Block content.
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $callback = static function( $content ) use ( $args ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $callback = static function ( $content ) use ( $args ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> // Register the stylesheet.
</span><span class="cx" style="display: block; padding: 0 10px"> if ( ! empty( $args['src'] ) ) {
</span><span class="cx" style="display: block; padding: 0 10px"> wp_register_style( $args['handle'], $args['src'], $args['deps'], $args['ver'], $args['media'] );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -3188,7 +3188,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @param array $block The full block, including name and attributes.
</span><span class="cx" style="display: block; padding: 0 10px"> * @return string Block content.
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $callback_separate = static function( $content, $block ) use ( $block_name, $callback ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $callback_separate = static function ( $content, $block ) use ( $block_name, $callback ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> if ( ! empty( $block['blockName'] ) && $block_name === $block['blockName'] ) {
</span><span class="cx" style="display: block; padding: 0 10px"> return $callback( $content );
</span><span class="cx" style="display: block; padding: 0 10px"> }
</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 2023-09-12 15:10:19 UTC (rev 56558)
+++ trunk/src/wp-includes/update.php 2023-09-12 15:21:02 UTC (rev 56559)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -553,7 +553,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $sanitize_plugin_update_payload = static function( &$item ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $sanitize_plugin_update_payload = static function ( &$item ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> $item = (object) $item;
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> unset( $item->translations, $item->compatibility );
</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 2023-09-12 15:10:19 UTC (rev 56558)
+++ trunk/src/wp-includes/user.php 2023-09-12 15:21:02 UTC (rev 56559)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -3899,7 +3899,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> // Remove items that use reserved names.
</span><span class="cx" style="display: block; padding: 0 10px"> $extra_data = array_filter(
</span><span class="cx" style="display: block; padding: 0 10px"> $_extra_data,
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- static function( $item ) use ( $reserved_names ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ static function ( $item ) use ( $reserved_names ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> return ! in_array( $item['name'], $reserved_names, true );
</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="trunktestsperformancewpcontentmupluginsservertimingphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/performance/wp-content/mu-plugins/server-timing.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/performance/wp-content/mu-plugins/server-timing.php 2023-09-12 15:10:19 UTC (rev 56558)
+++ trunk/tests/performance/wp-content/mu-plugins/server-timing.php 2023-09-12 15:21:02 UTC (rev 56559)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -2,7 +2,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> add_filter(
</span><span class="cx" style="display: block; padding: 0 10px"> 'template_include',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- static function( $template ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ static function ( $template ) {
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> global $timestart;
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -15,7 +15,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> add_action(
</span><span class="cx" style="display: block; padding: 0 10px"> 'shutdown',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- static function() use ( $server_timing_values, $template_start ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ static function () use ( $server_timing_values, $template_start ) {
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> global $timestart;
</span><span class="cx" style="display: block; padding: 0 10px">
</span></span></pre></div>
<a id="trunktestsphpunittestsactionsphp"></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/actions.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/actions.php 2023-09-12 15:10:19 UTC (rev 56558)
+++ trunk/tests/phpunit/tests/actions.php 2023-09-12 15:21:02 UTC (rev 56559)
</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"> public function test_action_closure() {
</span><span class="cx" style="display: block; padding: 0 10px"> $hook_name = __FUNCTION__;
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $closure = static function( $a, $b ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $closure = static function ( $a, $b ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> $GLOBALS[ $a ] = $b;
</span><span class="cx" style="display: block; padding: 0 10px"> };
</span><span class="cx" style="display: block; padding: 0 10px"> add_action( $hook_name, $closure, 10, 2 );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -400,7 +400,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> $this->assertSame( $GLOBALS[ $context[0] ], $context[1] );
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> $hook_name2 = __FUNCTION__ . '_2';
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $closure2 = static function() {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $closure2 = static function () {
</ins><span class="cx" style="display: block; padding: 0 10px"> $GLOBALS['closure_no_args'] = true;
</span><span class="cx" style="display: block; padding: 0 10px"> };
</span><span class="cx" style="display: block; padding: 0 10px"> add_action( $hook_name2, $closure2 );
</span></span></pre></div>
<a id="trunktestsphpunittestsadminincludesFilephp"></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/admin/includesFile.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/admin/includesFile.php 2023-09-12 15:10:19 UTC (rev 56558)
+++ trunk/tests/phpunit/tests/admin/includesFile.php 2023-09-12 15:21:02 UTC (rev 56559)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -343,7 +343,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> add_filter(
</span><span class="cx" style="display: block; padding: 0 10px"> 'wp_signature_hosts',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- static function( $urls ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ static function ( $urls ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> $urls[] = 'example.com';
</span><span class="cx" style="display: block; padding: 0 10px"> return $urls;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span></span></pre></div>
<a id="trunktestsphpunittestsadminincludesPostphp"></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/admin/includesPost.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/admin/includesPost.php 2023-09-12 15:10:19 UTC (rev 56558)
+++ trunk/tests/phpunit/tests/admin/includesPost.php 2023-09-12 15:21:02 UTC (rev 56559)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -795,7 +795,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> add_filter(
</span><span class="cx" style="display: block; padding: 0 10px"> 'get_sample_permalink',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- function( $permalink, $post_id, $title, $name, $post ) use ( $post_original ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ function ( $permalink, $post_id, $title, $name, $post ) use ( $post_original ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> $this->assertEquals( $post_original, $post, 'Modified post object passed to get_sample_permalink filter.' );
</span><span class="cx" style="display: block; padding: 0 10px"> return $permalink;
</span><span class="cx" style="display: block; padding: 0 10px"> },
</span></span></pre></div>
<a id="trunktestsphpunittestsadminincludesSchemaphp"></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/admin/includesSchema.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/admin/includesSchema.php 2023-09-12 15:10:19 UTC (rev 56558)
+++ trunk/tests/phpunit/tests/admin/includesSchema.php 2023-09-12 15:21:02 UTC (rev 56559)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -192,7 +192,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> // Set the "default" value for the timezone to a deprecated timezone.
</span><span class="cx" style="display: block; padding: 0 10px"> add_filter(
</span><span class="cx" style="display: block; padding: 0 10px"> 'gettext_with_context',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- static function( $translation, $text, $context ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ static function ( $translation, $text, $context ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> if ( '0' === $text && 'default GMT offset or timezone string' === $context ) {
</span><span class="cx" style="display: block; padding: 0 10px"> return 'America/Buenos_Aires';
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span></span></pre></div>
<a id="trunktestsphpunittestsadminwpAutomaticUpdaterphp"></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/admin/wpAutomaticUpdater.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/admin/wpAutomaticUpdater.php 2023-09-12 15:10:19 UTC (rev 56558)
+++ trunk/tests/phpunit/tests/admin/wpAutomaticUpdater.php 2023-09-12 15:21:02 UTC (rev 56559)
</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_send_plugin_theme_email_should_append_plugin_urls( $urls, $successful, $failed ) {
</span><span class="cx" style="display: block; padding: 0 10px"> add_filter(
</span><span class="cx" style="display: block; padding: 0 10px"> 'wp_mail',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- function( $args ) use ( $urls ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ function ( $args ) use ( $urls ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> foreach ( $urls as $url ) {
</span><span class="cx" style="display: block; padding: 0 10px"> $this->assertStringContainsString(
</span><span class="cx" style="display: block; padding: 0 10px"> $url,
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -322,7 +322,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> public function test_send_plugin_theme_email_should_not_append_plugin_urls( $urls, $successful, $failed ) {
</span><span class="cx" style="display: block; padding: 0 10px"> add_filter(
</span><span class="cx" style="display: block; padding: 0 10px"> 'wp_mail',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- function( $args ) use ( $urls ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ function ( $args ) use ( $urls ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> foreach ( $urls as $url ) {
</span><span class="cx" style="display: block; padding: 0 10px"> $this->assertStringNotContainsString(
</span><span class="cx" style="display: block; padding: 0 10px"> $url,
</span></span></pre></div>
<a id="trunktestsphpunittestsadminwpCommentsListTablephp"></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/admin/wpCommentsListTable.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/admin/wpCommentsListTable.php 2023-09-12 15:10:19 UTC (rev 56558)
+++ trunk/tests/phpunit/tests/admin/wpCommentsListTable.php 2023-09-12 15:21:02 UTC (rev 56559)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -96,7 +96,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> public function test_bulk_action_menu_supports_options_and_optgroups() {
</span><span class="cx" style="display: block; padding: 0 10px"> add_filter(
</span><span class="cx" style="display: block; padding: 0 10px"> 'bulk_actions-edit-comments',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- static function() {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ static function () {
</ins><span class="cx" style="display: block; padding: 0 10px"> return array(
</span><span class="cx" style="display: block; padding: 0 10px"> 'delete' => 'Delete',
</span><span class="cx" style="display: block; padding: 0 10px"> 'Change State' => array(
</span></span></pre></div>
<a id="trunktestsphpunittestsadminwpSiteHealthphp"></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/admin/wpSiteHealth.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/admin/wpSiteHealth.php 2023-09-12 15:10:19 UTC (rev 56558)
+++ trunk/tests/phpunit/tests/admin/wpSiteHealth.php 2023-09-12 15:21:02 UTC (rev 56559)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -421,7 +421,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> // Set thresholds so high they should never be exceeded.
</span><span class="cx" style="display: block; padding: 0 10px"> add_filter(
</span><span class="cx" style="display: block; padding: 0 10px"> 'site_status_persistent_object_cache_thresholds',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- static function() {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ static function () {
</ins><span class="cx" style="display: block; padding: 0 10px"> return array(
</span><span class="cx" style="display: block; padding: 0 10px"> 'alloptions_count' => PHP_INT_MAX,
</span><span class="cx" style="display: block; padding: 0 10px"> 'alloptions_bytes' => PHP_INT_MAX,
</span></span></pre></div>
<a id="trunktestsphpunittestsajaxwpAjaxAddTagphp"></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/ajax/wpAjaxAddTag.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/ajax/wpAjaxAddTag.php 2023-09-12 15:10:19 UTC (rev 56558)
+++ trunk/tests/phpunit/tests/ajax/wpAjaxAddTag.php 2023-09-12 15:21:02 UTC (rev 56559)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -74,7 +74,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> 'tag-name' => 'techno',
</span><span class="cx" style="display: block; padding: 0 10px"> ),
</span><span class="cx" style="display: block; padding: 0 10px"> 'expected' => 'A new category added.',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- 'callback' => static function( array $messages ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ 'callback' => static function ( array $messages ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> $messages['category'][1] = 'A new category added.';
</span><span class="cx" style="display: block; padding: 0 10px"> return $messages;
</span><span class="cx" style="display: block; padding: 0 10px"> },
</span></span></pre></div>
<a id="trunktestsphpunittestsajaxwpAjaxAjaxTagSearchphp"></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/ajax/wpAjaxAjaxTagSearch.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/ajax/wpAjaxAjaxTagSearch.php 2023-09-12 15:10:19 UTC (rev 56558)
+++ trunk/tests/phpunit/tests/ajax/wpAjaxAjaxTagSearch.php 2023-09-12 15:21:02 UTC (rev 56559)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -176,7 +176,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> // Add the ajax_term_search_results filter.
</span><span class="cx" style="display: block; padding: 0 10px"> add_filter(
</span><span class="cx" style="display: block; padding: 0 10px"> 'ajax_term_search_results',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- static function( $results, $tax, $s ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ static function ( $results, $tax, $s ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> return array( 'ajax_term_search_results was applied' );
</span><span class="cx" style="display: block; padding: 0 10px"> },
</span><span class="cx" style="display: block; padding: 0 10px"> 10,
</span></span></pre></div>
<a id="trunktestsphpunittestsblocktemplatephp"></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/block-template.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/block-template.php 2023-09-12 15:10:19 UTC (rev 56558)
+++ trunk/tests/phpunit/tests/block-template.php 2023-09-12 15:21:02 UTC (rev 56559)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -284,7 +284,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> register_block_type(
</span><span class="cx" style="display: block; padding: 0 10px"> 'test/in-the-loop-logger',
</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">- 'render_callback' => function() use ( &$in_the_loop_logs ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ 'render_callback' => function () use ( &$in_the_loop_logs ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> $in_the_loop_logs[] = in_the_loop();
</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="trunktestsphpunittestsblockscontextphp"></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/context.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/blocks/context.php 2023-09-12 15:10:19 UTC (rev 56558)
+++ trunk/tests/phpunit/tests/blocks/context.php 2023-09-12 15:21:02 UTC (rev 56559)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -109,7 +109,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> 'gutenberg/contextWithAssigned',
</span><span class="cx" style="display: block; padding: 0 10px"> 'gutenberg/contextWithoutDefault',
</span><span class="cx" style="display: block; padding: 0 10px"> ),
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- 'render_callback' => static function( $attributes, $content, $block ) use ( &$provided_context ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ 'render_callback' => static function ( $attributes, $content, $block ) use ( &$provided_context ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> $provided_context[] = $block->context;
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> return '';
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -149,7 +149,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> 'gutenberg/test-context-consumer',
</span><span class="cx" style="display: block; padding: 0 10px"> array(
</span><span class="cx" style="display: block; padding: 0 10px"> 'uses_context' => array( 'postId', 'postType' ),
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- 'render_callback' => static function( $attributes, $content, $block ) use ( &$provided_context ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ 'render_callback' => static function ( $attributes, $content, $block ) use ( &$provided_context ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> $provided_context[] = $block->context;
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> return '';
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -182,7 +182,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> 'gutenberg/test-context-consumer',
</span><span class="cx" style="display: block; padding: 0 10px"> array(
</span><span class="cx" style="display: block; padding: 0 10px"> 'uses_context' => array( 'example' ),
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- 'render_callback' => static function( $attributes, $content, $block ) use ( &$provided_context ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ 'render_callback' => static function ( $attributes, $content, $block ) use ( &$provided_context ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> $provided_context[] = $block->context;
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> return '';
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -190,7 +190,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> )
</span><span class="cx" style="display: block; padding: 0 10px"> );
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $filter_block_context = static function( $context ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $filter_block_context = static function ( $context ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> $context['example'] = 'ok';
</span><span class="cx" style="display: block; padding: 0 10px"> return $context;
</span><span class="cx" style="display: block; padding: 0 10px"> };
</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 2023-09-12 15:10:19 UTC (rev 56558)
+++ trunk/tests/phpunit/tests/blocks/editor.php 2023-09-12 15:21:02 UTC (rev 56559)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -307,7 +307,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> // Force the return value of wp_max_upload_size() to be 500.
</span><span class="cx" style="display: block; padding: 0 10px"> add_filter(
</span><span class="cx" style="display: block; padding: 0 10px"> 'upload_size_limit',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- static function() {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ static function () {
</ins><span class="cx" style="display: block; padding: 0 10px"> return 500;
</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="trunktestsphpunittestsblocksgetBlockTemplatesphp"></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/getBlockTemplates.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/blocks/getBlockTemplates.php 2023-09-12 15:10:19 UTC (rev 56558)
+++ trunk/tests/phpunit/tests/blocks/getBlockTemplates.php 2023-09-12 15:21:02 UTC (rev 56559)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -101,7 +101,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> private function get_template_ids( $templates ) {
</span><span class="cx" style="display: block; padding: 0 10px"> return array_map(
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- static function( $template ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ static function ( $template ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> return $template->id;
</span><span class="cx" style="display: block; padding: 0 10px"> },
</span><span class="cx" style="display: block; padding: 0 10px"> $templates
</span></span></pre></div>
<a id="trunktestsphpunittestsblocksregisterphp"></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/register.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/blocks/register.php 2023-09-12 15:10:19 UTC (rev 56558)
+++ trunk/tests/phpunit/tests/blocks/register.php 2023-09-12 15:21:02 UTC (rev 56559)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -957,7 +957,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @ticket 49615
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function test_filter_block_registration() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $filter_registration = static function( $args, $name ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $filter_registration = static function ( $args, $name ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> $args['attributes'] = array( $name => array( 'type' => 'boolean' ) );
</span><span class="cx" style="display: block; padding: 0 10px"> return $args;
</span><span class="cx" style="display: block; padding: 0 10px"> };
</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"> * @ticket 52138
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function test_filter_block_registration_metadata() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $filter_metadata_registration = static function( $metadata ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $filter_metadata_registration = static function ( $metadata ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> $metadata['apiVersion'] = 3;
</span><span class="cx" style="display: block; padding: 0 10px"> return $metadata;
</span><span class="cx" style="display: block; padding: 0 10px"> };
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -993,7 +993,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @ticket 52138
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function test_filter_block_registration_metadata_settings() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $filter_metadata_registration = static function( $settings, $metadata ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $filter_metadata_registration = static function ( $settings, $metadata ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> $settings['api_version'] = $metadata['apiVersion'] + 1;
</span><span class="cx" style="display: block; padding: 0 10px"> return $settings;
</span><span class="cx" style="display: block; padding: 0 10px"> };
</span></span></pre></div>
<a id="trunktestsphpunittestsblocksrenderCommentTemplatephp"></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/renderCommentTemplate.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/blocks/renderCommentTemplate.php 2023-09-12 15:10:19 UTC (rev 56558)
+++ trunk/tests/phpunit/tests/blocks/renderCommentTemplate.php 2023-09-12 15:21:02 UTC (rev 56559)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -536,7 +536,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> add_filter(
</span><span class="cx" style="display: block; padding: 0 10px"> 'render_block',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- static function( $block_content, $block ) use ( $parsed_comment_author_name_block ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ static function ( $block_content, $block ) use ( $parsed_comment_author_name_block ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> /*
</span><span class="cx" style="display: block; padding: 0 10px"> * Insert a Comment Author Name block (which requires `commentId`
</span><span class="cx" style="display: block; padding: 0 10px"> * block context to work) after the Comment Content block.
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -591,7 +591,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> $render_block_callback = new MockAction();
</span><span class="cx" style="display: block; padding: 0 10px"> add_filter( 'render_block', array( $render_block_callback, 'filter' ), 10, 3 );
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $render_block_data_callback = static function( $parsed_block ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $render_block_data_callback = static function ( $parsed_block ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> // Add a Social Links block to a Comment Template block's inner blocks.
</span><span class="cx" style="display: block; padding: 0 10px"> if ( 'core/comment-template' === $parsed_block['blockName'] ) {
</span><span class="cx" style="display: block; padding: 0 10px"> $inserted_block_markup = <<<END
</span></span></pre></div>
<a id="trunktestsphpunittestsblockswpBlockphp"></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/wpBlock.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/blocks/wpBlock.php 2023-09-12 15:10:19 UTC (rev 56558)
+++ trunk/tests/phpunit/tests/blocks/wpBlock.php 2023-09-12 15:21:02 UTC (rev 56559)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -275,7 +275,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> $this->registry->register(
</span><span class="cx" style="display: block; padding: 0 10px"> 'core/dynamic',
</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">- 'render_callback' => static function() {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ 'render_callback' => static function () {
</ins><span class="cx" style="display: block; padding: 0 10px"> return 'b';
</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">@@ -296,7 +296,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> $this->registry->register(
</span><span class="cx" style="display: block; padding: 0 10px"> 'core/greeting',
</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">- 'render_callback' => static function( $attributes, $content, $block ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ 'render_callback' => static function ( $attributes, $content, $block ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> return sprintf( 'Hello from %s', $block->name );
</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">@@ -366,7 +366,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> 'default' => '!',
</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">- 'render_callback' => static function( $block_attributes ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ 'render_callback' => static function ( $block_attributes ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> return sprintf(
</span><span class="cx" style="display: block; padding: 0 10px"> 'Hello %s%s',
</span><span class="cx" style="display: block; padding: 0 10px"> $block_attributes['toWhom'],
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -391,7 +391,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> $this->registry->register(
</span><span class="cx" style="display: block; padding: 0 10px"> 'core/outer',
</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">- 'render_callback' => static function( $block_attributes, $content ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ 'render_callback' => static function ( $block_attributes, $content ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> return $content;
</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">@@ -399,7 +399,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> $this->registry->register(
</span><span class="cx" style="display: block; padding: 0 10px"> 'core/inner',
</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">- 'render_callback' => static function() {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ 'render_callback' => static function () {
</ins><span class="cx" style="display: block; padding: 0 10px"> return 'b';
</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">@@ -601,7 +601,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> add_filter(
</span><span class="cx" style="display: block; padding: 0 10px"> 'query_loop_block_query_vars',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- static function( $query, $block, $page ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ static function ( $query, $block, $page ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> $query['post_type'] = 'book';
</span><span class="cx" style="display: block; padding: 0 10px"> return $query;
</span><span class="cx" style="display: block; padding: 0 10px"> },
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -768,7 +768,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> $this->registry->register(
</span><span class="cx" style="display: block; padding: 0 10px"> 'core/outer',
</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">- 'render_callback' => static function( $block_attributes, $content ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ 'render_callback' => static function ( $block_attributes, $content ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> return $content;
</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">@@ -777,7 +777,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> $this->registry->register(
</span><span class="cx" style="display: block; padding: 0 10px"> 'core/inner',
</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">- 'render_callback' => static function() {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ 'render_callback' => static function () {
</ins><span class="cx" style="display: block; padding: 0 10px"> return 'b';
</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="trunktestsphpunittestscanonicalphp"></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/canonical.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/canonical.php 2023-09-12 15:10:19 UTC (rev 56558)
+++ trunk/tests/phpunit/tests/canonical.php 2023-09-12 15:21:02 UTC (rev 56559)
</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"> // Test short-circuit filter.
</span><span class="cx" style="display: block; padding: 0 10px"> add_filter(
</span><span class="cx" style="display: block; padding: 0 10px"> 'pre_redirect_guess_404_permalink',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- static function() {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ static function () {
</ins><span class="cx" style="display: block; padding: 0 10px"> return 'wp';
</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="trunktestsphpunittestscategorywalkerCategoryphp"></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/category/walkerCategory.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/category/walkerCategory.php 2023-09-12 15:10:19 UTC (rev 56558)
+++ trunk/tests/phpunit/tests/category/walkerCategory.php 2023-09-12 15:21:02 UTC (rev 56559)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -40,7 +40,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> add_filter(
</span><span class="cx" style="display: block; padding: 0 10px"> 'category_list_link_attributes',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- static function( $atts ) use ( $value ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ static function ( $atts ) use ( $value ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> $atts['data-test'] = $value;
</span><span class="cx" style="display: block; padding: 0 10px"> return $atts;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span></span></pre></div>
<a id="trunktestsphpunittestscronphp"></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/cron.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/cron.php 2023-09-12 15:10:19 UTC (rev 56558)
+++ trunk/tests/phpunit/tests/cron.php 2023-09-12 15:21:02 UTC (rev 56559)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -910,7 +910,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @covers ::wp_reschedule_event
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function test_schedule_short_circuit_with_error_returns_false_when_wp_error_is_set_to_false() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $return_error = function( $pre, $event, $wp_error ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $return_error = function ( $pre, $event, $wp_error ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> $this->assertFalse( $wp_error );
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> return new WP_Error(
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -942,7 +942,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @covers ::wp_reschedule_event
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function test_schedule_short_circuit_with_error_returns_error_when_wp_error_is_set_to_true() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $return_error = function( $pre, $event, $wp_error ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $return_error = function ( $pre, $event, $wp_error ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> $this->assertTrue( $wp_error );
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> return new WP_Error(
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1029,7 +1029,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @covers ::wp_clear_scheduled_hook
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function test_deprecated_argument_usage_of_wp_clear_scheduled_hook() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $return_pre = function( $pre, $hook, $args, $wp_error ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $return_pre = function ( $pre, $hook, $args, $wp_error ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> $this->assertSame( array( 1, 2, 3 ), $args );
</span><span class="cx" style="display: block; padding: 0 10px"> $this->assertFalse( $wp_error );
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1072,7 +1072,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @covers ::wp_clear_scheduled_hook
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function test_clear_scheduled_hook_returns_custom_pre_filter_error_when_wp_error_is_set_to_true() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $return_error = function( $pre, $timestamp, $hook, $args, $wp_error ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $return_error = function ( $pre, $timestamp, $hook, $args, $wp_error ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> $this->assertTrue( $wp_error );
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> return new WP_Error( 'error_code', 'error message' );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1107,7 +1107,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @covers ::wp_unschedule_hook
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function test_unschedule_short_circuit_with_error_returns_false_when_wp_error_is_set_to_false() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $return_error = function( $pre, $hook, $wp_error ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $return_error = function ( $pre, $hook, $wp_error ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> $this->assertFalse( $wp_error );
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> return new WP_Error(
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1132,7 +1132,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @covers ::wp_unschedule_hook
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function test_unschedule_short_circuit_with_error_returns_error_when_wp_error_is_set_to_true() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $return_error = function( $pre, $hook, $wp_error ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $return_error = function ( $pre, $hook, $wp_error ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> $this->assertTrue( $wp_error );
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> return new WP_Error(
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1194,7 +1194,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> // Force update_option() to fail by setting the new value to match the existing:
</span><span class="cx" style="display: block; padding: 0 10px"> add_filter(
</span><span class="cx" style="display: block; padding: 0 10px"> 'pre_update_option_cron',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- static function() {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ static function () {
</ins><span class="cx" style="display: block; padding: 0 10px"> return get_option( 'cron' );
</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">@@ -1216,7 +1216,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> // Force update_option() to fail by setting the new value to match the existing:
</span><span class="cx" style="display: block; padding: 0 10px"> add_filter(
</span><span class="cx" style="display: block; padding: 0 10px"> 'pre_update_option_cron',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- static function() {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ static function () {
</ins><span class="cx" style="display: block; padding: 0 10px"> return get_option( 'cron' );
</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">@@ -1241,7 +1241,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> // Force update_option() to fail by setting the new value to match the existing:
</span><span class="cx" style="display: block; padding: 0 10px"> add_filter(
</span><span class="cx" style="display: block; padding: 0 10px"> 'pre_update_option_cron',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- static function() {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ static function () {
</ins><span class="cx" style="display: block; padding: 0 10px"> return get_option( 'cron' );
</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">@@ -1267,7 +1267,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> // Force update_option() to fail by setting the new value to match the existing:
</span><span class="cx" style="display: block; padding: 0 10px"> add_filter(
</span><span class="cx" style="display: block; padding: 0 10px"> 'pre_update_option_cron',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- static function() {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ static function () {
</ins><span class="cx" style="display: block; padding: 0 10px"> return get_option( 'cron' );
</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="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 2023-09-12 15:10:19 UTC (rev 56558)
+++ trunk/tests/phpunit/tests/dependencies/scripts.php 2023-09-12 15:21:02 UTC (rev 56559)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -2917,7 +2917,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> wp_set_script_translations( 'common' );
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> $print_scripts = get_echo(
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- static function() {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ static function () {
</ins><span class="cx" style="display: block; padding: 0 10px"> wp_print_scripts();
</span><span class="cx" style="display: block; padding: 0 10px"> _print_scripts();
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span></span></pre></div>
<a id="trunktestsphpunittestsfeedrss2php"></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/feed/rss2.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/feed/rss2.php 2023-09-12 15:10:19 UTC (rev 56558)
+++ trunk/tests/phpunit/tests/feed/rss2.php 2023-09-12 15:21:02 UTC (rev 56559)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -533,7 +533,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> // The Last-Modified header should have the post's date when "withcomments" is not passed.
</span><span class="cx" style="display: block; padding: 0 10px"> add_filter(
</span><span class="cx" style="display: block; padding: 0 10px"> 'wp_headers',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- function( $headers ) use ( $last_week ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ function ( $headers ) use ( $last_week ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> $this->assertSame(
</span><span class="cx" style="display: block; padding: 0 10px"> strtotime( $headers['Last-Modified'] ),
</span><span class="cx" style="display: block; padding: 0 10px"> strtotime( $last_week ),
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -572,7 +572,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> // The Last-Modified header should have the comment's date when "withcomments=1" is passed.
</span><span class="cx" style="display: block; padding: 0 10px"> add_filter(
</span><span class="cx" style="display: block; padding: 0 10px"> 'wp_headers',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- function( $headers ) use ( $yesterday ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ function ( $headers ) use ( $yesterday ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> $this->assertSame(
</span><span class="cx" style="display: block; padding: 0 10px"> strtotime( $headers['Last-Modified'] ),
</span><span class="cx" style="display: block; padding: 0 10px"> strtotime( $yesterday ),
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -615,7 +615,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> // The Last-Modified header should have the date from today's post when it is the latest update.
</span><span class="cx" style="display: block; padding: 0 10px"> add_filter(
</span><span class="cx" style="display: block; padding: 0 10px"> 'wp_headers',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- function( $headers ) use ( $today ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ function ( $headers ) use ( $today ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> $this->assertSame(
</span><span class="cx" style="display: block; padding: 0 10px"> strtotime( $headers['Last-Modified'] ),
</span><span class="cx" style="display: block; padding: 0 10px"> strtotime( $today ),
</span></span></pre></div>
<a id="trunktestsphpunittestsfilephp"></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/file.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/file.php 2023-09-12 15:10:19 UTC (rev 56558)
+++ trunk/tests/phpunit/tests/file.php 2023-09-12 15:21:02 UTC (rev 56559)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -251,7 +251,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> // Create a conflict by removing the randomness of the generated password.
</span><span class="cx" style="display: block; padding: 0 10px"> add_filter(
</span><span class="cx" style="display: block; padding: 0 10px"> 'random_password',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- static function() {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ static function () {
</ins><span class="cx" style="display: block; padding: 0 10px"> return '123456';
</span><span class="cx" style="display: block; padding: 0 10px"> },
</span><span class="cx" style="display: block; padding: 0 10px"> 10,
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -285,7 +285,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> // Force random passwords to 12 characters.
</span><span class="cx" style="display: block; padding: 0 10px"> add_filter(
</span><span class="cx" style="display: block; padding: 0 10px"> 'random_password',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- static function() {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ static function () {
</ins><span class="cx" style="display: block; padding: 0 10px"> return '1a2b3c4d5e6f';
</span><span class="cx" style="display: block; padding: 0 10px"> },
</span><span class="cx" style="display: block; padding: 0 10px"> 10,
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -321,7 +321,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> // Make the filter send the filename over the limit.
</span><span class="cx" style="display: block; padding: 0 10px"> add_filter(
</span><span class="cx" style="display: block; padding: 0 10px"> 'wp_unique_filename',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- static function( $filename ) use ( &$filenames_over_limit ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ static function ( $filename ) use ( &$filenames_over_limit ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> if ( strlen( $filename ) === 252 ) {
</span><span class="cx" style="display: block; padding: 0 10px"> $filename .= '1';
</span><span class="cx" style="display: block; padding: 0 10px"> ++$filenames_over_limit;
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -357,7 +357,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> // Force random passwords to 12 characters.
</span><span class="cx" style="display: block; padding: 0 10px"> add_filter(
</span><span class="cx" style="display: block; padding: 0 10px"> 'random_password',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- static function() {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ static function () {
</ins><span class="cx" style="display: block; padding: 0 10px"> return '1a2b3c4d5e6f';
</span><span class="cx" style="display: block; padding: 0 10px"> },
</span><span class="cx" style="display: block; padding: 0 10px"> 10,
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -375,7 +375,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> // Make the filter send the filename over the limit.
</span><span class="cx" style="display: block; padding: 0 10px"> add_filter(
</span><span class="cx" style="display: block; padding: 0 10px"> 'wp_unique_filename',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- static function( $filename ) use ( &$filenames_over_limit ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ static function ( $filename ) use ( &$filenames_over_limit ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> if ( strlen( $filename ) === 252 ) {
</span><span class="cx" style="display: block; padding: 0 10px"> $filename .= '1';
</span><span class="cx" style="display: block; padding: 0 10px"> ++$filenames_over_limit;
</span></span></pre></div>
<a id="trunktestsphpunittestsformattingwpTrimExcerptphp"></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/wpTrimExcerpt.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/formatting/wpTrimExcerpt.php 2023-09-12 15:10:19 UTC (rev 56558)
+++ trunk/tests/phpunit/tests/formatting/wpTrimExcerpt.php 2023-09-12 15:21:02 UTC (rev 56559)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -108,7 +108,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> $has_filter = true;
</span><span class="cx" style="display: block; padding: 0 10px"> add_filter(
</span><span class="cx" style="display: block; padding: 0 10px"> 'the_content',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- static function( $content ) use ( &$has_filter ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ static function ( $content ) use ( &$has_filter ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> $has_filter = has_filter( 'the_content', 'wp_filter_content_tags' );
</span><span class="cx" style="display: block; padding: 0 10px"> return $content;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span></span></pre></div>
<a id="trunktestsphpunittestsfunctionswpFilesizephp"></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/wpFilesize.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/functions/wpFilesize.php 2023-09-12 15:10:19 UTC (rev 56558)
+++ trunk/tests/phpunit/tests/functions/wpFilesize.php 2023-09-12 15:21:02 UTC (rev 56559)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -25,7 +25,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> add_filter(
</span><span class="cx" style="display: block; padding: 0 10px"> 'wp_filesize',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- static function() {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ static function () {
</ins><span class="cx" style="display: block; padding: 0 10px"> return 999;
</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">@@ -34,7 +34,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> add_filter(
</span><span class="cx" style="display: block; padding: 0 10px"> 'pre_wp_filesize',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- static function() {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ static function () {
</ins><span class="cx" style="display: block; padding: 0 10px"> return 111;
</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="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 2023-09-12 15:10:19 UTC (rev 56558)
+++ trunk/tests/phpunit/tests/functions.php 2023-09-12 15:21:02 UTC (rev 56559)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1726,7 +1726,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> add_filter(
</span><span class="cx" style="display: block; padding: 0 10px"> 'upload_mimes',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- static function( $mimes ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ static function ( $mimes ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> $mimes['svg'] = 'image/svg+xml';
</span><span class="cx" style="display: block; padding: 0 10px"> return $mimes;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1764,7 +1764,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> add_filter(
</span><span class="cx" style="display: block; padding: 0 10px"> 'upload_mimes',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- static function( $mimes ) use ( $woff_mime_type ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ static function ( $mimes ) use ( $woff_mime_type ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> $mimes['woff'] = $woff_mime_type;
</span><span class="cx" style="display: block; padding: 0 10px"> return $mimes;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span></span></pre></div>
<a id="trunktestsphpunittestsgeneralfeedLinksExtraphp"></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/general/feedLinksExtra.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/general/feedLinksExtra.php 2023-09-12 15:10:19 UTC (rev 56558)
+++ trunk/tests/phpunit/tests/general/feedLinksExtra.php 2023-09-12 15:21:02 UTC (rev 56559)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -491,7 +491,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> public function test_feed_links_extra_should_respect_feed_type() {
</span><span class="cx" style="display: block; padding: 0 10px"> add_filter(
</span><span class="cx" style="display: block; padding: 0 10px"> 'default_feed',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- static function() {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ static function () {
</ins><span class="cx" style="display: block; padding: 0 10px"> return 'foo';
</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">@@ -498,7 +498,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> add_filter(
</span><span class="cx" style="display: block; padding: 0 10px"> 'feed_content_type',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- static function() {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ static function () {
</ins><span class="cx" style="display: block; padding: 0 10px"> return 'testing/foo';
</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="trunktestsphpunittestshttphttpphp"></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/http/http.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/http/http.php 2023-09-12 15:10:19 UTC (rev 56558)
+++ trunk/tests/phpunit/tests/http/http.php 2023-09-12 15:21:02 UTC (rev 56559)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -593,7 +593,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> // Filter the response made by WP_Http::handle_redirects().
</span><span class="cx" style="display: block; padding: 0 10px"> add_filter(
</span><span class="cx" style="display: block; padding: 0 10px"> 'pre_http_request',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- function( $response, $parsed_args, $url ) use ( &$pre_http_request_filter_has_run ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ function ( $response, $parsed_args, $url ) use ( &$pre_http_request_filter_has_run ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> $pre_http_request_filter_has_run = true;
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> // Assert the redirect URL is correct.
</span></span></pre></div>
<a id="trunktestsphpunittestshttpsdetectionphp"></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/https-detection.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/https-detection.php 2023-09-12 15:10:19 UTC (rev 56558)
+++ trunk/tests/phpunit/tests/https-detection.php 2023-09-12 15:21:02 UTC (rev 56559)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -117,7 +117,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> // Override to enforce no errors being detected.
</span><span class="cx" style="display: block; padding: 0 10px"> add_filter(
</span><span class="cx" style="display: block; padding: 0 10px"> 'pre_wp_update_https_detection_errors',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- static function() {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ static function () {
</ins><span class="cx" style="display: block; padding: 0 10px"> return new WP_Error();
</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">@@ -127,7 +127,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> // Override to enforce an error being detected.
</span><span class="cx" style="display: block; padding: 0 10px"> add_filter(
</span><span class="cx" style="display: block; padding: 0 10px"> 'pre_wp_update_https_detection_errors',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- static function() {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ static function () {
</ins><span class="cx" style="display: block; padding: 0 10px"> return new WP_Error(
</span><span class="cx" style="display: block; padding: 0 10px"> 'ssl_verification_failed',
</span><span class="cx" style="display: block; padding: 0 10px"> 'Bad SSL certificate.'
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -316,7 +316,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @return callable Filter callback.
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> private function filter_set_url_scheme( $scheme ) {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- return static function( $url ) use ( $scheme ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ return static function ( $url ) use ( $scheme ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> return set_url_scheme( $url, $scheme );
</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="trunktestsphpunittestshttpsmigrationphp"></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/https-migration.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/https-migration.php 2023-09-12 15:10:19 UTC (rev 56558)
+++ trunk/tests/phpunit/tests/https-migration.php 2023-09-12 15:21:02 UTC (rev 56559)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -161,7 +161,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> private function force_wp_is_using_https( $enabled ) {
</span><span class="cx" style="display: block; padding: 0 10px"> $scheme = $enabled ? 'https' : 'http';
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $replace_scheme = static function( $url ) use ( $scheme ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $replace_scheme = static function ( $url ) use ( $scheme ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> return str_replace( array( 'http://', 'https://' ), $scheme . '://', $url );
</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">@@ -172,7 +172,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> private function force_option( $option, $value ) {
</span><span class="cx" style="display: block; padding: 0 10px"> add_filter(
</span><span class="cx" style="display: block; padding: 0 10px"> "option_$option",
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- static function() use ( $value ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ static function () use ( $value ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> return $value;
</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="trunktestsphpunittestsimageeditorImagickphp"></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/image/editorImagick.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/image/editorImagick.php 2023-09-12 15:10:19 UTC (rev 56558)
+++ trunk/tests/phpunit/tests/image/editorImagick.php 2023-09-12 15:21:02 UTC (rev 56559)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -683,7 +683,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> $check_file = path_join( dirname( $attached_file ), $check['file'] );
</span><span class="cx" style="display: block; padding: 0 10px"> $imagick = new Imagick( $check_file );
</span><span class="cx" style="display: block; padding: 0 10px"> $output = array_map(
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- static function( $value ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ static function ( $value ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> return (int) round( $value );
</span><span class="cx" style="display: block; padding: 0 10px"> },
</span><span class="cx" style="display: block; padding: 0 10px"> array_intersect_key( $imagick->getImagePixelColor( 100, 100 )->getColor( true /* normalized */ ), $rgb )
</span></span></pre></div>
<a id="trunktestsphpunittestsimagefunctionsphp"></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/image/functions.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/image/functions.php 2023-09-12 15:10:19 UTC (rev 56558)
+++ trunk/tests/phpunit/tests/image/functions.php 2023-09-12 15:21:02 UTC (rev 56559)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -692,7 +692,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> add_filter(
</span><span class="cx" style="display: block; padding: 0 10px"> 'wp_image_editors',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- static function( $editors ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ static function ( $editors ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> return array( 'WP_Image_Editor_Mock' );
</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">@@ -718,7 +718,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> public function test_wp_crop_image_should_return_correct_file_extension_if_output_format_was_modified() {
</span><span class="cx" style="display: block; padding: 0 10px"> add_filter(
</span><span class="cx" style="display: block; padding: 0 10px"> 'image_editor_output_format',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- static function() {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ static function () {
</ins><span class="cx" style="display: block; padding: 0 10px"> return array_fill_keys( array( 'image/jpg', 'image/jpeg', 'image/png' ), 'image/webp' );
</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="trunktestsphpunittestsimageintermediateSizephp"></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/image/intermediateSize.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/image/intermediateSize.php 2023-09-12 15:10:19 UTC (rev 56558)
+++ trunk/tests/phpunit/tests/image/intermediateSize.php 2023-09-12 15:21:02 UTC (rev 56559)
</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"> public function test_image_editor_output_format_filter() {
</span><span class="cx" style="display: block; padding: 0 10px"> add_filter(
</span><span class="cx" style="display: block; padding: 0 10px"> 'image_editor_output_format',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- static function() {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ static function () {
</ins><span class="cx" style="display: block; padding: 0 10px"> return array( 'image/jpeg' => 'image/webp' );
</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="trunktestsphpunittestsl10ndetermineLocalephp"></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/l10n/determineLocale.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/l10n/determineLocale.php 2023-09-12 15:10:19 UTC (rev 56558)
+++ trunk/tests/phpunit/tests/l10n/determineLocale.php 2023-09-12 15:21:02 UTC (rev 56559)
</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"> public function test_short_circuit_no_string() {
</span><span class="cx" style="display: block; padding: 0 10px"> add_filter(
</span><span class="cx" style="display: block; padding: 0 10px"> 'pre_determine_locale',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- static function() {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ static function () {
</ins><span class="cx" style="display: block; padding: 0 10px"> return 1234;
</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">@@ -43,7 +43,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> public function test_short_circuit_string() {
</span><span class="cx" style="display: block; padding: 0 10px"> add_filter(
</span><span class="cx" style="display: block; padding: 0 10px"> 'pre_determine_locale',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- static function() {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ static function () {
</ins><span class="cx" style="display: block; padding: 0 10px"> return 'myNewLocale';
</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">@@ -53,7 +53,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> public function test_defaults_to_site_locale() {
</span><span class="cx" style="display: block; padding: 0 10px"> add_filter(
</span><span class="cx" style="display: block; padding: 0 10px"> 'locale',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- static function() {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ static function () {
</ins><span class="cx" style="display: block; padding: 0 10px"> return 'siteLocale';
</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">@@ -64,7 +64,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> public function test_is_admin_no_user() {
</span><span class="cx" style="display: block; padding: 0 10px"> add_filter(
</span><span class="cx" style="display: block; padding: 0 10px"> 'locale',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- static function() {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ static function () {
</ins><span class="cx" style="display: block; padding: 0 10px"> return 'siteLocale';
</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">@@ -77,7 +77,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> public function test_is_admin_user_locale() {
</span><span class="cx" style="display: block; padding: 0 10px"> add_filter(
</span><span class="cx" style="display: block; padding: 0 10px"> 'locale',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- static function() {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ static function () {
</ins><span class="cx" style="display: block; padding: 0 10px"> return 'siteLocale';
</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">@@ -91,7 +91,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> public function test_json_request_user_locale() {
</span><span class="cx" style="display: block; padding: 0 10px"> add_filter(
</span><span class="cx" style="display: block; padding: 0 10px"> 'locale',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- static function() {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ static function () {
</ins><span class="cx" style="display: block; padding: 0 10px"> return 'siteLocale';
</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">@@ -107,7 +107,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> public function test_json_request_user_locale_no_user() {
</span><span class="cx" style="display: block; padding: 0 10px"> add_filter(
</span><span class="cx" style="display: block; padding: 0 10px"> 'locale',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- static function() {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ static function () {
</ins><span class="cx" style="display: block; padding: 0 10px"> return 'siteLocale';
</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">@@ -121,7 +121,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> public function test_json_request_missing_get_param() {
</span><span class="cx" style="display: block; padding: 0 10px"> add_filter(
</span><span class="cx" style="display: block; padding: 0 10px"> 'locale',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- static function() {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ static function () {
</ins><span class="cx" style="display: block; padding: 0 10px"> return 'siteLocale';
</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">@@ -136,7 +136,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> public function test_json_request_incorrect_get_param() {
</span><span class="cx" style="display: block; padding: 0 10px"> add_filter(
</span><span class="cx" style="display: block; padding: 0 10px"> 'locale',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- static function() {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ static function () {
</ins><span class="cx" style="display: block; padding: 0 10px"> return 'siteLocale';
</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">@@ -152,7 +152,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> public function test_get_param_but_no_json_request() {
</span><span class="cx" style="display: block; padding: 0 10px"> add_filter(
</span><span class="cx" style="display: block; padding: 0 10px"> 'locale',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- static function() {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ static function () {
</ins><span class="cx" style="display: block; padding: 0 10px"> return 'siteLocale';
</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">@@ -167,7 +167,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> public function test_wp_login_get_param_not_on_login_page() {
</span><span class="cx" style="display: block; padding: 0 10px"> add_filter(
</span><span class="cx" style="display: block; padding: 0 10px"> 'locale',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- static function() {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ static function () {
</ins><span class="cx" style="display: block; padding: 0 10px"> return 'siteLocale';
</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">@@ -182,7 +182,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> public function test_wp_login_get_param_on_login_page() {
</span><span class="cx" style="display: block; padding: 0 10px"> add_filter(
</span><span class="cx" style="display: block; padding: 0 10px"> 'locale',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- static function() {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ static function () {
</ins><span class="cx" style="display: block; padding: 0 10px"> return 'siteLocale';
</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">@@ -198,7 +198,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> public function test_wp_login_get_param_on_login_page_empty_string() {
</span><span class="cx" style="display: block; padding: 0 10px"> add_filter(
</span><span class="cx" style="display: block; padding: 0 10px"> 'locale',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- static function() {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ static function () {
</ins><span class="cx" style="display: block; padding: 0 10px"> return 'siteLocale';
</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">@@ -214,7 +214,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> public function test_wp_login_get_param_on_login_page_incorrect_string() {
</span><span class="cx" style="display: block; padding: 0 10px"> add_filter(
</span><span class="cx" style="display: block; padding: 0 10px"> 'locale',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- static function() {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ static function () {
</ins><span class="cx" style="display: block; padding: 0 10px"> return 'siteLocale';
</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">@@ -230,7 +230,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> public function test_wp_login_cookie_not_on_login_page() {
</span><span class="cx" style="display: block; padding: 0 10px"> add_filter(
</span><span class="cx" style="display: block; padding: 0 10px"> 'locale',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- static function() {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ static function () {
</ins><span class="cx" style="display: block; padding: 0 10px"> return 'siteLocale';
</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">@@ -245,7 +245,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> public function test_wp_login_cookie_on_login_page() {
</span><span class="cx" style="display: block; padding: 0 10px"> add_filter(
</span><span class="cx" style="display: block; padding: 0 10px"> 'locale',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- static function() {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ static function () {
</ins><span class="cx" style="display: block; padding: 0 10px"> return 'siteLocale';
</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">@@ -261,7 +261,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> public function test_wp_login_cookie_on_login_page_empty_string() {
</span><span class="cx" style="display: block; padding: 0 10px"> add_filter(
</span><span class="cx" style="display: block; padding: 0 10px"> 'locale',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- static function() {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ static function () {
</ins><span class="cx" style="display: block; padding: 0 10px"> return 'siteLocale';
</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="trunktestsphpunittestslinkeditTermLinkphp"></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/link/editTermLink.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/link/editTermLink.php 2023-09-12 15:10:19 UTC (rev 56558)
+++ trunk/tests/phpunit/tests/link/editTermLink.php 2023-09-12 15:21:02 UTC (rev 56559)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -101,7 +101,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> add_filter(
</span><span class="cx" style="display: block; padding: 0 10px"> 'edit_term_link',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- function( $location, $term ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ function ( $location, $term ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> $this->assertIsInt( $term );
</span><span class="cx" style="display: block; padding: 0 10px"> },
</span><span class="cx" style="display: block; padding: 0 10px"> 10,
</span></span></pre></div>
<a id="trunktestsphpunittestslinkgetEditTermLinkphp"></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/link/getEditTermLink.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/link/getEditTermLink.php 2023-09-12 15:10:19 UTC (rev 56558)
+++ trunk/tests/phpunit/tests/link/getEditTermLink.php 2023-09-12 15:21:02 UTC (rev 56559)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -187,7 +187,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> add_filter(
</span><span class="cx" style="display: block; padding: 0 10px"> 'get_edit_term_link',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- function( $location, $term ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ function ( $location, $term ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> $this->assertIsInt( $term );
</span><span class="cx" style="display: block; padding: 0 10px"> },
</span><span class="cx" style="display: block; padding: 0 10px"> 10,
</span></span></pre></div>
<a id="trunktestsphpunittestsmediawpGenerateAttachmentMetadataphp"></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/wpGenerateAttachmentMetadata.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/media/wpGenerateAttachmentMetadata.php 2023-09-12 15:10:19 UTC (rev 56558)
+++ trunk/tests/phpunit/tests/media/wpGenerateAttachmentMetadata.php 2023-09-12 15:21:02 UTC (rev 56559)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -73,7 +73,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> // PSD mime type is not allowed by default on multisite.
</span><span class="cx" style="display: block; padding: 0 10px"> add_filter(
</span><span class="cx" style="display: block; padding: 0 10px"> 'upload_mimes',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- static function( $mimes ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ static function ( $mimes ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> $mimes['psd'] = 'application/octet-stream';
</span><span class="cx" style="display: block; padding: 0 10px"> return $mimes;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span></span></pre></div>
<a id="trunktestsphpunittestsmediawpImageTagAddDecodingAttrphp"></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/wpImageTagAddDecodingAttr.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/media/wpImageTagAddDecodingAttr.php 2023-09-12 15:10:19 UTC (rev 56558)
+++ trunk/tests/phpunit/tests/media/wpImageTagAddDecodingAttr.php 2023-09-12 15:21:02 UTC (rev 56559)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -25,7 +25,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> if ( 'no value' !== $decoding ) {
</span><span class="cx" style="display: block; padding: 0 10px"> add_filter(
</span><span class="cx" style="display: block; padding: 0 10px"> 'wp_img_tag_add_decoding_attr',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- static function( $value ) use ( $decoding ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ static function ( $value ) use ( $decoding ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> return $decoding;
</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">@@ -86,7 +86,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> if ( 'no value' !== $decoding ) {
</span><span class="cx" style="display: block; padding: 0 10px"> add_filter(
</span><span class="cx" style="display: block; padding: 0 10px"> 'wp_img_tag_add_decoding_attr',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- static function( $value ) use ( $decoding ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ static function ( $value ) use ( $decoding ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> return $decoding;
</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="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 2023-09-12 15:10:19 UTC (rev 56558)
+++ trunk/tests/phpunit/tests/media.php 2023-09-12 15:21:02 UTC (rev 56559)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -2357,7 +2357,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> add_filter(
</span><span class="cx" style="display: block; padding: 0 10px"> 'wp_content_img_tag',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- static function( $filtered_image ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ static function ( $filtered_image ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> return "<span>$filtered_image</span>";
</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">@@ -2381,7 +2381,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> add_filter(
</span><span class="cx" style="display: block; padding: 0 10px"> 'wp_content_img_tag',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- static function( $filtered_image ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ static function ( $filtered_image ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> return "<span>$filtered_image</span>";
</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">@@ -4020,7 +4020,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> add_filter( 'wp_img_tag_add_decoding_attr', '__return_false' );
</span><span class="cx" style="display: block; padding: 0 10px"> add_filter(
</span><span class="cx" style="display: block; padding: 0 10px"> 'wp_get_attachment_image_attributes',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- static function( $attr ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ static function ( $attr ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> unset( $attr['srcset'], $attr['sizes'], $attr['decoding'] );
</span><span class="cx" style="display: block; padding: 0 10px"> return $attr;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -4154,7 +4154,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> // Overwrite post content with an image.
</span><span class="cx" style="display: block; padding: 0 10px"> add_filter(
</span><span class="cx" style="display: block; padding: 0 10px"> 'the_content',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- static function() use ( &$image_within_content ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ static function () use ( &$image_within_content ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> // Replace content with an image tag, i.e. the 'wp_get_attachment_image' context is used while running 'the_content' filter.
</span><span class="cx" style="display: block; padding: 0 10px"> $image_within_content = wp_get_attachment_image( self::$large_id, 'large', false );
</span><span class="cx" style="display: block; padding: 0 10px"> return $image_within_content;
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -4221,7 +4221,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> $result = null;
</span><span class="cx" style="display: block; padding: 0 10px"> add_filter(
</span><span class="cx" style="display: block; padding: 0 10px"> 'the_content',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- static function( $content ) use ( &$result, $context ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ static function ( $content ) use ( &$result, $context ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> $result = wp_get_loading_attr_default( $context );
</span><span class="cx" style="display: block; padding: 0 10px"> return $content;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -4523,7 +4523,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> $result = null;
</span><span class="cx" style="display: block; padding: 0 10px"> add_filter(
</span><span class="cx" style="display: block; padding: 0 10px"> 'the_content',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- function( $content ) use ( &$result, $context ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ function ( $content ) use ( &$result, $context ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> $attr = $this->get_width_height_for_high_priority();
</span><span class="cx" style="display: block; padding: 0 10px"> $result = wp_get_loading_optimization_attributes( 'img', $attr, $context );
</span><span class="cx" style="display: block; padding: 0 10px"> return $content;
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -4805,7 +4805,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> // Add a filter that modifies the context.
</span><span class="cx" style="display: block; padding: 0 10px"> add_filter(
</span><span class="cx" style="display: block; padding: 0 10px"> 'wp_get_attachment_image_context',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- static function() {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ static function () {
</ins><span class="cx" style="display: block; padding: 0 10px"> return 'my_custom_context';
</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">@@ -5208,7 +5208,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> add_filter(
</span><span class="cx" style="display: block; padding: 0 10px"> 'wp_min_priority_img_pixels',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- static function( $res ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ static function ( $res ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> return 2500; // 50*50=2500
</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">@@ -5281,7 +5281,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> private function track_last_attachment_image_context( &$last_context ) {
</span><span class="cx" style="display: block; padding: 0 10px"> add_filter(
</span><span class="cx" style="display: block; padding: 0 10px"> 'wp_get_attachment_image_context',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- static function( $context ) use ( &$last_context ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ static function ( $context ) use ( &$last_context ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> $last_context = $context;
</span><span class="cx" style="display: block; padding: 0 10px"> return $context;
</span><span class="cx" style="display: block; padding: 0 10px"> },
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -5336,7 +5336,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> public function force_omit_loading_attr_threshold( $threshold ) {
</span><span class="cx" style="display: block; padding: 0 10px"> add_filter(
</span><span class="cx" style="display: block; padding: 0 10px"> 'wp_omit_loading_attr_threshold',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- static function() use ( $threshold ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ static function () use ( $threshold ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> return $threshold;
</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="trunktestsphpunittestsmenuwalkernavmenuphp"></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/walker-nav-menu.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/menu/walker-nav-menu.php 2023-09-12 15:10:19 UTC (rev 56558)
+++ trunk/tests/phpunit/tests/menu/walker-nav-menu.php 2023-09-12 15:21:02 UTC (rev 56559)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -101,7 +101,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> add_filter(
</span><span class="cx" style="display: block; padding: 0 10px"> 'nav_menu_link_attributes',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- static function( $atts ) use ( $value ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ static function ( $atts ) use ( $value ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> $atts['data-test'] = $value;
</span><span class="cx" style="display: block; padding: 0 10px"> return $atts;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span></span></pre></div>
<a id="trunktestsphpunittestsoptionwpSetOptionAutoloadValuesphp"></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/option/wpSetOptionAutoloadValues.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/option/wpSetOptionAutoloadValues.php 2023-09-12 15:10:19 UTC (rev 56558)
+++ trunk/tests/phpunit/tests/option/wpSetOptionAutoloadValues.php 2023-09-12 15:21:02 UTC (rev 56559)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -186,7 +186,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> // Force UPDATE queries to fail, leading to no autoload values being updated.
</span><span class="cx" style="display: block; padding: 0 10px"> add_filter(
</span><span class="cx" style="display: block; padding: 0 10px"> 'query',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- static function( $query ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ static function ( $query ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> if ( str_starts_with( $query, 'UPDATE ' ) ) {
</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="trunktestsphpunittestspostgetPagesphp"></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/getPages.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/post/getPages.php 2023-09-12 15:10:19 UTC (rev 56558)
+++ trunk/tests/phpunit/tests/post/getPages.php 2023-09-12 15:21:02 UTC (rev 56559)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -344,7 +344,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> // Filter the query to return the wptests_pt post type.
</span><span class="cx" style="display: block; padding: 0 10px"> add_filter(
</span><span class="cx" style="display: block; padding: 0 10px"> 'get_pages_query_args',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- static function( $query_args, $parsed_args ) use ( &$query_args_values, &$parsed_args_values ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ static function ( $query_args, $parsed_args ) use ( &$query_args_values, &$parsed_args_values ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> $query_args['post_type'] = 'wptests_pt';
</span><span class="cx" style="display: block; padding: 0 10px"> $query_args_values = $query_args;
</span><span class="cx" style="display: block; padding: 0 10px"> $parsed_args_values = $parsed_args;
</span></span></pre></div>
<a id="trunktestsphpunittestspostrevisionsphp"></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/revisions.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/post/revisions.php 2023-09-12 15:10:19 UTC (rev 56558)
+++ trunk/tests/phpunit/tests/post/revisions.php 2023-09-12 15:21:02 UTC (rev 56559)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -883,7 +883,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> add_filter(
</span><span class="cx" style="display: block; padding: 0 10px"> 'wp_revisions_to_keep',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- static function() {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ static function () {
</ins><span class="cx" style="display: block; padding: 0 10px"> return 1;
</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="trunktestsphpunittestspostthumbnailsphp"></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/thumbnails.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/post/thumbnails.php 2023-09-12 15:10:19 UTC (rev 56558)
+++ trunk/tests/phpunit/tests/post/thumbnails.php 2023-09-12 15:21:02 UTC (rev 56559)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -571,7 +571,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> private function track_last_attachment_image_context( &$last_context ) {
</span><span class="cx" style="display: block; padding: 0 10px"> add_filter(
</span><span class="cx" style="display: block; padding: 0 10px"> 'wp_get_attachment_image_context',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- static function( $context ) use ( &$last_context ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ static function ( $context ) use ( &$last_context ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> $last_context = $context;
</span><span class="cx" style="display: block; padding: 0 10px"> return $context;
</span><span class="cx" style="display: block; padding: 0 10px"> },
</span></span></pre></div>
<a id="trunktestsphpunittestspostwalkerPagephp"></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/walkerPage.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/post/walkerPage.php 2023-09-12 15:10:19 UTC (rev 56558)
+++ trunk/tests/phpunit/tests/post/walkerPage.php 2023-09-12 15:21:02 UTC (rev 56559)
</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"> add_filter(
</span><span class="cx" style="display: block; padding: 0 10px"> 'page_menu_link_attributes',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- static function( $atts ) use ( $value ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ static function ( $atts ) use ( $value ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> $atts['data-test'] = $value;
</span><span class="cx" style="display: block; padding: 0 10px"> return $atts;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span></span></pre></div>
<a id="trunktestsphpunittestspostwpGetAttachmentLinkphp"></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/wpGetAttachmentLink.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/post/wpGetAttachmentLink.php 2023-09-12 15:10:19 UTC (rev 56558)
+++ trunk/tests/phpunit/tests/post/wpGetAttachmentLink.php 2023-09-12 15:21:02 UTC (rev 56559)
</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"> add_filter(
</span><span class="cx" style="display: block; padding: 0 10px"> 'wp_get_attachment_link_attributes',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- static function( $attr ) use ( $attributes ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ static function ( $attr ) use ( $attributes ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> return array_merge( $attr, $attributes );
</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="trunktestsphpunittestsqueryconditionalsphp"></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/conditionals.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/query/conditionals.php 2023-09-12 15:10:19 UTC (rev 56558)
+++ trunk/tests/phpunit/tests/query/conditionals.php 2023-09-12 15:21:02 UTC (rev 56559)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1641,7 +1641,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> // Get the list of `is_*()` conditional tags.
</span><span class="cx" style="display: block; padding: 0 10px"> $functions = array_filter(
</span><span class="cx" style="display: block; padding: 0 10px"> get_class_methods( 'WP_Query' ),
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- static function( $function_name ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ static function ( $function_name ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> return str_starts_with( $function_name, 'is_' );
</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">@@ -1648,7 +1648,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> // Wrap each function name in an array.
</span><span class="cx" style="display: block; padding: 0 10px"> $functions = array_map(
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- static function( $function_name ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ static function ( $function_name ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> return array( $function_name );
</span><span class="cx" style="display: block; padding: 0 10px"> },
</span><span class="cx" style="display: block; padding: 0 10px"> $functions
</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 2023-09-12 15:10:19 UTC (rev 56558)
+++ trunk/tests/phpunit/tests/query.php 2023-09-12 15:21:02 UTC (rev 56559)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -730,7 +730,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> public function test_posts_clauses_filter_should_receive_filtered_clauses() {
</span><span class="cx" style="display: block; padding: 0 10px"> add_filter(
</span><span class="cx" style="display: block; padding: 0 10px"> 'posts_join_paged',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- static function() {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ static function () {
</ins><span class="cx" style="display: block; padding: 0 10px"> return '/* posts_join_paged */';
</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">@@ -755,7 +755,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> public function test_posts_clauses_request_filter_should_receive_filtered_clauses() {
</span><span class="cx" style="display: block; padding: 0 10px"> add_filter(
</span><span class="cx" style="display: block; padding: 0 10px"> 'posts_join_request',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- static function() {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ static function () {
</ins><span class="cx" style="display: block; padding: 0 10px"> return '/* posts_join_request */';
</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="trunktestsphpunittestsrestapirestapplicationpasswordscontrollerphp"></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-application-passwords-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-application-passwords-controller.php 2023-09-12 15:10:19 UTC (rev 56558)
+++ trunk/tests/phpunit/tests/rest-api/rest-application-passwords-controller.php 2023-09-12 15:21:02 UTC (rev 56559)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -961,7 +961,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> $this->setup_app_password_authenticated_request();
</span><span class="cx" style="display: block; padding: 0 10px"> add_action(
</span><span class="cx" style="display: block; padding: 0 10px"> 'application_password_did_authenticate',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- static function() {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ static function () {
</ins><span class="cx" style="display: block; padding: 0 10px"> $GLOBALS['wp_rest_application_password_uuid'] = 'invalid_uuid';
</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="trunktestsphpunittestsrestapirestblockdirectorycontrollerphp"></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-directory-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-directory-controller.php 2023-09-12 15:10:19 UTC (rev 56558)
+++ trunk/tests/phpunit/tests/rest-api/rest-block-directory-controller.php 2023-09-12 15:21:02 UTC (rev 56559)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -359,7 +359,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> private function mock_remote_request( array $expected ) {
</span><span class="cx" style="display: block; padding: 0 10px"> add_filter(
</span><span class="cx" style="display: block; padding: 0 10px"> 'pre_http_request',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- static function() use ( $expected ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ static function () use ( $expected ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> $default = array(
</span><span class="cx" style="display: block; padding: 0 10px"> 'headers' => array(),
</span><span class="cx" style="display: block; padding: 0 10px"> 'response' => array(
</span></span></pre></div>
<a id="trunktestsphpunittestsrestapirestblockrenderercontrollerphp"></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-renderer-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-renderer-controller.php 2023-09-12 15:10:19 UTC (rev 56558)
+++ trunk/tests/phpunit/tests/rest-api/rest-block-renderer-controller.php 2023-09-12 15:21:02 UTC (rev 56559)
</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"> public function test_get_item_with_pre_render_block_filter() {
</span><span class="cx" style="display: block; padding: 0 10px"> wp_set_current_user( self::$user_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">- $pre_render_filter = static function( $output, $block ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $pre_render_filter = static function ( $output, $block ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> if ( $block['blockName'] === self::$block_name ) {
</span><span class="cx" style="display: block; padding: 0 10px"> return '<p>Alternate content.</p>';
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span></span></pre></div>
<a id="trunktestsphpunittestsrestapirestpatterndirectorycontrollerphp"></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-pattern-directory-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-pattern-directory-controller.php 2023-09-12 15:10:19 UTC (rev 56558)
+++ trunk/tests/phpunit/tests/rest-api/rest-pattern-directory-controller.php 2023-09-12 15:21:02 UTC (rev 56559)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -310,7 +310,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> // Test that filter changes uncached values.
</span><span class="cx" style="display: block; padding: 0 10px"> add_filter(
</span><span class="cx" style="display: block; padding: 0 10px"> 'rest_prepare_block_pattern',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- static function( $response ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ static function ( $response ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> return 'initial value';
</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">@@ -324,7 +324,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> // Test that filter changes cached values (the previous request primed the cache).
</span><span class="cx" style="display: block; padding: 0 10px"> add_filter(
</span><span class="cx" style="display: block; padding: 0 10px"> 'rest_prepare_block_pattern',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- static function( $response ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ static function ( $response ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> return 'modified the cache';
</span><span class="cx" style="display: block; padding: 0 10px"> },
</span><span class="cx" style="display: block; padding: 0 10px"> 11
</span></span></pre></div>
<a id="trunktestsphpunittestsrestapirestpluginscontrollerphp"></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-plugins-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-plugins-controller.php 2023-09-12 15:10:19 UTC (rev 56558)
+++ trunk/tests/phpunit/tests/rest-api/rest-plugins-controller.php 2023-09-12 15:21:02 UTC (rev 56559)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -537,7 +537,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> wp_set_current_user( self::$super_admin );
</span><span class="cx" style="display: block; padding: 0 10px"> add_filter(
</span><span class="cx" style="display: block; padding: 0 10px"> 'pre_http_request',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- static function() {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ static function () {
</ins><span class="cx" style="display: block; padding: 0 10px"> /*
</span><span class="cx" style="display: block; padding: 0 10px"> * Mocks the request to:
</span><span class="cx" style="display: block; padding: 0 10px"> * https://api.wordpress.org/plugins/info/1.2/?action=plugin_information&request%5Bslug%5D=alex-says-this-block-definitely-doesnt-exist&request%5Bfields%5D%5Bsections%5D=0&request%5Bfields%5D%5Blanguage_packs%5D=1&request%5Blocale%5D=en_US&request%5Bwp_version%5D=5.9
</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 2023-09-12 15:10:19 UTC (rev 56558)
+++ trunk/tests/phpunit/tests/rest-api/rest-post-meta-fields.php 2023-09-12 15:21:02 UTC (rev 56559)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -2742,7 +2742,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> 'single' => true,
</span><span class="cx" style="display: block; padding: 0 10px"> 'type' => 'boolean',
</span><span class="cx" style="display: block; padding: 0 10px"> 'show_in_rest' => true,
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- 'sanitize_callback' => static function( $value ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ 'sanitize_callback' => static function ( $value ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> return $value ? '1' : '0';
</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="trunktestsphpunittestsrestapirestpostscontrollerphp"></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-posts-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-posts-controller.php 2023-09-12 15:10:19 UTC (rev 56558)
+++ trunk/tests/phpunit/tests/rest-api/rest-posts-controller.php 2023-09-12 15:21:02 UTC (rev 56559)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -2278,7 +2278,7 @@
</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_filters_content_when_needed() {
</span><span class="cx" style="display: block; padding: 0 10px"> $filter_count = 0;
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $filter_content = static function() use ( &$filter_count ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $filter_content = static function () use ( &$filter_count ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> ++$filter_count;
</span><span class="cx" style="display: block; padding: 0 10px"> return '<p>Filtered content.</p>';
</span><span class="cx" style="display: block; padding: 0 10px"> };
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -2314,7 +2314,7 @@
</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_skips_content_filter_if_not_needed() {
</span><span class="cx" style="display: block; padding: 0 10px"> $filter_count = 0;
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $filter_content = static function() use ( &$filter_count ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $filter_content = static function () use ( &$filter_count ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> ++$filter_count;
</span><span class="cx" style="display: block; padding: 0 10px"> return '<p>Filtered content.</p>';
</span><span class="cx" style="display: block; padding: 0 10px"> };
</span></span></pre></div>
<a id="trunktestsphpunittestsrestapirestserverphp"></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-server.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/rest-api/rest-server.php 2023-09-12 15:10:19 UTC (rev 56558)
+++ trunk/tests/phpunit/tests/rest-api/rest-server.php 2023-09-12 15:21:02 UTC (rev 56559)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -937,7 +937,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @ticket 56566
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function test_link_embedding_returning_wp_error() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $return_wp_error = static function() {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $return_wp_error = static function () {
</ins><span class="cx" style="display: block; padding: 0 10px"> return new WP_Error( 'some-error', 'This is not valid!' );
</span><span class="cx" style="display: block; padding: 0 10px"> };
</span><span class="cx" style="display: block; padding: 0 10px"> add_filter( 'rest_pre_dispatch', $return_wp_error );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1671,7 +1671,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> '/test',
</span><span class="cx" style="display: block; padding: 0 10px"> array(
</span><span class="cx" style="display: block; padding: 0 10px"> 'methods' => array( 'GET' ),
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- 'callback' => static function() {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ 'callback' => static function () {
</ins><span class="cx" style="display: block; padding: 0 10px"> return new WP_REST_Response( 'data', 204 );
</span><span class="cx" style="display: block; padding: 0 10px"> },
</span><span class="cx" style="display: block; padding: 0 10px"> 'permission_callback' => '__return_true',
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1682,7 +1682,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> '/test',
</span><span class="cx" style="display: block; padding: 0 10px"> array(
</span><span class="cx" style="display: block; padding: 0 10px"> 'methods' => array( 'GET' ),
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- 'callback' => static function() {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ 'callback' => static function () {
</ins><span class="cx" style="display: block; padding: 0 10px"> return new WP_REST_Response( 'data', 204 );
</span><span class="cx" style="display: block; padding: 0 10px"> },
</span><span class="cx" style="display: block; padding: 0 10px"> 'permission_callback' => '__return_true',
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -2080,7 +2080,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> public function test_batch_v1_max_requests() {
</span><span class="cx" style="display: block; padding: 0 10px"> add_filter(
</span><span class="cx" style="display: block; padding: 0 10px"> 'rest_get_max_batch_size',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- static function() {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ static function () {
</ins><span class="cx" style="display: block; padding: 0 10px"> return 5;
</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">@@ -2188,7 +2188,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> array(
</span><span class="cx" style="display: block; padding: 0 10px"> array(
</span><span class="cx" style="display: block; padding: 0 10px"> 'methods' => \WP_REST_Server::READABLE,
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- 'callback' => static function() {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ 'callback' => static function () {
</ins><span class="cx" style="display: block; padding: 0 10px"> return new \WP_REST_Response( INF );
</span><span class="cx" style="display: block; padding: 0 10px"> },
</span><span class="cx" style="display: block; padding: 0 10px"> 'permission_callback' => '__return_true',
</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 2023-09-12 15:10:19 UTC (rev 56558)
+++ trunk/tests/phpunit/tests/rest-api/rest-widget-types-controller.php 2023-09-12 15:21:02 UTC (rev 56559)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -161,7 +161,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> $data = $response->get_data();
</span><span class="cx" style="display: block; padding: 0 10px"> $text_widgets = array_filter(
</span><span class="cx" style="display: block; padding: 0 10px"> $data,
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- static function( $widget ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ static function ( $widget ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> return 'text' === $widget['id'];
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px"> );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -189,7 +189,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> wp_register_sidebar_widget(
</span><span class="cx" style="display: block; padding: 0 10px"> $widget_id,
</span><span class="cx" style="display: block; padding: 0 10px"> 'WP legacy widget',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- static function() {}
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ static function () {}
</ins><span class="cx" style="display: block; padding: 0 10px"> );
</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="lines" style="display: block; padding: 0 10px; color: #888">@@ -220,7 +220,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> wp_register_sidebar_widget(
</span><span class="cx" style="display: block; padding: 0 10px"> $widget_id,
</span><span class="cx" style="display: block; padding: 0 10px"> '‘Legacy ‑ Archive ‑ Widget’',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- static function() {},
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ static function () {},
</ins><span class="cx" style="display: block; padding: 0 10px"> array(
</span><span class="cx" style="display: block; padding: 0 10px"> 'description' => '“A great & interesting archive of your site’s posts!”',
</span><span class="cx" style="display: block; padding: 0 10px"> )
</span></span></pre></div>
<a id="trunktestsphpunittestsrestapiwpRestUrlDetailsControllerphp"></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/wpRestUrlDetailsController.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/rest-api/wpRestUrlDetailsController.php 2023-09-12 15:10:19 UTC (rev 56558)
+++ trunk/tests/phpunit/tests/rest-api/wpRestUrlDetailsController.php 2023-09-12 15:21:02 UTC (rev 56559)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -296,7 +296,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> add_filter(
</span><span class="cx" style="display: block; padding: 0 10px"> 'rest_url_details_http_request_args',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- static function( $args, $url ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ static function ( $args, $url ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> return array_merge(
</span><span class="cx" style="display: block; padding: 0 10px"> $args,
</span><span class="cx" style="display: block; padding: 0 10px"> array(
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -339,7 +339,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> // Force cache to return a known value as the remote URL http response body.
</span><span class="cx" style="display: block; padding: 0 10px"> add_filter(
</span><span class="cx" style="display: block; padding: 0 10px"> "pre_site_transient_{$transient_name}",
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- static function() {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ static function () {
</ins><span class="cx" style="display: block; padding: 0 10px"> return '<html><head><title>This value from cache.</title></head><body></body></html>';
</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">@@ -367,7 +367,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> public function test_allows_filtering_data_retrieved_for_a_given_url() {
</span><span class="cx" style="display: block; padding: 0 10px"> add_filter(
</span><span class="cx" style="display: block; padding: 0 10px"> 'rest_prepare_url_details',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- static function( $response ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ static function ( $response ) {
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> $data = $response->get_data();
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -417,7 +417,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> add_filter(
</span><span class="cx" style="display: block; padding: 0 10px"> 'rest_prepare_url_details',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- static function( $response, $url ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ static function ( $response, $url ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> return new WP_REST_Response(
</span><span class="cx" style="display: block; padding: 0 10px"> array(
</span><span class="cx" style="display: block; padding: 0 10px"> 'status' => 418,
</span></span></pre></div>
<a id="trunktestsphpunittestsrobotsphp"></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/robots.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/robots.php 2023-09-12 15:10:19 UTC (rev 56558)
+++ trunk/tests/phpunit/tests/robots.php 2023-09-12 15:21:02 UTC (rev 56559)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -39,7 +39,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> public function test_wp_robots_parses_directives_correctly() {
</span><span class="cx" style="display: block; padding: 0 10px"> add_filter(
</span><span class="cx" style="display: block; padding: 0 10px"> 'wp_robots',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- static function( array $robots ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ static function ( array $robots ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> // Directives that should have values must use strings.
</span><span class="cx" style="display: block; padding: 0 10px"> $robots['directive-with-value'] = 'yes';
</span><span class="cx" style="display: block; padding: 0 10px"> $robots['directive-with-numeric-value'] = '1';
</span></span></pre></div>
<a id="trunktestsphpunitteststermgetTermLinkphp"></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/term/getTermLink.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/term/getTermLink.php 2023-09-12 15:10:19 UTC (rev 56558)
+++ trunk/tests/phpunit/tests/term/getTermLink.php 2023-09-12 15:21:02 UTC (rev 56559)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -259,7 +259,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> add_filter(
</span><span class="cx" style="display: block; padding: 0 10px"> 'term_link',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- function( $location, $term ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ function ( $location, $term ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> $this->assertInstanceOf( 'WP_Term', $term );
</span><span class="cx" style="display: block; padding: 0 10px"> },
</span><span class="cx" style="display: block; padding: 0 10px"> 10,
</span></span></pre></div>
<a id="trunktestsphpunitteststhemecustomHeaderphp"></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/theme/customHeader.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/theme/customHeader.php 2023-09-12 15:10:19 UTC (rev 56558)
+++ trunk/tests/phpunit/tests/theme/customHeader.php 2023-09-12 15:21:02 UTC (rev 56559)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -98,7 +98,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> public function test_filter_header_image( $header_image, $expected ) {
</span><span class="cx" style="display: block; padding: 0 10px"> add_filter(
</span><span class="cx" style="display: block; padding: 0 10px"> 'get_header_image',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- static function() use ( $header_image ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ static function () use ( $header_image ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> return $header_image;
</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">@@ -190,7 +190,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> add_filter(
</span><span class="cx" style="display: block; padding: 0 10px"> 'wp_min_priority_img_pixels',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- static function() {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ static function () {
</ins><span class="cx" style="display: block; padding: 0 10px"> return 2500; // 50*50=2500
</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="trunktestsphpunitteststhemewpThemeJsonResolverphp"></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/theme/wpThemeJsonResolver.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/theme/wpThemeJsonResolver.php 2023-09-12 15:10:19 UTC (rev 56558)
+++ trunk/tests/phpunit/tests/theme/wpThemeJsonResolver.php 2023-09-12 15:21:02 UTC (rev 56559)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -600,7 +600,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> $global_styles_query_count = 0;
</span><span class="cx" style="display: block; padding: 0 10px"> add_filter(
</span><span class="cx" style="display: block; padding: 0 10px"> 'query',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- static function( $query ) use ( &$global_styles_query_count ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ static function ( $query ) use ( &$global_styles_query_count ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> if ( preg_match( '#post_type = \'wp_global_styles\'#', $query ) ) {
</span><span class="cx" style="display: block; padding: 0 10px"> $global_styles_query_count++;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -836,7 +836,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> $styles = $theme_json->get_styles_block_nodes();
</span><span class="cx" style="display: block; padding: 0 10px"> $styles = array_filter(
</span><span class="cx" style="display: block; padding: 0 10px"> $styles,
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- static function( $element ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ static function ( $element ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> return isset( $element['name'] ) && 'my/block-with-styles' === $element['name'];
</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="trunktestsphpunittestsuserqueryCachephp"></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/user/queryCache.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/user/queryCache.php 2023-09-12 15:10:19 UTC (rev 56558)
+++ trunk/tests/phpunit/tests/user/queryCache.php 2023-09-12 15:21:02 UTC (rev 56559)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -421,7 +421,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> $q1 = new WP_User_Query( $args );
</span><span class="cx" style="display: block; padding: 0 10px"> $found1 = $q1->get_results();
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $callback = static function( $user ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $callback = static function ( $user ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> return (array) $user;
</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="trunktestsphpunittestsuserretrievePasswordphp"></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/user/retrievePassword.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/user/retrievePassword.php 2023-09-12 15:10:19 UTC (rev 56558)
+++ trunk/tests/phpunit/tests/user/retrievePassword.php 2023-09-12 15:21:02 UTC (rev 56559)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -52,7 +52,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> public function test_retrieve_password_should_return_wp_error_on_failed_email() {
</span><span class="cx" style="display: block; padding: 0 10px"> add_filter(
</span><span class="cx" style="display: block; padding: 0 10px"> 'retrieve_password_notification_email',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- static function() {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ static function () {
</ins><span class="cx" style="display: block; padding: 0 10px"> return array( 'message' => '' );
</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="trunktestsphpunittestswidgetsphp"></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/widgets.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/widgets.php 2023-09-12 15:10:19 UTC (rev 56558)
+++ trunk/tests/phpunit/tests/widgets.php 2023-09-12 15:21:02 UTC (rev 56559)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -596,7 +596,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> add_filter(
</span><span class="cx" style="display: block; padding: 0 10px"> "pre_option_{$widget->option_name}",
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- static function() {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ static function () {
</ins><span class="cx" style="display: block; padding: 0 10px"> return new ArrayObject(
</span><span class="cx" style="display: block; padding: 0 10px"> array(
</span><span class="cx" style="display: block; padding: 0 10px"> 2 => array( 'title' => 'Test Title' ),
</span></span></pre>
</div>
</div>
</body>
</html>