Following the significant innovations of WordPress 7.0 and 7.1, WordPress 7.2 expands on that foundation with a broad range of improvements and new features.

This release brings a more refined editing experience, enhanced design and responsive controls, expanded client-side media processing, a more modern WordPress admin, new APIs, and developer tools. It also introduces Ipsum, the new default theme, which we’ve already covered in a dedicated article.

Let’s take a closer look at the key highlights of WordPress 7.2.

Updates to client-side media processing

First introduced in WordPress 7.1, client-side media processing has undergone several updates to make image upload and processing more efficient. These improvements range from extending client-side image processing to additional screens and cross-origin isolation to animated sub-sizes for GIF and WebP images, as well as auto-attaching images to posts from the block editor.

Let’s take a closer look.

Extending client-side image processing to additional screens

WordPress 7.1 introduced client-side image processing only in the block editor. If you tried uploading a media file from the Media Library grid view, the operation was still processed server-side.

Starting in WordPress 7.2, image uploads now happen client-side in supported browsers when performed from the Media Library grid view, the Add New Media File screen, and the media modal, such as the one used in the Featured Image panel or via the Image block’s Media Library button.

With this update, the UI remains unchanged: progress bars, previews, notices, and error messages behave identically from the user’s perspective. However, messages originating from the processing pipeline and the warnings shown when navigating away from the page during an upload have been updated.

This change also extends cross-origin isolation to load-upload.php and load-media-new.php.

Image processing still occurs server-side in a few specific scenarios:

  • When client-side processing is disabled via the wp_client_side_media_processing_enabled filter.
  • When the browser does not support it (currently Firefox and Safari).
  • For any file that is not an image with an allowed MIME type. This excludes videos, audio files, PDFs, SVGs, JSON files, and archives; these file types continue to upload through async-upload.php as before.
  • Uploaders that do not create media attachments, such as a plugin handling an upload on its own.
  • HEIC files that the browser cannot decode while the server supports HEIC; this affects Linux and Windows systems without the HEVC extension. If neither the browser nor the server supports HEIC, WordPress throws an error message.
  • JPEG and PNG files when Plupload resizing is enabled.
  • On non-isolated screens, such as the Customizer, the Site Icon picker, and the classic editor’s media modal.

Animated sub-sizes for animated images

A useful improvement involves animated images, such as animated GIFs and WebPs. Before WordPress 7.2, generated sub-sizes of animated images lost their animation when resized because of limitations in the server-side image-processing libraries used by WordPress: GD and Imagick.

Client-side media processing changes this behavior because, in the browser, each frame can be processed independently of the host, meaning “the cost is paid once, by the uploader, rather than on the server.”

If an animation is too large to be decoded in the browser, the pipeline generates a static image of the first frame rather than aborting the upload. When uploads fall back to server-side processing, sub-sizes of animated images still lose their animation as before.

Auto-attached images

Another noteworthy update relates to how images are attached to posts on save/publish in the block editor.

Before WordPress 7.2, images were only attached to a post when uploaded directly from the block editor, whereas selecting them from the Media Library left them unattached.

Now, images selected from the Media Library are also attached to the post or page upon a successful manual save or publish.

This change applies exclusively to the Image and Gallery blocks. Exceptions include:

  • When the post or page contains more than 100 images.
  • When the image is already attached to another post or page.
  • Once a post is published, only images added in subsequent edits are checked.
  • Images included in templates, template parts, and synced patterns are not affected.
  • Posts and pages created via REST API requests or WP-CLI are not affected.
  • Sites with attachment pages enabled are excluded by default (developers can enable the feature through the autoAttachMediaEnabled editor setting).

This update also introduces several new features for plugin and theme developers. Check the dev note for an in-depth developer overview.

SVG icons in the admin bar and admin menu

WordPress 7.2 replaces the core Dashicons used in the admin bar and the sidebar with inline SVG icons from the WordPress icon system.

