Skip to content

Bump "Tested up to" to WordPress 7.2 - #2659

Merged
mauteri merged 3 commits into
developfrom
tested-up-to-7-2
Nov 20, 2026
Merged

mauteri merged 3 commits into
developfrom
tested-up-to-7-2

Conversation

@mauteri

@mauteri mauteri commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

Proposed changes:

WordPress 7.2 is at RC2. This bumps readme.txt so the wp.org listing reports 7.2 compatibility. Requires at least stays at 7.0.

Four tests asserted the exact markup 7.1 produced. 7.2 rebuilt wp_kses on the HTML API and changed wp_admin_notice, so they now accept both:

  • Event Date separator: kses writes quotes in text as plain characters, so the test checks the escaped brackets and that no link is rendered.
  • Calendar weeks: kses sorts the attributes it keeps, so the input is matched in any attribute order.
  • Utility::get_http_input() with wp_kses_post: 7.2 drops the contents of a <script>, so the input now tests an event handler instead.
  • RSVP admin notice: 7.2 prints class before id, 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 the wp_enable_random_content_redirect filter.

Closes #2656.

Other information:

  • Have you written new tests for your changes, if applicable?

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:

  1. In the terminal, on this branch: grep 'Tested up to' readme.txt prints Tested up to: 7.2.
  2. On a WordPress 7.2 site with pretty permalinks, in the terminal: wp rewrite flush && wp rewrite list | grep '^random' lists no random/event or random/venue rule.
  3. Logged out, in the browser: /random/event/ returns a 404 instead of redirecting to an event.

🤖 Generated with Claude Code

https://claude.ai/code/session_012qcUmetivvBjHfnsSTNcvW

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012qcUmetivvBjHfnsSTNcvW
@mauteri mauteri added this to the 0.37.0 milestone Nov 19, 2026
@coderabbitai

coderabbitai Bot commented Nov 19, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@github-actions

github-actions Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

Test Coverage Report

✅ All coverage checks passed!

✅ PHP Coverage
=== PR Coverage Check ===

Configuration loaded:
  Minimum coverage: 100%
  Exclude patterns: 47 patterns
  Low coverage exceptions: 0 files

Checking coverage for files changed from origin/develop...

Found 8 changed PHP file(s):
  - includes/core/classes/event/class-setup.php
  - includes/core/classes/venue/class-setup.php
  - test/unit/php/includes/tests/core/classes/blocks/class-test-calendar.php
  - test/unit/php/includes/tests/core/classes/blocks/class-test-event-date.php
  - test/unit/php/includes/tests/core/classes/class-test-utility.php
  - test/unit/php/includes/tests/core/classes/event/class-test-setup.php
  - test/unit/php/includes/tests/core/classes/rsvp/class-test-setup.php
  - test/unit/php/includes/tests/core/classes/venue/class-test-setup.php

Files requiring coverage check: 2
  - includes/core/classes/event/class-setup.php
  - includes/core/classes/venue/class-setup.php

✅ Loaded coverage.xml
✅ Loaded coverage-multisite.xml

✅ includes/core/classes/event/class-setup.php - 100% coverage (374/374 lines)
✅ includes/core/classes/venue/class-setup.php - 100% coverage (333/333 lines)

=== Summary ===
✅ Passed: 2 file(s)
⏭️  Excluded: 6 file(s)
❌ Failed: 0 file(s)

✅ All changed files meet the minimum coverage requirement of 100%
✅ JavaScript Coverage
=== PR JavaScript Coverage Check ===

Configuration loaded:
  Minimum coverage: 100%
  Exclude patterns: 47 patterns

Checking coverage for JavaScript files changed from origin/develop...

✅ No JavaScript files changed in this PR.

This comment is automatically updated on each push.

@github-actions

Copy link
Copy Markdown
Contributor

Preview changes with Playground

Customize PR Playground

To customize the Playground preview for this specific PR, create a file at:

.github/playground/PR-2659-blueprint-override.json

The override is merged into the generated blueprint and can be used to:

  • Enable Playground features
  • Install additional plugins
  • Change site options
  • Run steps before or after the GatherPress' default steps

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.4

PHP Version 8.2

PHP Version 8.1

Download .zip with build changes

Made with 💙 from GatherPress & a little bit of WordPress Playground. Changes will not persist between sessions.

@mauteri
mauteri marked this pull request as ready for review November 19, 2026 19:04
@mauteri
mauteri requested review from carstingaxion, jmarx and mattcowan and removed request for carstingaxion November 19, 2026 19:04
@github-actions

github-actions Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

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:

Props mauteri, matthewneilcowan, motylanogha.

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.


Props Bot commands

You can trigger Props Bot actions by commenting on this PR:

  • @propsbot add <username> to give props to a GitHub or WordPress.org user. Requires write access.
  • @propsbot remove <username> to leave a user out of the props. Requires write access.
  • @propsbot refresh to refresh this list. Adding the props-bot label works too.

@mattcowan mattcowan left a comment •

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, tested just to be sure. On 7.2-RC2, /random/event/ and /random/venue/ redirect to an event and a venue on develop, and they do not redirect on this branch. The random/event, random/venue and random/topic rules are also gone.

@wppoland wppoland left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Reviewed the diff:

  • readme.txt bumped to Tested up to: 7.2.
  • 'randomable' => false added to both Event\Setup::register_post_type() and Venue\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, and Rsvp\Test_Setup) cleanly accommodate WordPress 7.2's HTML API wp_kses attribute sorting/text quoting and wp_admin_notice attribute order while remaining compatible with 7.1.

@mauteri
mauteri merged commit 6b8aaac into develop Nov 20, 2026
30 checks passed
@mauteri
mauteri deleted the tested-up-to-7-2 branch November 20, 2026 13:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The plugin hasn't been tested with an upcoming version of WordPress

3 participants