Sanniv Khare 8 min read

WordPress 7.2 on 8 Dec: what plugin and theme authors must check

WordPress 7.2 on 8 Dec: what plugin and theme authors must check

WordPress 7.2 is due on Tuesday 8 December 2026 (official schedule); RC4 follows on 1 December. The short version for plugin and theme authors: the REST comments endpoint now passes status as an array, the media cross-origin helpers are deprecated, the editor sidebar is rebuilt on DataForm, and the admin menu and admin bar draw SVG icons instead of Dashicons. If your plugin touches any of those, test it on RC3 this week and bump “Tested up to” to 7.2.

We read the 7.2 field guide and all 20 dev notes, then checked each claim against the code of wordpress-7.2-RC3.zip and compared it with 7.1.5. Minimum PHP stays at 7.4 and minimum MySQL at 5.5.5 in the RC3 version.php.

Why we did this: this site runs on WordPress with our own Paperkite plugin, and we ship WordPress work for clients, so every major release gets the same pass before it reaches a production server.

What changed in the code, not just the notes

A diff of the hook calls between 7.1.5 and 7.2-RC3 finds 18 new literal hook names and none removed. The field guide counts 21 against 7.1.4, which also includes dynamic hook names a plain grep cannot see. The ones a plugin is most likely to use:

  • rest_allowed_cors_methods: filter the methods sent in Access-Control-Allow-Methods.
  • wp_entity_fields_api_init and wp_entity_actions_api_init: register fields and actions for the post and site editor screens.
  • wp_enable_random_content_redirect and random_rewrite_rules: the new /random/ endpoint.
  • pre_wp_count_posts and pre_wp_count_attachments: short-circuit the two counting functions.
  • wp_change_password_url, wp_application_password_created_email, wp_send_application_password_created_email: account and application password flows.

Seven functions moved to wp-includes/deprecated.php with _deprecated_function( __FUNCTION__, '7.2.0' ):

  • wp_start_cross_origin_isolation_output_buffer(), replaced by wp_send_document_isolation_policy_header()
  • wp_add_crossorigin_attributes(), no replacement
  • _truncate_post_slug(), replaced by wp_truncate_slug()
  • _print_scripts(), _print_styles(), script_concat_settings(), wp_kses_html_error(), no replacement

Deprecated functions still run, so nothing breaks on 8 December, but WP_DEBUG logs fill up and the functions will go in a later release.

Plugin authors: the five changes most likely to bite

REST API: comment status is an array

The comments endpoint now accepts several statuses (status=approve,hold) and the default is array( 'approve' ) (REST API dev note). Any code that compares $request['status'] with a string in a rest_comment_query or rest_pre_insert_comment callback now compares a string with an array and silently stops matching.

Before and after: checking the comment status in a REST callback

Cast to an array and use in_array(). The cast keeps the code working on 7.1 too.

The same note changes revisions: revision and autosave responses now include only meta registered with revisions_enabled => true (RC3 has the new class WP_REST_Revision_Meta_Fields). If your plugin writes meta straight onto revisions and reads it back over REST, register it or use the wp_post_revision_meta_keys filter.

Media: cross-origin isolation helpers

Client-side image processing now runs in the Media Library and the media modal, in Chrome and Edge 137 or later; Firefox and Safari fall back to the server (media dev note). If you customised cross-origin isolation, switch to wp_send_document_isolation_policy_header(). Upload plugins should test both paths.

Editor: the sidebar is built with DataForm

The post and site editor inspector is now built from DataForm fields (dev note). PluginDocumentSettingPanel, PluginPostStatusInfo and the editor.PostFeaturedImage filters still work. __experimentalPluginPostExcerpt is no longer rendered, and CSS that targets the old panel class names no longer applies. Plugin items in the Options menu move into a Panels submenu (menu dev note), which breaks end-to-end tests that click by position.

If you bundle @wordpress/components, @wordpress/ui or @wordpress/dataviews instead of loading wp-components, update to the minimum versions in the CSS module collision note (components 44.0.0, ui 0.26.0, dataviews 22.0.0) and rebuild. InspectorControls no longer accepts __experimentalGroup; use the stable group prop (editor misc note).

Interactivity API: removed syntax

data-wp-ignore is gone, unique directive IDs with two hyphens (data-wp-watch--id) are gone, and negating a function reference (!actions.isEmpty) no longer works (Interactivity dev note). The new data-wp-html directive only renders values wrapped with wp_interactivity_as_dangerous_html() in PHP or asDangerousHTML() in JavaScript. Neither function sanitises, so escape before you wrap.

Abilities API: opt-in exposure

Three read-only core abilities arrive: core/content-query, core/users-query and core/settings-get (dev note). Post types and settings are exposed only when you pass show_in_abilities => true to register_post_type() or register_setting(); the default is false. Do not set it on a setting that holds an API key. Abilities you register yourself can now declare required_capabilities instead of writing a permission_callback (Abilities dev note).

Theme authors: three checks

  • Admin icons. The admin menu and admin bar now use inline SVG (dev note). Custom admin colour schemes and CSS that styles .wp-menu-image:before or .ab-icon:before need a look. WP_Admin_Bar::add_node() takes a new icon argument.
  • Text shadow. Paragraph and Heading blocks support textShadow; themes can add presets at settings.typography.textShadowPresets in theme.json (dev note). Nothing breaks, but check that the two default presets (Light, Strong) suit your palette.
  • Random redirects. /random/ now redirects to a random published post, and custom post types opt in with randomable (dev note). If a page on your site already uses the slug random, test it on RC3. wp_enable_random_content_redirect turns the feature off.