This update resolves several limitations of the previous system based on CSS pseudo-elements (::before).

  • Accessibility limitations: Icon fonts map glyphs to Private Use Area Unicode code points that lack semantic meaning, causing inconsistent and unpredictable behavior in screen readers. SVGs solve this problem because they can be hidden from screen readers (aria-hidden="true") or given an accessible name (aria-label).
  • High-contrast modes: Icon fonts may not display correctly when users enable high-contrast settings, since the system treats them as text. On the other hand, SVG icons using currentColor follow the colors selected by the user.
  • Loading issues: When font loading stalls or is slow, users see empty rectangles (tofu boxes) or garbled characters. An inline SVG icon is already part of the markup.
  • Visual consistency: This update marks another small step toward visually unifying the admin interface with the block editor by eliminating the coexistence of two separate icon sets.
SVG icons in WordPress 7.2 admin panel
WordPress 7.2 introduces SVG icons for admin bar and menu.

For developers, WordPress 7.2 introduces a core-admin collection of SVG icons. These icons are stable, meaning that once added, they will not be removed or renamed in future releases. Additional icons may be introduced later based on feedback from plugin developers.

core-admin icon collection preview
core-admin icon collection preview

The dev note warns against using the core collection, which is intended for the front end instead.

You can also register custom icon sets using the two new functions wp_register_icon_collection() and wp_register_icon().

The add_menu_page() and register_post_type() functions now directly accept a namespaced icon name, alongside the existing Dashicon, URL, base64 SVG, and none values. The following code registers a custom post type named Books using the core-admin/cover icon:

register_post_type( 'book', array(
	'labels'       => array(
		'name'          => __( 'Books', 'textdomain' ),
		'singular_name' => __( 'Book', 'textdomain' ),
	),
	'public'       => true,
	'has_archive'  => true,
	'show_in_rest' => true,
	'menu_icon'    => 'core-admin/cover',
	'supports'     => array( 'title', 'editor', 'thumbnail' ),
) );

WP_Admin_Bar::add_node() now accepts a new icon argument, while the new wp_is_valid_icon_name() helper function lets you verify whether an icon name follows the namespaced collection/icon-name format.

When an admin menu item uses a Dashicon with a matching SVG icon in the core-admin collection, WordPress automatically uses the SVG. For admin bar nodes, however, you must pass the SVG icon name explicitly.

Check the official dev note for a deeper overview and several code examples.

Editor updates

WordPress 7.2 brings several editor improvements, including changes to the Options and View menus, a redesigned Media Inserter, and a range of smaller updates to make the editing experience smoother and more intuitive.

Here are the ones we think are most worth noting:

Redesigned Media Inserter

With WordPress 7.2, the Media Inserter gets a complete redesign to improve browsing and make selecting media files easier, particularly for sites with large media libraries.

A search field and category controls make it easier to browse available media and find specific files, while a DataViews grid displays media items in a more organized layout. This makes better use of the available space while displaying file previews directly in the inserter.

The redesigned Media Inserter in WordPress 7.2.
The redesigned Media Inserter in WordPress 7.2.

The redesigned inserter displays the core Images, Audio, and Video categories as tabs within the Media Library. In contrast, custom categories registered by plugins appear in a separate dropdown next to the search field. A dedicated Attached images category also lets users browse media attached to the current post or page.

Attached images in the Media Inserter.
Attached images in the Media Inserter.

The redesigned interface retains drag-and-drop functionality and introduces pagination to make navigating large media libraries easier.

Updates to the Options and View menus

Starting in WordPress 7.2, the Options and View menus in both the post and site editors have been updated to use the new menu component from the @wordpress/ui package.

This change improves keyboard navigation and more consistently handles checkboxes and link items, while aligning the menus with other components across the WordPress Design System.

The new editor Options menu in WordPress 7.2.
The new editor Options menu in WordPress 7.2.

