Repository navigation
Bump "Tested up to" to WordPress 7.2 - #2659
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012qcUmetivvBjHfnsSTNcvW
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the
|
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012qcUmetivvBjHfnsSTNcvW
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012qcUmetivvBjHfnsSTNcvW
Test Coverage Report✅ All coverage checks passed! ✅ PHP Coverage✅ JavaScript CoverageThis comment is automatically updated on each push. |
Preview changes with PlaygroundCustomize PR PlaygroundTo customize the Playground preview for this specific PR, create a file at:
The override is merged into the generated blueprint and can be used to:
Example: {
"$schema": "https://gatherpress.org/playground-preview/pr-override-schema.json",
"landingPage": "/wp-admin/edit.php?post_type=gatherpress_venue",
"siteOptions": {
"show_on_front": "page"
},
"features": {
"networking": true
},
"prependSteps": [
{
"step": "installPlugin",
"pluginData": {
"resource": "wordpress.org/plugins",
"slug": "simple-location"
},
"options": {
"activate": true
}
}
],
"appendSteps": [
{
"step": "runPHP",
"code": ""
}
]
}Go to Playground PR preview customization for more details. You can preview the recent changes for PR#2659 with the following PHP versions: PHP Version 8.4PHP Version 8.2PHP Version 8.1Download Made with 💙 from GatherPress & a little bit of WordPress Playground. Changes will not persist between sessions. |
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. Core Committers: Use this line as a base for the props when committing in SVN: To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. Props Bot commandsYou can trigger Props Bot actions by commenting on this PR:
|
wppoland
left a comment
There was a problem hiding this comment.
LGTM! Reviewed the diff:
readme.txtbumped toTested up to: 7.2.'randomable' => falseadded to bothEvent\Setup::register_post_type()andVenue\Setup::register_post_type()with unit test assertions in both setup test classes so WordPress 7.2 does not expose/random/event/or/random/venue/redirects.- The 4 test updates (
Test_Calendar,Test_Event_Date,Test_Utility, andRsvp\Test_Setup) cleanly accommodate WordPress 7.2's HTML APIwp_ksesattribute sorting/text quoting andwp_admin_noticeattribute order while remaining compatible with 7.1.
Proposed changes:
WordPress 7.2 is at RC2. This bumps
readme.txtso the wp.org listing reports 7.2 compatibility.Requires at leaststays at 7.0.Four tests asserted the exact markup 7.1 produced. 7.2 rebuilt
wp_kseson the HTML API and changedwp_admin_notice, so they now accept both:Utility::get_http_input()withwp_kses_post: 7.2 drops the contents of a<script>, so the input now tests an event handler instead.classbeforeid, so the notice is matched in either order.Events and venues opt out of the random post redirect that 7.2 adds. 7.2 sends
/random/{post-type}/to a random published post of any post type with an archive, which for GatherPress would mean a random event, often a past one, or a random venue. Both post types now register with'randomable' => false, so 7.2 generates no/random/event/or/random/venue/rule. 7.1 ignores the argument. Site owners can still turn the whole feature off with thewp_enable_random_content_redirectfilter.Closes #2656.
Other information:
The full PHPUnit suite passes on 7.2-RC2 (3,134 tests) and the changed tests pass on 7.1.3. None of the 14 dev notes for 7.2 needs a code change: the removed Interactivity API forms, the deprecated components and the removed editor APIs are not used.
Testing instructions:
grep 'Tested up to' readme.txtprintsTested up to: 7.2.wp rewrite flush && wp rewrite list | grep '^random'lists norandom/eventorrandom/venuerule./random/event/returns a 404 instead of redirecting to an event.🤖 Generated with Claude Code
https://claude.ai/code/session_012qcUmetivvBjHfnsSTNcvW