Site owners: one database change

RC3 adds NO_BACKSLASH_ESCAPES to wpdb‘s list of incompatible SQL modes (@since 7.2.0 in class-wpdb.php), so WordPress switches it off for its own sessions (dev note). Most hosts never enable it; if yours does, this fixes escaping rather than breaking it. PHP 8.6, released 19 November, is supported as of Beta 5 (PHP 8.6 note).

A read-only scan you can run today

We turned the deprecations and removals above into a grep script. It reads files and changes nothing:

#!/usr/bin/env bash
# wp72-scan.sh <plugin-or-theme-dir>
dir="${1:?usage: wp72-scan.sh <dir>}"
check() {
  local label="$1" pat="$2"; shift 2
  local inc=(); for g in "$@"; do inc+=(--include="$g"); done
  local n=$(grep -rEl "${inc[@]}" --exclude-dir=node_modules \
    "$pat" "$dir" 2>/dev/null | wc -l)
  [ "$n" -gt 0 ] && printf '%-34s %3s file(s)\n' "$label" "$n"
}
dep='\b(wp_start_cross_origin_isolation_output_buffer|wp_add_crossorigin_attributes|_print_scripts|_print_styles|_truncate_post_slug|script_concat_settings|wp_kses_html_error)\s*\('
check "PHP: deprecated in 7.2" "$dep" '*.php'
check "PHP 8.6: spl_object_hash()" '\bspl_object_hash\s*\(' '*.php'
check "REST: comment status as string" \
  "\\\$request\[\s*'status'\s*\]\s*[!=]==?\s*'" '*.php'
check "JS: __experimentalGroup" '__experimentalGroup' '*.js' '*.jsx' '*.ts' '*.tsx'
check "JS: PluginPostExcerpt (exp.)" '__experimentalPluginPostExcerpt' '*.js' '*.jsx' '*.ts' '*.tsx'
check "Interactivity: data-wp-ignore" 'data-wp-ignore' '*.php' '*.js' '*.html'
check "CSS: Dashicon menu/bar icons" '(wp-menu-image|ab-icon)[^{]*:before' '*.css' '*.scss'
tested=$(grep -hiE '^\s*Tested up to:' "$dir"/readme.txt 2>/dev/null | head -1 | sed -E 's/.*:\s*//')
printf '%-34s %s\n' "readme: Tested up to" "${tested:-none}"

We ran it on the current wordpress.org builds of ten widely installed plugins: Advanced Custom Fields 6.8.12, Classic Editor 1.7.0, Contact Form 7 6.2.6, Elementor 4.4.2, Jetpack 16.4, Query Monitor 4.1.1, Redirection 5.10.1, WooCommerce 11.3.1, Yoast SEO 28.9 and WPForms Lite 2.0.5.2.

wp72-scan.sh output for WooCommerce, Jetpack and Contact Form 7

Output from our test server, run on 26 Nov 2026.

What it found:

  • None of the ten call a function deprecated in 7.2, use data-wp-ignore, __experimentalGroup or the experimental excerpt panel, or compare the REST comment status with a string.
  • Jetpack (13 files) and Elementor (4 files) style admin menu icons through .wp-menu-image:before. That CSS is exactly what the SVG icon change asks authors to recheck; whether it still renders is a visual check, not a grep.
  • spl_object_hash() shows up in WooCommerce, Yoast SEO and Elementor, almost all of it in bundled vendor libraries. The PHP 8.6 dev note recommends spl_object_id(); WordPress core itself switched in 7.1.
  • Two of ten already say “Tested up to: 7.2” (Contact Form 7 and Elementor). Seven say 7.1 or 7.1.5, and Classic Editor says 7.0.

A grep finds the code paths to test; it does not prove a plugin works. The admin icon and DataForm changes in particular need a look in a browser.

What to do this week

  1. Install RC3 on a staging copy: wp core update --version=7.2-RC3, or the Beta Tester plugin on the bleeding edge channel.
  2. Run the scan on each plugin and theme you maintain, then fix the hits.
  3. Turn on WP_DEBUG_LOG and click through the editor sidebar, the admin menu and every REST route you expose.
  4. Bump “Tested up to” to 7.2 once it passes; the RC1 announcement asks plugin authors to do exactly that.

We will update this post on release day with the final 7.2 links and anything that changes in RC4.

Made by the team behind this post

Apps from our studio

  • Nix

    The Mac uninstaller that finds what the Trash leaves behind: caches, logs, derived data and saved states.

    macOS

    Get
  • Cardigami

    Pop-up greeting cards that rise out of the fold on iPhone Duo.

    iPhone · App Store

    Get
  • BMDB.fun

    Your Bollywood world at a glance, with links straight to the OTT app that streams each film.

    Android TV · Web · Mobile

    Get
  • OneClick QuitAll

    Quit every running app in one click. See memory and CPU first.

    macOS · Mac App Store

    Get

Need this built? Let’s talk.

We build and run apps for Mac, TV, mobile and the web, and write about what we learn.