Here are a few interface updates to the Options menu:

  • The previous View panel has been moved into a new Appearance submenu under a new View group.
  • A new Notes submenu has been added to the new View group with options to expand, minimize, or hide notes.
  • Plugin items have been moved into a new Panels submenu. Previously, they resided in a separate group.

For most developers, this update should not require significant changes. For action and link items, the dev note explains how to pass the item’s label as children and use the icon, onClick, href, and disabled properties, as shown in the following code snippet:

function MyMenuItem() {
	return (
		<PluginMoreMenuItem icon={ external } onClick={ openMyTool }>
			Open my tool
		</PluginMoreMenuItem>
	);
}
registerPlugin( 'my-plugin', { render: MyMenuItem } );

Additional editor changes

WordPress 7.2 introduces several other editor improvements. Here, we’d like to highlight two of them:

CSS rules added in a block’s Advanced settings now also apply to blocks rendered by their parent blocks. This includes Navigation Link blocks rendered inside a Navigation block.

The Paragraph block now supports native multi-selection on iOS and Android, making it easier to select and edit multiple blocks on mobile devices.

For a more comprehensive overview of the smaller improvements to the block editor introduced with WordPress 7.2, see Miscellaneous Editor Changes in WordPress 7.2.

Global Styles and design tools

New design options and an enhanced Gallery block further expand the editor’s design capabilities. WordPress 7.2 adds support for duotone filters in the Gallery and Media & Text blocks, introduces text shadow settings, and brings new layout and customization controls to the Gallery block.

Duotone support for Gallery and Media & Text blocks

Previously, applying a duotone filter to a Gallery block required setting it individually for each image, while the Media & Text block didn’t support it at all. Neither block could be styled with duotone filters through Global Styles.

With WordPress 7.2, both blocks now support duotone filters both in the editor and Global Styles, making it easier to create consistent visual styles across your site.

Setting the duotone filter for a Gallery block in WordPress 7.2
Setting the duotone filter for a Gallery block in WordPress 7.2.

Block-level settings override Global Styles, allowing you to apply a filter site-wide and customize it for individual blocks. In the Gallery block, individual image filters can still override the gallery-level setting.

Gallery block's Duotone filter in Global Styles.
Gallery block’s Duotone filter in Global Styles.

Text shadow support

WordPress 7.2 introduces a new textShadow typography support, along with text shadow presets and a new interface for configuring text shadows in the editor’s block inspector and in Global Styles.

The first blocks to implement textShadow are the Paragraph and Heading blocks. You will find text shadow controls in all blocks that use Headings or Paragraphs, such as the Quote and Media & Text blocks, but not for list items or button labels.

Here is how three headings with different textShadow settings look in the code editor:

<!-- wp:heading {"textShadow":"light"} -->
<h2 class="wp-block-heading has-light-text-shadow">Light text shadow</h2>
<!-- /wp:heading -->

<!-- wp:heading {"textShadow":"strong"} -->
<h2 class="wp-block-heading has-strong-text-shadow">Strong text shadow</h2>
<!-- /wp:heading -->

<!-- wp:heading {"style":{"typography":{"textShadow":"none"}}} -->
<h2 class="wp-block-heading" style="text-shadow:none">No text shadow</h2>
<!-- /wp:heading -->

WordPress 7.2 provides two text shadow presets: Light and Strong. You can modify the active presets directly from the Global Styles interface.

Text shadow controls in WordPress 7.2.
Text shadow controls in WordPress 7.2.

To preview them, navigate to Appearance > Editor > Styles > Typography. Then scroll down and select Text shadow presets. Choose the preset you want to customize and configure it as needed. Your settings will be applied site-wide.

Customizing a text shadow preset in Global Styles.
Customizing a text shadow preset in Global Styles.

In addition to editing existing presets, you can also add custom presets directly from the Global Styles interface. Once you’ve added your custom presets, you’ll find the corresponding options in each block’s typography settings.

