The WordPress 7.2 Field Guide lays out the developer-facing changes for self-hosted WordPress and WooCommerce operators during the release-candidate phase. It reports more than 440 Core Trac tickets, including almost 150 enhancements and feature requests and more than 260 bug fixes. On top of that come almost 700 enhancements and nearly 500 bug fixes from Gutenberg versions 23.7 through 24.3. Comparing WordPress 7.1.4 with the current trunk at 7.2-RC1, the guide counts 2,947 changed files, 246,673 insertions, 51,993 deletions, and 21 new hooks: 16 filters and 5 actions.
If you are managing the November 2026 infrastructure patch window, four areas deserve attention before any upgrade reaches production:
- REST response and parameter shapes: Revision and autosave responses filter out non-revisioned metadata, and the comments collection endpoint treats
statusas an array. - Abilities API validation and permissions: Input is validated before it is sanitized, and abilities can declare capabilities required for every invocation.
- jQuery migration: Core ships jQuery Migrate 3.6.0 to help developers find deprecated code ahead of a planned jQuery 4 update.
- Secrets API revert: The proposed Secrets API was pulled from the release candidate, so integrations cannot count on it in WordPress 7.2.
REST API Changes: Revision Meta Filtering, Comment Status Arrays, and CORS Headers
The WordPress 7.2 REST API developer note covers response and request changes that can hit headless storefronts, custom catalog workflows, and external integrations.
Revision and Autosave Meta Filtering (#66329)
Visual Revisions, introduced in the block editor in WordPress 7.0, restores a revision by reading it from the REST API and saving its metadata onto the post. Before WordPress 7.2, WP_REST_Revisions_Controller returned every show_in_rest meta key registered for the parent post type, read from the revision ID. Non-revisioned keys came back as their registered default or, if that default failed schema validation, as null. A REST restore could then write those values over the post’s live metadata.
The documented fallout included an unsynced pattern becoming synced, a synced-pattern restore failing after the content had already been saved, and non-revisioned metadata on other post types being reset.
WordPress 7.2 adds WP_REST_Revision_Meta_Fields, a subclass of WP_REST_Post_Meta_Fields. It restricts revision responses and their meta schemas to the keys returned by wp_post_revision_meta_keys() for the parent post type. Autosave responses follow the same rule. There is one exception: when an author autosaves their own draft, the controller updates and returns the post itself, including its post metadata.
Engineering teams should check these cases:
- Revision registration: A key becomes revisioned when you register it with
revisions_enabledset totrueor add it through thewp_post_revision_meta_keysfilter. Non-string filter values are ignored. Visual Revisions also needs the key exposed withshow_in_rest; the classic revisions screen can restore revisioned keys without that setting. - JSON shape: When a post type has no revisioned meta, a revision’s
metais now an empty JSON array ([]) instead of an object holding default values. Any client that checks the type ofmetaneeds to handle the array. - Gutenberg plugin parity: Sites running the Gutenberg plugin on WordPress 7.0 or 7.1 already get response filtering through a compatibility change, but that shim does not change their revision meta schema.
Comment Status Arrays and CORS Control
- Comments collection
status:/wp/v2/commentsnow accepts multiple statuses in one request, and$request['status']is treated as an array. Custom filters, middleware, and permission callbacks that compare it strictly to a string need review. - CORS methods: The new
rest_allowed_cors_methodsfilter controls theAccess-Control-Allow-Methodsheader. A value explicitly set on a REST response is no longer discarded.
Abilities API Hardening: Schema Validation and Capability Filtering
The Abilities API updates in WordPress 7.2 change permissions, input preparation, and JSON output for integrations built on Core’s Abilities API.
Declarative required_capabilities and Discovery Filtering
An ability can declare a list of non-empty capability strings with the required_capabilities registration argument.
- Execution order: WordPress checks every listed capability with
current_user_can()before it runspermission_callback. - Callbacks: If the static list covers every permission check, the ability can omit
permission_callback. If the list is empty or omitted, a valid callback is still required. Use__return_trueonly when everyone is meant to be able to execute the ability. - Input-dependent checks: Keep object-specific checks in
permission_callback. Thewp_ability_permission_resultfilter can still override the result, including a denial caused by a missing capability. - Discovery: Integrations can inspect
$ability->get_required_capabilities()or opt into filtering withwp_get_abilities( array( 'has_required_capabilities' => true ) )andGET /wp-json/wp-abilities/v1/abilities?has_required_capabilities=true. This filter does not run permission callbacks orwp_ability_permission_result. Passing discovery therefore does not guarantee permission to execute with a particular input.
Input Preparation and JSON Shape
WP_Ability::prepare_input() normalizes input, validates it against the input schema, and then sanitizes it. Invalid input returns a WP_Error and stops execution, so casting or property removal can no longer hide the error. The REST execution controller prepares the original request input separately for permission checking and for execution.
Permission and execution callbacks receive the prepared value. An integer schema, for example, can turn '123' into integer 123, and a text-field format strips HTML tags during sanitization. JSON results keep the object or array shape declared by the output schema.
If you are auditing custom callbacks and filters, our earlier analysis of WordPress hooks and webhook security risks is a useful companion.
The Secrets API Revert (r65538)
The Repository reports that the first WordPress 7.2 release candidate shipped without the Secrets API after it was pulled from the release.
The Secrets API proposal described encrypted storage for credentials such as API keys and tokens, with a previous version retained for rotation. Related tickets raised issues around network-scope secrets ticket handling and Site Health reporting for secrets backends.
The network-scope ticket records that the API was reverted in r65538 and that its milestone moved from WordPress 7.2 to 7.3. A milestone is not a release guarantee. If you built against the pre-release API, remove that dependency for WordPress 7.2 and keep your existing credential-handling approach.
Frontend, Admin, and Browser Infrastructure Shifts
| Subsystem | WordPress 7.2 change | Potential impact on store extensions |
|---|---|---|
| jQuery Migrate | Ships jQuery Migrate 3.6.0 to surface deprecations ahead of jQuery 4. | Review console notices in checkout, cart, and admin scripts. The jQuery and jQuery UI updates are tentatively planned for WordPress 7.3, subject to testing. |
| Admin icons | Replaces Core Dashicons font glyphs in the admin menu and bar with inline SVG icons and adds an icon argument to WP_Admin_Bar::add_node(). | Custom color schemes, icon replacements, and CSS targeting Dashicons pseudo-elements may need updates. |
| Client-side media | Extends supported browser-side image processing to the Media Library grid, Add New Media File screen, and media modal. | Supported browsers can resize, convert formats, and generate sub-sizes locally; unsupported environments fall back to server-side processing. |
| Cross-origin isolation | Deprecates wp_start_cross_origin_isolation_output_buffer() and wp_add_crossorigin_attributes(). | wp_send_document_isolation_policy_header() replaces the former; the latter has no direct replacement. Review custom isolation and script-attribute code. |
| Revision meta | Restricts revision and autosave meta responses to revisioned keys. | REST clients must handle absent non-revisioned keys and an empty [] meta value. |
The jQuery preparation note describes the jQuery 4 schedule as tentative. Disabling jQuery Migrate by default is planned for the end of 2027, in WordPress 7.5 or 7.6 depending on release cadence, testing, and impact research.
On media processing, the field guide names Chrome 137 and later and Edge 137 and later as supported browsers. Processing also requires more than 2 GB of device memory, sufficient processing capability, and compatible security settings. Firefox and Safari currently fall back to server-side processing.
Staging Verification & Code Audit Checklist
Run through this before upgrading staging or production to WordPress 7.2:
- Audit revision metadata: Review code that writes to revisions or reads revision and autosave responses. Register keys with
revisions_enabledor add them throughwp_post_revision_meta_keys. Make sure keys restored through Visual Revisions also haveshow_in_rest. Update clients to handle empty[]meta. - Review comment status comparisons: Find code that uses
$request['status']for the comments collection and drop any assumption that it is a scalar string. - Test Abilities API contracts: Verify schemas against the release candidate, declare capabilities that apply to every invocation, and keep input-specific checks in permission callbacks.
- Remove pre-release Secrets API dependencies: Check staging branches for calls to reverted Secrets API functions, including
wp_list_secrets(). - Test frontend and admin changes: Inspect browser-console notices, review custom admin icon CSS, and audit deprecated cross-origin isolation calls. Use
wp_send_document_isolation_policy_header()where it fits as the replacement for the former output-buffer function, and assess script-attribute customizations separately.