What's new in WordPress 7.2: features and a plugin and theme compatibility checklist
WordPress 7.2 is due on 8 December 2026. It adds text shadow, random content links, SVG admin icons and browser-side image processing in the Media Library, and changes the Abilities API, the Interactivity API and SQL modes. What is new, and the checklist to run on plugins and themes.
10 min read

In this article
WordPress 7.2 is due on 8 December 2026, at 15:00 UTC on the release schedule. What's new in WordPress 7.2 for site owners is a text shadow control in the editor, random content links at /random/, SVG icons in the admin bar and menu, and image processing in the browser for the Media Library. For developers it brings stricter Abilities API permissions, new core abilities, an HTML directive in the Interactivity API, a change to SQL modes and full PHP 8.6 compatibility. The minimum PHP version stays at 7.4. Below, each change with the code it affects, then the checklist to run on a plugin or theme before release day.
Based on: the 7.2 release candidate posts, the WordPress 7.2 field guide and the dev notes it links to, read on 29 November 2026. The code below is taken from those dev notes, and the PHP was checked with php -l on PHP 8.6. It was not run on a 7.2 install. If you only need the safe update routine for a live site, follow how to update WordPress safely with WP-CLI.
WordPress 7.2 release date and requirements
| Milestone | Date |
|---|---|
| Beta 1 | 20 October 2026 |
| Release candidate 1 | 17 November 2026 |
| Release candidate 2 | shipped with WordPress 7.1.5 (18 November) |
| Release candidate 3 | 24 November 2026 |
| Release candidate 4 | scheduled for 1 December 2026 |
| Dry run and 24-hour code freeze | 7 December 2026 |
| Final release | 8 December 2026, 15:00 UTC |
- PHP: the minimum stays at 7.4. The core team says WordPress 7.2 is fully compatible with PHP 8.6 from Beta 5, and the "beta support" label for new PHP versions has been retired (WordPress and PHP 8.6).
- Libraries: jQuery Migrate moves to 3.6.0 as a step towards jQuery 4, which is not in 7.2. PHPMailer, Requests, getID3 and sodium_compat are updated.
- Size: more than 440 Core Trac tickets and 21 new hooks (16 filters, 5 actions) between 7.1.4 and 7.2 RC1.
What's new in WordPress 7.2 for site owners
- Text shadow. Paragraph and Heading blocks get a text shadow control with two presets, Light and Strong. Themes can add their own presets or turn the control off.
- Random content links.
/random/sends a visitor to a random published post. It also works per category or tag (/random/category/news/), per author and per post type. The base is set in Settings → Permalinks. - A cleaner admin bar. Admin bar and menu icons are SVGs instead of the Dashicons font, and "Howdy, name" moves from the toolbar into the user menu. On single sites, Appearance → Add Theme is back as a submenu.
- Faster uploads in the Media Library. Image resizing in the browser, which arrived in the editor with 7.0, now also runs in the Media Library grid, Add New Media File and the media modal, on Chrome and Edge 137 or later. Firefox and Safari keep using the server.
- Security notice. Users receive an email when an application password is created for their account.
- Default theme. 7.2 ships Ipsum, a minimal blank-canvas theme.
Nothing here needs action on a typical site, but check two things: a theme or plugin that styles the admin bar may look different, and a site that does not want /random/ links can turn them off (item 2 below).
WordPress 7.2 compatibility checklist for plugins and themes
The RC posts ask plugin authors to finish testing and update the "Tested up to" value in their readme to 7.2. These are the changes that reach plugin and theme code, in the order we would check them.
1. Run your tests on PHP 8.6
WordPress made four PHP 8.6 fixes in core that point at the same problems in plugins:
spl_object_hash()is deprecated in PHP 8.6. Usespl_object_id(), which returns an integer.- A custom stream wrapper must implement
stream_flush()(returningtruewhen there is nothing to flush), becausefclose(),file_put_contents()andcopy()now returnfalsewhen flushing fails. - Valid TTF fonts are now detected as
font/ttfinstead offont/sfnt. Code that checks forfont/sfntmust accept both. - Flipping an image with
imagecopyresampled()and negative sizes gives a black image on GD 2.4.0. Useimageflip().
Run the suite with WP_DEBUG and WP_DEBUG_LOG on, and only test PHP 8.6 against WordPress 7.2 or later. The PHP side of the move is in what's new in PHP 8.6.
2. Decide whether your post types can be random
A post type is "randomable" by default when it is publicly_queryable and has an archive. Posts are; pages and attachments are not. Opt a post type out when it registers, exclude content from the random query, or turn the feature off for the whole site:
register_post_type( 'invoice', array(
'public' => true,
'has_archive' => true,
'randomable' => false,
) );
// Keep one category out of random picks.
add_action( 'pre_get_posts', static function ( WP_Query $query ) {
if ( wp_is_random_content_query( $query ) ) {
$query->set( 'category__not_in', array( 525600 ) );
}
} );
// Or turn /random/ off entirely.
add_filter( 'wp_enable_random_content_redirect', '__return_false' );Turning it off removes the rewrite rules and hides the base field in Permalinks. Flush rewrite rules after changing it.
3. Check anything that changes the admin bar
The greeting moved from the my-account node into user-info, so a plugin that rewrites the my-account title no longer has "Howdy" to replace. Core adds my-account late on admin_bar_menu, so read the node at a later priority. New nodes can take an SVG icon by name:
add_action( 'admin_bar_menu', static function ( WP_Admin_Bar $wp_admin_bar ) {
$wp_admin_bar->add_node( array(
'id' => 'my-plugin-notes',
'icon' => 'core-admin/pin',
'title' => __( 'Notes', 'my-plugin' ),
'href' => admin_url( 'admin.php?page=my-plugin-notes' ),
) );
}, 100 );An unregistered icon name renders nothing, with a _doing_it_wrong() notice when WP_DEBUG is on. CSS that targeted Dashicons glyphs in the admin bar needs a second look.
4. Abilities API: declare capabilities and prepare input
Abilities, added in 7.1 for AI clients and automation (see the Abilities API guide), get three changes:
required_capabilitiesonwp_register_ability()is checked beforepermission_callback. When the capability covers every call, the callback can be left out (that needs 7.2 as a minimum). Clients can list only what the current user may run withhas_required_capabilities.- Input is now prepared and sanitised by
WP_Ability::prepare_input().check_permissions()does not do it, so code that calls it directly must prepare first. - Core registers
core/content-query,core/users-queryandcore/settings-get. Your post types and settings are exposed to them only withshow_in_abilities, which is false by default. Never set it on a setting that holds an API key or other secret.
$ability = wp_get_ability( 'my-plugin/get-post-title' );
if ( null === $ability ) {
return new WP_Error( 'example_missing_ability', 'The ability is not registered.' );
}
$input = $ability->prepare_input( '123' );
if ( is_wp_error( $input ) ) {
return $input;
}
$permission = $ability->check_permissions( $input );
if ( true !== $permission ) {
return is_wp_error( $permission ) ? $permission : new WP_Error( 'example_forbidden', 'You cannot edit this post.' );
}A sanitisation failure returns ability_invalid_input. The REST controller's sanitize_input_for_ability() is deprecated.
5. Interactivity API: new HTML directive, removed syntax
data-wp-html renders HTML from state, but only values wrapped with asDangerousHTML() in JavaScript or wp_interactivity_as_dangerous_html() in PHP. Plain strings are not rendered, and neither function sanitises anything, so never pass user input through them unescaped.
<?php
wp_interactivity_state( 'myPlugin', array(
'preview' => wp_interactivity_as_dangerous_html( $html ),
) );
?>
<div data-wp-interactive="myPlugin">
<div data-wp-html="state.preview"></div>
</div>Removed in 7.2: the data-wp-ignore directive and negating a function reference in a directive. The router store adds state.navigating and state.initiator. Our Interactivity API tutorial covers the basics.
6. Editor and components
- The post editor's inspector is now built with DataForm, and the excerpt is a field.
wp.editPost.__experimentalPluginPostExcerpt(deprecated since 6.6) is no longer rendered.PluginDocumentSettingPanel,PluginPostStatusInfoandremoveEditorPanelstill work. - The
__experimentalGroupprop onInspectorControlsis gone. Usegroup, available since 6.2. - The Options and View menus moved to the new Menu component.
PluginMoreMenuItemandPluginSidebarMoreMenuItemstill work; their undocumentedasprop is ignored. - Components are moving from Emotion to CSS modules.
Animate,Divider,Elevation,ResponsiveWrapper,Scrollable,Surface,TipandZStackare deprecated for removal in 7.4. - New: the Entity Fields API (
wp_register_entity_fields()on thewp_entity_fields_api_inithook) adds your own fields to the inspector and site editor screens.
For blocks that should offer the new shadow control, add it to supports; themes add presets in theme.json:
{
"supports": {
"typography": {
"textShadow": true
}
}
}In theme.json, presets go in settings.typography.textShadowPresets (name, slug and value), and "textShadow": false with "defaultTextShadowPresets": false turns the control and core presets off. Each preset becomes --wp--preset--text-shadow--{slug} and a has-{slug}-text-shadow class.
7. Database: NO_BACKSLASH_ESCAPES is now switched off
WordPress 7.2 adds NO_BACKSLASH_ESCAPES to the SQL modes it turns off for its own connection, because core escaping does not work with it. Only the WordPress session changes. A site that really needs the mode must keep it from a db.php drop-in, since plugins load too late, and the core team warns that WordPress may not work correctly with it on:
add_filter( 'incompatible_sql_modes', function ( $modes ) {
return array_diff( $modes, array( 'NO_BACKSLASH_ESCAPES' ) );
} );8. WP_DEBUG is on by default for local sites
When WP_DEBUG is not defined, it is now true when the environment type is local, as it already was for development. Staging and production stay off, and a value in wp-config.php still wins. Expect more notices in local test runs; add define( 'WP_DEBUG', false ); if you need the old behaviour.
9. Removed constants and deprecated functions
COMPRESS_SCRIPTS,COMPRESS_CSSandENFORCE_GZIPare no longer read. Compress at the web server instead.compression_test(),wp_ajax_wp_compression_test()andscript_concat_settings()are deprecated.wp_start_cross_origin_isolation_output_buffer()andwp_add_crossorigin_attributes()are deprecated;wp_send_document_isolation_policy_header()is new.- REST: the comments
statusparameter is now an array, andrest_allowed_cors_methodsfilters allowed CORS methods.
How to test WordPress 7.2 before release day
Use a copy of the site, never production. On a staging copy with WP-CLI:
wp core version # note where you start
wp core update --version=7.2-RC3 # the latest release candidate
wp core update-db
wp plugin list --update=availableThe WordPress Beta Tester plugin does the same from the dashboard (Bleeding edge channel, Beta/RC Only), and WordPress Playground runs the current release candidate in the browser at playground.wordpress.net/release. Then:
- Open every block your plugin or theme adds, in the post editor and the site editor, and save.
- Upload an image in the Media Library with Chrome and with Firefox, and check the generated sizes.
- Check your admin bar items, and anything that styles the admin bar.
- Run your tests on PHP 8.6 with
WP_DEBUG_LOGon and read the log. - Update the readme header to
Tested up to: 7.2and ship it before 8 December, so the plugin directory does not show the "not tested" warning.
If something breaks, report it in the Alpha/Beta support forum while there is still time to fix it in core.
Should you update a live site on release day?
For a site with a handful of well-maintained plugins, updating on 8 December is usually fine once you have a tested backup. For a business site with custom code or many plugins, update a staging copy first, wait until your key plugins list 7.2 as tested, and plan for the first maintenance release, which normally follows within a few weeks. The full routine, with backups and rollback, is in how to update WordPress safely, and the changes from 7.0 and 7.1 that still catch older plugins are in the WordPress 7.x compatibility checklist. If you would rather hand the testing over, see our WordPress development service.
Frequently asked questions
When is WordPress 7.2 released?
The release schedule sets 8 December 2026, at 15:00 UTC, after release candidates on 17 November (RC1) and 24 November (RC3), with RC4 scheduled for 1 December.
What PHP version does WordPress 7.2 need?
PHP 7.4 or later, the same minimum as 7.0 and 7.1. The core team says WordPress 7.2 is fully compatible with PHP 8.6.
What is the /random/ URL in WordPress 7.2?
A new rewrite rule that redirects to a random published post, optionally limited to a category, tag, author or post type. Turn it off with
add_filter( 'wp_enable_random_content_redirect', '__return_false' );.Do I need to change my plugin for WordPress 7.2?
Most plugins need only testing and a readme update to
Tested up to: 7.2. Check code that usesspl_object_hash(), edits the admin bar'smy-accountnode, callscheck_permissions()on an ability directly, usesdata-wp-ignoreor the__experimentalGroupprop, or relies onNO_BACKSLASH_ESCAPES.Why do I see more PHP notices on my local site after updating?
From 7.2,
WP_DEBUGdefaults totruewhen the environment type islocaland it is not defined inwp-config.php. Define it asfalseto return to the old behaviour.
Sources
- WordPress 7.2 Release Candidate 3 — WordPress.org, 2026-11-24
- WordPress 7.2 Release Candidate 1 — WordPress.org, 2026-11-17
- WordPress 7.2 field guide — Make WordPress Core, 2026-11-20
- WordPress 7.2 release schedule — Make WordPress Core
- WordPress and PHP 8.6 — Make WordPress Core, 2026-11-23
- Abilities API updates in WordPress 7.2 — Make WordPress Core, 2026-11-19
- Miscellaneous developer changes in WordPress 7.2 — Make WordPress Core, 2026-11-19
- Your content is going to get more random — Make WordPress Core, 2026-11-05
- Changes to the Interactivity API in WordPress 7.2 — Make WordPress Core, 2026-11-17
- NO_BACKSLASH_ESCAPES SQL mode is now turned off by default in WordPress 7.2 — Make WordPress Core, 2026-10-09
- SVG icons in the admin bar and menu in WordPress 7.2 — Make WordPress Core, 2026-11-05
- New block support in WordPress 7.2: text shadow — Make WordPress Core, 2026-11-11
Written with substantial AI assistance. Facts checked against cited sources. Editorial policy.
Read next