The text shadow selector in the WordPress 7.2 post editor.
The text shadow selector in the WordPress 7.2 post editor.

Developers can use the textShadow, defaultTextShadowPresets, and textShadowPresets properties in theme.json, either under settings.typography or within the elements section.

The PR #79584 provides code examples you can use on a staging website to try it out yourself.

You can disable text shadow completely by setting "textShadow": false under settings.typography:

{
	"version": 3,
	"settings": {
		"typography": {
			"textShadow": false,
			"defaultTextShadowPresets": false,
			"textShadowPresets": []
		}
	}
}

You can define custom text shadow presets using the textShadowPresets property. The code below adds three more options to the text shadow presets menu in the Global Styles panel:

{
	"version": 3,
	"settings": {
		"typography": {
			"textShadowPresets": [
				{
					"name": "Soft",
					"slug": "soft",
					"textShadow": "1px 1px 2px rgba(0, 0, 0, 0.3)"
				},
				{
					"name": "Glow",
					"slug": "glow",
					"textShadow": "0 0 8px rgba(255, 215, 0, 0.8)"
				},
				{
					"name": "Retro",
					"slug": "retro",
					"textShadow": "3px 3px 0 rgba(255, 0, 128, 0.7)"
				}
			]
		}
	}
}
Three additional text shadow presets in Global Styles.
Three additional text shadow presets in Global Styles.

Each preset generates a --wp--preset--text-shadow--{slug} CSS custom property, which translates to the .has-{slug}-text-shadow CSS class.

You can also set a default style for a specific block as shown in the following example:

{
	"version": 3,
	"settings": {
		...
	},
	"styles": {
		"blocks": {
			"core/paragraph": {
				"typography": {
					"textShadow": "2px 2px 0 #ff0080, 4px 4px 0 #00d9ff"
				}
			}
		}
	}
}

As mentioned above, in WordPress 7.2, only the Paragraph and Heading blocks support text shadow by default. Other blocks can enable support via the supports.typography.textShadow property in their block.json file, as shown below:

{
	"supports": {
		"typography": {
			"textShadow": true
		}
	}
}

Text shadow controls are hidden by default (users can reveal them via the Typography options menu), though developers can use the __experimentalDefaultControls property to display them automatically.

Finally, you can hide the built-in presets by setting the defaultTextShadowPresets property to false in theme.json:

{
	"version": 3,
	"settings": {
		"typography": {
			"defaultTextShadowPresets": false
		}
	}
}

For more information, refer to the online documentation.

Improved design tools for the Gallery block

With WordPress 7.2, the Gallery block gets new tools that make managing images easier. We’ve already covered Duotone support and automatic image attachment in previous sections. Here are some of the other improvements coming to the Gallery block.

Columns and crop controls in viewport states

The first update lets you configure the number of columns and image cropping independently for different viewport sizes using responsive editing.

To try it out, configure your Gallery in Desktop view. Make sure you’ve selected the Flex layout, then set the number of columns to 3 and turn off image cropping.

Columns and Crop settings for the Gallery block in WordPress 7.2.
Columns and Crop settings for the Gallery block in WordPress 7.2 (Desktop view).

Next, open the View menu, enable Responsive styles, and select the Tablet or Mobile viewport. You can then configure a different number of columns and cropping behavior for smaller screens.

Columns and Crop mobile settings for the Gallery block in WordPress 7.2.
Columns and Crop mobile settings for the Gallery block in WordPress 7.2.

If you now resize the editor canvas, you’ll see the number of columns and image cropping change as the viewport width crosses the relevant breakpoints.

Sorting options for static Gallery blocks

WordPress 7.2 adds a new control that lets you choose how images are sorted in static Gallery blocks.

The available options are:

  • Custom (default)
  • Newest to oldest
  • Oldest to newest
  • A → Z
  • Z → A
  • Random

