Skip to main content

Cloudsoft Zone Build, deploy and scale with practical guides to PHP, Node.js, React, DevOps and AI automation. Explore the guides

Cloudsoft Zone
WordPressDevelopmentJavaScriptPHP

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.

Nilesh Kushvaha

10 min read

Cloudsoft Zone cover: what's new in WordPress 7.2 and the plugin and theme compatibility checklist
Image: Cloudsoft Zone
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

MilestoneDate
Beta 120 October 2026
Release candidate 117 November 2026
Release candidate 2shipped with WordPress 7.1.5 (18 November)
Release candidate 324 November 2026
Release candidate 4scheduled for 1 December 2026
Dry run and 24-hour code freeze7 December 2026
Final release8 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. Use spl_object_id(), which returns an integer.
  • A custom stream wrapper must implement stream_flush() (returning true when there is nothing to flush), because fclose(), file_put_contents() and copy() now return false when flushing fails.
  • Valid TTF fonts are now detected as font/ttf instead of font/sfnt. Code that checks for font/sfnt must accept both.
  • Flipping an image with imagecopyresampled() and negative sizes gives a black image on GD 2.4.0. Use imageflip().

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:

PHP
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:

PHP
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_capabilities on wp_register_ability() is checked before permission_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 with has_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-query and core/settings-get. Your post types and settings are exposed to them only with show_in_abilities, which is false by default. Never set it on a setting that holds an API key or other secret.
PHP
$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
<?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, PluginPostStatusInfo and removeEditorPanel still work.
  • The __experimentalGroup prop on InspectorControls is gone. Use group, available since 6.2.
  • The Options and View menus moved to the new Menu component. PluginMoreMenuItem and PluginSidebarMoreMenuItem still work; their undocumented as prop is ignored.
  • Components are moving from Emotion to CSS modules. Animate, Divider, Elevation, ResponsiveWrapper, Scrollable, Surface, Tip and ZStack are deprecated for removal in 7.4.
  • New: the Entity Fields API (wp_register_entity_fields() on the wp_entity_fields_api_init hook) 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:

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:

PHP
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_CSS and ENFORCE_GZIP are no longer read. Compress at the web server instead.
  • compression_test(), wp_ajax_wp_compression_test() and script_concat_settings() are deprecated.
  • wp_start_cross_origin_isolation_output_buffer() and wp_add_crossorigin_attributes() are deprecated; wp_send_document_isolation_policy_header() is new.
  • REST: the comments status parameter is now an array, and rest_allowed_cors_methods filters 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:

Shell
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=available

The 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_LOG on and read the log.
  • Update the readme header to Tested up to: 7.2 and 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 uses spl_object_hash(), edits the admin bar's my-account node, calls check_permissions() on an ability directly, uses data-wp-ignore or the __experimentalGroup prop, or relies on NO_BACKSLASH_ESCAPES.

  • Why do I see more PHP notices on my local site after updating?

    From 7.2, WP_DEBUG defaults to true when the environment type is local and it is not defined in wp-config.php. Define it as false to return to the old behaviour.

Sources

  1. WordPress 7.2 Release Candidate 3 — WordPress.org, 2026-11-24
  2. WordPress 7.2 Release Candidate 1 — WordPress.org, 2026-11-17
  3. WordPress 7.2 field guide — Make WordPress Core, 2026-11-20
  4. WordPress 7.2 release schedule — Make WordPress Core
  5. WordPress and PHP 8.6 — Make WordPress Core, 2026-11-23
  6. Abilities API updates in WordPress 7.2 — Make WordPress Core, 2026-11-19
  7. Miscellaneous developer changes in WordPress 7.2 — Make WordPress Core, 2026-11-19
  8. Your content is going to get more random — Make WordPress Core, 2026-11-05
  9. Changes to the Interactivity API in WordPress 7.2 — Make WordPress Core, 2026-11-17
  10. NO_BACKSLASH_ESCAPES SQL mode is now turned off by default in WordPress 7.2 — Make WordPress Core, 2026-10-09
  11. SVG icons in the admin bar and menu in WordPress 7.2 — Make WordPress Core, 2026-11-05
  12. 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.

New tools, once a week

One short email listing what joined the directory.

The weekly email about new tools and occasional newsletters. Unsubscribe at any time.

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.

Never published. Used only to contact you about this comment.

Loading the security check…

Comments are moderated before publication.