Industry updateWordPress3 min read
Cloudflare EmDash: plugin isolation and WordPress migration
Cloudflare EmDash is an Astro-based CMS with isolated plugins. Compare its architecture with WordPress and plan a migration around content, URLs and workflows.
New tools, once a week
One short email listing what joined the directory.
Comments
No comments yet. Be the first to join the conversation.
Leave a comment
Every comment is read by a moderator before it appears. Your email address is never published; it is used only to contact you about this comment.
More from Cloudsoft Zone

TutorialPHP7 min read
Upgrading a Laravel app to PHP 8.6: compatibility, deprecations and tests
Laravel 13.44 is the first release that supports PHP 8.6. This plan covers the support matrix, Composer checks, the PHP 8.6 deprecations that show up in Laravel code, the session and trim() changes, PHPStan and Rector settings, a CI matrix and a staged rollout.
By Nilesh Kushvaha

Architecture guideDevOps5 min read
Redis outage fallbacks: protect cache, sessions and queues without hiding failure
Design Redis outage fallbacks by separating disposable cache from sessions, locks and durable queue admission, with bounded recovery that protects the database.
By Nilesh Kushvaha

Troubleshooting guideDevOps4 min read
Slow MySQL queries in Laravel: diagnose the complete request before tuning
Find slow MySQL queries in Laravel by separating individual query time, cumulative database work, lock waits and application overhead before choosing a measured correction.
By Nilesh Kushvaha