The selected order is applied to the images already in the Gallery. If you manually rearrange an image, the sorting control switches back to Custom.

Images from external sources that cannot be sorted are placed at the end of the list, retaining their original order. This applies to all sorting options except Custom.

Updates for developers

WordPress 7.2 brings a wealth of updates for theme and plugin developers. From a redesigned Editor Inspector and new Entity Fields and Entity Actions APIs to Random Content Redirects and improvements to the Abilities API, this release introduces new tools for extending WordPress.

There’s good news on the compatibility front, too: all known PHP 8.6 compatibility issues in WordPress Core have been resolved, making WordPress 7.2 fully compatible with the latest PHP release. The minimum supported PHP version remains unchanged at 7.4.

Let’s dive into the main developer updates included in WordPress 7.2.

The Editor Inspector now uses DataForm

Starting with WordPress 7.2, the Editor Inspector is built with DataForm in both the Post Editor and the Site Editor.

This update makes the Inspector consistent with Quick Edit and easier for developers to extend and customize.

The Inspector and DataViews Quick Edit now use the same fields, retrieved from the server based on the post type. The new Entity Fields API also lets you add custom fields, update existing ones, or remove them without manipulating the DOM directly.

For details on which existing features remain supported and what changes with the new Inspector, see the official developer note.

The editor inspector is built with DataForm.
The Editor Inspector is built with DataForm.

New APIs for extending the Editor Inspector and the Site Editor

WordPress 7.2 introduces two new APIs for extending screens powered by DataViews and DataForm: The Entity Fields API and the Entity Actions API.

These APIs let developers extend WordPress entities with additional fields and actions.

The Entity Fields API lets developers register, update, and remove an entity’s fields, while the Entity Actions API lets developers register and remove actions associated with an entity.

Fields and actions are registered once and then become available wherever the corresponding entity is used, including Site Editor screens, the quick edit form, and the Post Editor Inspector.

Let’s look at an example and register a new custom field, demo_subtitle, following the official developer note. Create a new plugin called page-entity-fields with two files: page-entity-fields.php and fields.js.

Step 1: Register the post meta and JavaScript module

First, register the post meta field and attach it to the desired post type. The following code registers a demo_subtitle meta field for the page post type. It also registers the demo-page-field JavaScript module:

function demo_page_field_register() {

	// Register the subtitle post meta.
	register_post_meta(
		'page',
		'demo_subtitle',
		array(
			'type'              => 'string',
			'single'            => true,
			'default'           => '',
			'show_in_rest'      => true,
			'sanitize_callback' => 'sanitize_text_field',
		)
	);

	// Register the JavaScript module to read and update the field value.
	wp_register_script_module(
		'demo-page-field',
		plugins_url( 'fields.js', __FILE__ )
	);
}
add_action( 'init', 'demo_page_field_register' );

Next, register the subtitle field with the Entity Fields API:

function demo_page_field_register_api() {

	wp_register_entity_fields(
		'demo-page-field',
		'postType',
		'page',
		array(
			array(
				'id'    => 'demo_subtitle',
				'type'  => 'text',
				'label' => __( 'Page Subtitle', 'demo-page-field' ),
			),
		),
		'demo-page-field'
	);
}
add_action( 'wp_entity_fields_api_init', 'demo_page_field_register_api' );

The wp_register_entity_fields() function accepts the following arguments:

  • Entity source: The plugin registering the field.
  • Entity kind: In this example, postType.
  • Entity name: The name of the entity, in this case page.
  • Fields: An array of field definitions. The id identifies the field and corresponds to the registered demo_subtitle post meta.
  • JavaScript module: The module that provides the JavaScript functionality for the field.

Step 2: Define how WordPress reads and writes the field’s value

Next, create the following fields.js file:

export default {
	demo_subtitle: {
		getValue: ( { item } ) => item.meta?.demo_subtitle ?? '',

		setValue: ( { value } ) => ( {
			meta: {
				demo_subtitle: value,
			},
		} ),
	},
};
  • getValue: Retrieves the current value of demo_subtitle from the page’s metadata.
  • setValue: Returns the updated metadata when the user changes the field value.

Step 3: Configure where the field appears

Registering an entity field does not make it visible automatically. To display it, use the get_entity_view_config_posttype_page filter to add it to the default Pages view and the form used by Quick edit and the Editor Inspector (see the list of the available filters).

Back in the PHP file, add the following code:

add_filter( 'get_entity_view_config_posttype_page', function ( $data ) {
	return $data->merge(
		array(
			'default_view' => array(
				'fields' => array( 'demo_subtitle' ),
			),
			'form' => array(
				'fields' => array( 'demo_subtitle' ),
			),
		),
		1
	);
} );

As a result, the new field becomes available in screens that use DataViews and DataForm.

The editor inspector displays the custom field registered with the Entity Fields API.
The Editor Inspector displays the custom field registered with the Entity Fields API.

You can also see the field in the Pages screen in the Site Editor.

The Pages screen in the Site Editor, displayed in List view.
The Pages screen in the Site Editor, displayed in List view.

Entity Fields and Entity Actions functions

The new APIs come with a set of functions and two initialization hooks.

The Entity Fields API provides functions to register, update, remove, and retrieve entity fields:

  • wp_register_entity_fields(): Registers one or more entity fields.
  • wp_update_entity_fields(): Updates one or more entity fields.
  • wp_unregister_entity_fields(): Unregisters one or more entity fields.
  • wp_get_registered_entity_fields(): Retrieves one or more registered entity fields.

The Entity Actions API provides two functions to register and remove entity actions:

  • wp_register_entity_actions(): Registers one or more entity actions.
  • wp_unregister_entity_actions(): Unregisters one or more entity actions.

To use these functions, you will hook into wp_entity_fields_api_init for the Entity Fields API and wp_entity_actions_api_init for the Entity Actions API.

For a more detailed overview of these APIs and examples of how to use the Entity Actions API, see the official dev note.

Random Content Redirects

WordPress 7.2 adds support for random content redirects by introducing a new /random/ endpoint. With this new endpoint, a request to your-site.com/random/ will be automatically redirected to a randomly selected post.

The /random/ endpoint also works at the archive level. For example, you can use it to pick a random post from a specific category (/random/category/cms/) or from any publicly queryable taxonomy (/random/tag/wordpress/). You can also use it for a specific author (/random/author/john/) or for a custom post type (/random/products/), provided that it is publicly_queryable and has has_archive set.

If you want to opt out of this feature for your custom post types, you will need to set the randomable attribute to false during registration, as shown in the following example:

register_post_type(
	'books',
	array(
		'public'      => true,
		'has_archive' => true,
		'randomable'  => false,
	)
);

Technically, WordPress uses the main WP_Query to select the post, ordered by RAND() and limited to a single result. This update also adds three new callbacks: wp_random_content_pre_get_posts() on pre_get_posts, wp_random_content_posts_orderby() on posts_orderby, and wp_random_content_post_limits() on post_limits.

Thanks to the new functions, you can modify the query results only for requests to the /random/ endpoint. The dev note provides the following example:

add_action(
	'pre_get_posts',
	static function ( WP_Query $query ) {
		if ( wp_is_random_content_query( $query ) ) {
			$query->set( 'category__not_in', array( 525600 ) );
		}
	}
);

Random redirects are enabled by default for most post types, excluding page and attachment.

WordPress 7.2 does not introduce an admin setting to disable this feature, though developers can use the wp_enable_random_content_redirect filter to opt out:

add_filter( 'wp_enable_random_content_redirect', '__return_false' );

It’s worth noting that not everyone in the WordPress community was convinced that random redirects were a good fit for core. The feature prompted questions about how useful it would be to most WordPress users and whether it aligns with the 80% principle in the WordPress philosophy.

Some developers raised concerns about potential security and performance risks, including increased exposure to DDoS attacks and the unintended discovery of publicly accessible but deliberately unlisted content, such as client-specific posts and promotional offers.

The initial implementation also relied on ORDER BY RAND(), which can be resource-intensive on large databases. However, performance optimizations introduced ahead of the WordPress 7.2 release significantly reduced this overhead.

Concerns remain around content discoverability, as random redirects do not automatically exclude posts marked with noindex.

All things considered, enabling this feature by default may confuse some users, particularly those who aren’t aware of it or don’t know how to disable it.

Updates to the Abilities API

The Abilities API allows WordPress core and plugins to expose their functionality in a standardized way, making it easier for AI agents and other automation tools to discover and use it.

With WordPress 7.2, the Abilities API receives several updates that deserve particular attention from plugin developers.

Declaring permissions

Previously, to verify whether an agent had permission to execute a given ability, you had to define permission_callback, a callback function that establishes the capability required to execute a specific ability during registration. For example:

'permission_callback' => static function (): bool {
	return current_user_can( 'edit_posts' );
},

You would then use the check_permissions() method on the $ability object to verify the capability of the agent invoking the ability. Here is an example:

if ( $ability ) {
	$has_permissions = $ability->check_permissions();
	if ( true === $has_permissions ) {
		echo "You have permissions to execute this ability.";
	} else {
		if ( is_wp_error( $has_permissions ) ) {
			error_log( "Permissions check failed: " . $has_permissions->get_error_message() );
		}
		echo "You do not have permissions to execute this ability.";
	}
} else {
	echo "Ability not found.";
}

WordPress 7.2 introduces a new registration argument, required_capabilities, which accepts a non-empty array of WordPress capabilities, bringing several substantial changes to the previous system.

WordPress will automatically check current_user_can() before permission_callback is executed.

This also saves you from writing extra code because, if an ability’s required capabilities are fixed, you don’t even need to write a custom permission_callback. However, if the required capability depends on the input data, for example, checking whether an agent has specific permissions for a given post, then required_capabilities and permission_callback can be used together for a two-step check.

permission_callback is still required if required_capabilities is omitted or empty.

Input validation and sanitization

Starting in WordPress 7.2, input validation occurs before sanitization. Invalid values are rejected before type casting or property stripping can mask the error.

Before 7.2, if an input field or a nested field failed validation, WordPress could fall back to the original unsanitized input. With this update, any preparation error immediately returns a WP_Error (ability_invalid_input and an HTTP 400 status via REST) and halts execution before permission checks and execute_callback run.

Preserve empty objects in JSON

Another update to the Abilities API improves how JSON data is prepared and serialized. The wp_prepare_json_schema_for_client() and wp_prepare_json_value_for_client() helper functions ensure that empty objects and arrays retain the structure defined in the schema when converted to JSON. This helps the Abilities API and the WordPress AI Client return data with the expected object or array structure, even when a value is empty.

Additional core abilities

WordPress 7.2 ships 3 new core abilities:

  • core/content-query – Retrieves and queries posts and pages, as well as custom post types registered with show_in_abilities = true (see ticket).
  • core/settings-get – Dynamically discovers and exposes WordPress settings. By default, only a predefined set of core settings is available. Plugins can expose additional settings using show_in_abilities = true (see ticket).
  • core/users-query – retrieves profile data for a specific user or a collection of users (see ticket).

The following code, to be run in your terminal, gives you a list of all the abilities registered on your site:

wp @production eval '
foreach ( wp_get_abilities() as $ability ) {
	echo "Name:         " . $ability->get_name() . PHP_EOL;
	echo "Label:        " . $ability->get_label() . PHP_EOL;
	echo "Category:     " . $ability->get_category() . PHP_EOL;
	echo "Description:  " . $ability->get_description() . PHP_EOL;
	if ( method_exists( $ability, "get_required_capabilities" ) ) {
		echo "Capabilities: " . implode( ", ", $ability->get_required_capabilities() ) . PHP_EOL;
	}
	echo str_repeat( "-", 40 ) . PHP_EOL;
}
'

Here, @production is the alias for passwordless access to your WordPress site.

Here is the list of WordPress 7.2 core abilities, along with the get-design-guide ability registered by the Ipsum theme.

Name:         core/get-site-info
Label:        Get Site Information
Category:     site
Description:  Returns site information configured in WordPress. By default returns all fields, or optionally a filtered subset.
Capabilities: manage_options
----------------------------------------
Name:         core/get-user-info
Label:        Get User Information
Category:     user
Description:  Returns profile details for the current authenticated user to support personalization, auditing, and access-aware behavior. By default returns all fields, or optionally a filtered subset.
Capabilities: 
----------------------------------------
Name:         core/get-environment-info
Label:        Get Environment Info
Category:     site
Description:  Returns core details about the site's runtime context for diagnostics and compatibility (environment, PHP runtime, database server info, WordPress version). By default returns all fields, or optionally a filtered subset.
Capabilities: view_site_health_checks
----------------------------------------
Name:         core/settings-get
Label:        Get Settings
Category:     site
Description:  Returns WordPress settings as a flat map of setting name to value. By default returns all settings exposed to abilities, or optionally a subset filtered by settings group, by setting name, or both. A setting whose value does not match its schema is left out. Requires an authenticated user who can manage options.
Capabilities: manage_options
----------------------------------------
Name:         core/users-query
Label:        Query Users
Category:     user
Description:  Retrieves a paginated list of readable WordPress users, optionally filtered by IDs, slugs, usernames, roles, or published-post authorship. Callers without permission to list users only see public authors. To read your own profile, use `core/get-user-info`. Requires an authenticated user.
Capabilities: 
----------------------------------------
Name:         core/content-query
Label:        Query Content
Category:     content
Description:  Retrieves a paginated list of the readable posts of a post type exposed to abilities, filtered by any of post IDs, slugs, status, author, and parent. Requires an authenticated user. Filters are exact-match only; the ability does not perform full-text search.
Capabilities: 
----------------------------------------
Name:         ipsum/get-design-guide
Label:        Get Design Guide
Category:     site
Description:  Returns the design guide of the Ipsum theme, read from the site as it is now. By default returns the basic design sections: the active theme, whether the palette is light or dark, the color palette and what each color is for, gradients, duotone, typography, spacing, layout widths, and guidelines. Pass fields to request specific sections, including larger lists such as style variations, block styles, patterns, templates, template parts, and template part areas. Read it before building pages, templates or styles.
Capabilities: edit_theme_options
----------------------------------------

More developer updates

Additional noteworthy updates for developers include the following:

A CMS that keeps evolving

WordPress 7.2 doesn’t introduce any groundbreaking innovations that radically change the way we use the CMS. Instead, this release brings together a wide range of updates across the platform, from the editor interface to media processing and design tools.

There are also plenty of updates for developers, including new APIs, the new /random/ endpoint, significant improvements to the Abilities API, and much more.

Overall, WordPress 7.2 is an interesting release for both users who work with the editor every day and developers building themes and plugins. And even though WordPress’s market share has recently declined, development of the CMS shows no signs of slowing down.

To keep taking advantage of the opportunities offered by a constantly evolving platform, it’s important to have a reliable, high-performance, and secure cloud infrastructure.

By the way, did you know that Kinsta also offers Vulnerability Protection for WordPress sites. Check it out to learn more.

Carlo Daniele Kinsta

Carlo is a passionate lover of webdesign and front-end development. He has been playing with WordPress for more than 20 years, also in collaboration with Italian and European universities and educational institutions. He has written hundreds of articles and guides about WordPress, published both on Italian and international websites, as well as on printed magazines. You can find him on LinkedIn.