Performance Chat Summary: 1 December 2026

The full chat log is available beginning here on Slack.

WordPress Performance TracTrac An open source project by Edgewall Software that serves as a bug tracker and project management tool for WordPress. tickets

  • @westonruter highlighted #66880: Reading Settings loads every page in full to check whether one exists.
    • @westonruter noted that while the fix looks easy on the surface, fully addressing it would require a component that lazily loads pages via the REST APIREST API The REST API is an acronym for the RESTful Application Program Interface (API) that uses HTTP requests to GET, PUT, POST and DELETE data. It is how the front end of an application (think “phone app” or “website”) can communicate with the data store (think “database” or “file system”) https://developer.wordpress.org/rest-api/ with autocompletion. GutenbergGutenberg The Gutenberg project is the new Editor Interface for WordPress. The editor improves the process and experience of creating new content, making writing rich content much simpler. It uses ‘blocks’ to add richness rather than shortcodes, custom HTML etc. https://wordpress.org/gutenberg/ may already have such a component that could be leveraged here, ideally without breaking backward compatibility for plugins that interface with the old <select> element.
    • @spacedmonkey mentioned that there is already a scalable dropdown for users that uses the REST API, and the same could be done here with the post REST API controller. However, the complexity here is rendering nested pages. @westonruter suggested that for sites with many nested pages, it probably makes sense to have full breadcrumbs in each list item, like “Grandparent > Parent > Child”.
    • @adamsilverstein recalled a Gutenberg ticketticket Created for both bug reports and feature development on the bug tracker. for lazy loading the page hierarchy selector. @westonruter noted that the current parent page dropdown uses dashes to indicate children and that the exact same component and configuration should be used in both places for consistency. If the page parent hierarchy selector is not already lazy-loaded, this would address both problems.
    • @adamsilverstein recalled encountering a similar issue while working on the user selector and shared the related Gutenberg PR #71402. @westonruter asked whether that work supports the dropdown configuration in addition to selecting multiple checkboxes or whether it is a different component. @adamsilverstein was unsure of the current status and would need to look into it.
    • @adamsilverstein asked whether a query would solve the Reading Settings issue. @westonruter clarified that the performance problem is listing potentially hundreds or thousands of pages twice for the page_on_front and page_for_posts dropdowns. @adamsilverstein agreed that a searchable selector makes sense for sites with over 100 pages.
    • @westonruter noted that this is likely a problem that less than 0.1% of sites face, so it is not a high-impact fix.

Performance Lab PluginPlugin A plugin is a piece of software containing a group of functions that can be added to a WordPress website. They can extend functionality or add new features to your WordPress websites. WordPress plugins are written in the PHP programming language and integrate seamlessly with WordPress. These can be free in the WordPress.org Plugin Directory https://wordpress.org/plugins/ or can be cost-based plugin from a third-party. (and other performance plugins)

  • @westonruter shared that the plugins need their “Tested up to” versions bumped and that the minimum required WordPress version should be increased to 7.0 or 7.1. There are also some pending changes to release.
    • @westonruter noted that he would have very limited time over the next two weeks and would probably not be able to drive the releases.
    • @b1ink0 offered to help drive the next round of plugin releases.

Our next chat will be held on Tuesday, December 15, 2026 at 16:00 UTC in the #core-performance channel in Slack.

#core-performance, #hosting, #performance, #performance-chat, #summary

X-post: WP-CLI v3.0.0 Release Notes

X-comment from +make.wordpress.org/cli: Comment on WP-CLI v3.0.0 Release Notes

Dev Chat Agenda – December 2, 2026

The next WordPress Developers Chat will take place on Wednesday, December 2, 2026, at 15:00 UTC in the core channel on Make WordPress Slack.

The live meeting focuses on upcoming releases and CoreCore Core is the set of software required to run WordPress. The Core Development Team builds WordPress. development, with time for discussions and open floor.

If you have requests for help with a ticketticket Created for both bug reports and feature development on the bug tracker. or another discussion topic, please post details in the comments section at the end of this agenda, or bring it up in Dev Chat during open floor.

Announcements 📢

WordPress 7.2

General

Discussions 💬

The discussion section of the agenda is for discussing important topics affecting the upcoming release or larger initiatives that impact the Core Team. To nominate a topic for discussion, please leave a comment on this agenda with a summary of the topic, any relevant links that will help people get context for the discussion, and what kind of feedback you are looking for from others participating in the discussion.

Open floor  🎙️

Any topic can be raised for discussion in the comments, as well as requests for assistance on tickets. Tickets in the milestone for the next major or maintenance release will be prioritized.

Please include details of tickets / PRs and the links in the comments, and indicate whether you intend to be available during the meeting for discussion or will be async.

#7-2, #agenda, #core, #dev-chat

X-post: Learning from other open-source documentation teams

X-comment from +make.wordpress.org/docs: Comment on Learning from other open-source documentation teams

What’s new in Gutenberg 24.5? (25 November)

“What’s new in GutenbergGutenberg The Gutenberg project is the new Editor Interface for WordPress. The editor improves the process and experience of creating new content, making writing rich content much simpler. It uses ‘blocks’ to add richness rather than shortcodes, custom HTML etc. https://wordpress.org/gutenberg/…” posts (labeled with the #gutenberg-new tag) are posted following every Gutenberg release on a biweekly basis, showcasing new features included in each release. As a reminder, here’s an overview of different ways to keep up with Gutenberg and the Editor.

Image

What’s New In
Gutenberg 24.5?

Gutenberg 24.5 has been released and is available for download!

This release makes Grid layouts far more flexible, with precise placement, blockBlock Block is the abstract term used to describe units of markup that, composed together, form the content or layout of a webpage using the WordPress editor. The idea combines concepts of what in the past may have achieved with shortcodes, custom HTML, and embed discovery into a single consistent API and user experience. movers that go in every direction, and corner resizing. It also adds a side-by-side comparison view to style revisionsRevisions The WordPress revisions system stores a record of each saved draft or published update. The revision system allows you to see what changes were made in each revision by dragging a slider (or using the Next/Previous buttons). The display indicates what has changed in each revision., lets one note cover a passage that spans several blocks, and makes text color easier to find.

Alongside these come more than 400 merged pull requests of enhancements, bugbug A bug is an error or unexpected result. Performance improvements, code optimization, and are considered enhancements, not defects. After feature freeze, only bugs are dealt with, with regressions (adverse changes from the previous version) being the highest priority. fixes, and code quality work from 86 contributors, including 19 first-time contributors.

Table of contents

  1. Design freely with Grid
  2. See exactly what changed in your styles
  3. One note for a whole passage
  4. Text color, right where you expect it
  5. Other notable highlights
  6. Changelog
    1. Features
    2. Enhancements
    3. New APIs
    4. Bug Fixes
    5. Accessibility
    6. Performance
    7. Documentation
    8. Code Quality
    9. Tools
  7. First-time contributors
  8. Contributors

Design freely with Grid

You can now place any block on a specific column and row of a Grid, so a gallery can leave deliberate gaps or a feature image can sit exactly where your design needs it (#86017).

Block movers work in all four directions, and dragging a corner resizes an item across columns and rows in one go (#86709). To try it, select a block inside a Grid or a Gallery’s grid, open the Dimensions panel’s options menu, and turn on Grid placement.

A grid of six photos in three columns and two rows in the editor. The second photo is selected and shows round resize handles on all four sides and all four corners, with the block toolbar and its four-direction movers above the grid.

See exactly what changed in your styles

Selecting a style revision now shows it side by side with your current styles, so you can see what the values were instead of only which areas changed (#85288).

Use Visual to compare both versions of your site, with the two previews scrolling together, or Code to see each changed style and setting, removed values on one side and added on the other.

The Site Editor comparing a style revision with the current version side by side in the Code view. Removed lines are highlighted in red on the left and added lines in green on the right, with the Visual and Code toggle above and the list of revisions in the Styles sidebar.

One note for a whole passage

Feedback often covers more than a single paragraph. You can now select text that runs across several blocks, or several whole blocks, and add one note to all of it. The selected text in every block is highlighted, the sidebarSidebar A sidebar in WordPress is referred to a widget-ready area used by WordPress themes to display information that is not a part of the main content. It is not always a vertical column on the side. It can be a horizontal rectangle below or above the content area, footer, header, or any where in the theme. shows a single note, and clicking anywhere in the highlighted text selects that note. Blocks without text, such as an Image, are tinted instead. (#86051)

Use Add note in the block options menu, or press ⌘/Ctrl + Alt + M.

The post editor with three consecutive paragraphs selected and highlighted, and a single note box beside them containing the text "Can we combine these at all?" with Cancel and Add note buttons.
A note added across three paragraphs

Text color, right where you expect it

Changing the color of a few words is one of the most common formatting tasks, and it’s now one click away. The More menu in the block toolbar has two clear options: Text color and Highlight color. Each one shows a swatch of the color you’ve applied, so you can see the current color at a glance. You can also use both on the same words, such as dark text on a soft highlight. (#85296)

ImageImage

Previously both options were hidden inside a single “Highlight” item with tabs. Your existing content keeps its colors, and nothing needs updating. Thanks to first-time contributor @hambai!

Other notable highlights

  • Design tools: The Image block now supports border styles, and the Next Page and Previous Page blocks support borders and padding. Global Styles gains a text wrap setting. (#86733, #86597, #86596, #84063)
  • Template parts: A Template Part can now be inserted inside a Post Template. (#86377)
  • Inserter: Blocks that can only be used once now explain why they’re disabled, and the widgetWidget A WordPress Widget is a small block that performs a specific function. You can add these widgets in sidebars also known as widget-ready areas on your web page. WordPress widgets were originally created to provide a simple and easy-to-use way of giving design and structure control of the WordPress theme to the user. editors hide empty Patterns and Media tabs. (#86326, #86430)
  • Navigation: The overlay menu now fades out when it closes. (#85820)
  • Block crashes: The block crash warning has a new Copy error button, which makes reporting problems easier. (#85575)
  • Media editor: Media items can be deleted from the media editor, and “Restore original” becomes “Edit original”. (#86349, #86281)
  • Tabs: Several fixes make the Tabs block more reliable, including arrow key navigation with an HTMLHTML HyperText Markup Language. The semantic scripting language primarily used for outputting content in web browsers. anchor and on right-to-left sites. (#86373, #86429, #86415, #86362)
  • For developers: A new Image Editor package provides the media editor’s cropper, along with mapImageEdit for applying an edit’s parts in order. (#86223, #86704)

Changelog

Features

  • Grid: Place blocks on a specific column and row, move them in any direction with new block movers, and resize them from the corner. (86017, 86709)
  • Style revisions: Compare a revision with the current styles side by side, as a visual preview or a code diff. (85288)
  • Notes: Add one note to several selected blocks, or to text selected across them. (86051)
  • Format Library: Split “Highlight” into separate “Text color” and “Highlight color” controls. (85296)

Enhancements

Components

  • Button: Align pressed, disabled, ordinary and destructive colors with the design system, and simplify the Toolbar overrides. (86684, 86681, 86683)
  • Use design tokens for Card borders and dividers, Toolbar and Widgets surfaces and focus colors, placeholder text, and the typography mixins in base styles. (85857, 84573, 86578, 86635)
  • Theme: Add indicator color tokens for progress bar and meter fills, carry near-gray seed tints into generated neutral tokens, and generate Figma-compatible typography exports. (86584, 86052, 86211)
  • UIUI User interface: Add Notice.ActionButtonLink and a read-only style to Input, make group labels sticky in Select, Combobox, and Autocomplete popups, and tighten item label and description spacing. (86959, 86504, 86535, 84612)
  • Meter: Add success, warning, and error tones. (86675)
  • Badge: Add a dashed border to the draft intent. (86744)
  • Autocomplete: Throw in development when Input is inside Popup. (86674)
  • Calendar: Fill the available container width. (86086)
  • ColorPicker: Follow the Copy to Clipboard pattern for the copy button. (86808)
  • ContentEditableControl: Compose with InputLayout. (86591)
  • ControlWithError: Don’t mark empty required controls as touched on blur. (86600)
  • DataForm: Tighten value density in the panel layout. (86389)
  • FontSizePicker: Use the WordPress UI select for presets. (86661)
  • Menu: Align item slots with the first line of the label. (86135)
  • Switch, FormToggle: Use a light thumb, and show 1 and 0 labels on the track. (86678)
  • UnitControl: Support container query units in settings.spacing.units. (86241)

Block Library

  • Migrate block settings to the wordpress/ui SelectControl in Categories List, Gallery, Navigation, Post Navigation Link, Query, Search, Template Part, Terms Query, and Video. (86197, 86620, 86619, 86557, 86560, 86617, 86565, 86558, 86563)
  • Remove redundant noopener and rel values from links in the Button, File (with a migrationMigration Moving the code, database and media files for a website site from one server to another. Most typically done when changing hosting companies.), Gallery, Image, Latest Posts, and Social Link blocks, the Link format, pasted links, and adminadmin (and super admin)-only editor links. (86550, 77345, 86489, 86568, 86491, 86494, 86516, 86499, 86486)
  • Accordion: Open the panel when a link points to an Accordion Heading’s anchor. (86564)
  • Gallery: Derive linkTo instead of writing it on mount. (86658)
  • Quote: Remove the sample quote from the block description. (86127)
  • Template Part: Allow insertion inside a Post Template. (86377)
  • Navigation: Remove manual grid attributes from the overlay pattern, and fade out the overlay menu when it closes. (86863, 85820)

Design Tools and Global Styles

  • Image: Add border style support. (86733)
  • Next Page and Previous Page: Add border and padding support. (86597, 86596)
  • Cover: Migrate the minimum height to the dimensions block support. (83447)
  • Global Styles: Add textWrap style support. (84063)

Block and Site Editors

  • Grid: Keep row heights equal to column widths. (85811)
  • Inserter: Explain why blocks that can only be used once are disabled, hide empty Patterns and Media tabs in the widget editors, and use Stack in the block preview panel. (86326, 86430, 86498)
  • Post summary: Show placeholders for an empty excerptExcerpt An excerpt is the description of the blog post or page that will by default show on the blog archive page, in search results (SERPs), and on social media. With an SEO plugin, the excerpt may also be in that plugin’s metabox. and a missing author, show “Immediately” and relative publish dates in the Date row, and lowercase the placeholders. (85842, 86367, 86391)
  • Add a Copy error button to the block crash warning. (85575)
  • Style States: Use the Badge infotip for the active state badges. (86865)
  • Site Editor: Add a preview badge when switching themes. (84029)
  • Editor: Use preventDefault() for the unsaved changes warning. (86506)
  • Block toolbar: Restore the full toolbar for hidden blocks. (76771)
  • Notices: Use Notice.List for inline announcements. (85799)
  • UI: Add LoadingIndicator to item popups. (84633)
  • Media modal: Show the fields registered for attachments. (86457)
  • DataViews: Query filters on taxonomyTaxonomy A taxonomy is a way to group things together. In WordPress, some common taxonomies are category, link, tag, or post format. https://codex.wordpress.org/Taxonomies#Default_Taxonomies. fields by the taxonomy. (86458)
  • Font Library: Migrate the CategoryCategory The 'category' taxonomy lets you group posts / content together that share a common bond. Categories are pre-defined and broad ranging. selector to wordpress/ui. (86169)

Collaboration

  • Notes: Split the collaboration sidebar utilities into TypeScript modules. (86375)
  • Real-time collaboration: Add a block-level highlight option. (86272)

Media

  • Image Editor: Add exportImage for saving the edit as a file, follow design system tokens for canvas defaults, and make canvas styles overridable. (86405, 86402, 86340)
  • Media Editor: Add actions to delete a media item, and switch “Restore original” to “Edit original” with a redirect. (86349, 86281)
  • Upload Media: Export isClientSideSupportedFormat(). (86541)

Icons

  • Refine icons: update the Cover footprint, add serifs to italic, rename file to folder and add a real file icon, and adjust others based on feedback. (86420, 86561, 86526, 85450)
  • Map a conservative set of Dashicons to coreCore Core is the set of software required to run WordPress. The Core Development Team builds WordPress.-admin icons. (86708)
  • Add getAspectRatioIcon and use it in the media editor. (86348)
  • Retire seven icons. (85453)

Developer Tools

  • Stylelint: Enforce at-rule-empty-line-before in Gutenberg, relaxed for SCSS. (86292, 69606)
  • Design System MCP: Include story descriptions in examples. (86815)

New APIs

Image Editor

  • Add a package with the media editor’s cropper. (86223)
  • Add mapImageEdit to apply an edit’s parts in order. (86704)

Bug Fixes

Components

  • AlertDialog: Honor transition cancellation, and ignore stale async confirmation results after unmount. (86544, 86545)
  • Autocomplete: Ignore stale option requests, and keep keyboard completion callbacks committed. (86762, 86738)
  • ContentEditableControl: Don’t focus a disabled field on click, and hide a visually hidden label from screen readers. (86613, 85776)
  • InputControl and InputLayout: Remove a leftover max-width from the label wrapper, and keep Slot content from shrinking. (86363, 86446)
  • ResizableBox: Clear the resize tooltip timer on unmount, and keep the corner drag handles on top. (86758, 86781)
  • Textarea and TextareaControl: Fix ref and render composition, and remove the is-dark-theme placeholder override. (86546, 86755)
  • Theme: Generate token fallbacks from the current token graph, and preserve contrast after color rounding. (86547, 86189)
  • TimePicker: Keep the hours focus ring above the minutes field, and replace every underscore in the time zone tooltip. (86442, 86826)
  • UI Button: Keep the icon from shrinking, and show the pressed state in forced colors mode. (86497, 85948)
  • Breadcrumb: Keep frozen navigation items committed. (86746)
  • ColorPicker: Keep RGB values unchanged when only alpha changes. (86305)
  • ComboboxControl, FormTokenField: Identify the suggestions popup. (86749)
  • DataForm: Fix the clipped focus ring of field values in the panel layout. (86361)
  • DropdownMenu: Invert the selected item indicator while highlighted. (86330)
  • GradientPicker: Clean up the registered drag listeners. (86742)
  • Modal: Preserve scroll-area focus outlines across dialog layouts. (86023)
  • Toolbar: Keep the pressed and focus indicator square. (86855)
  • NumberControl: Preserve fractional values on commit without rounding to step. (85761)
  • ProgressBar: Remove the space before the ellipsis in the default label. (86793)
  • Shortcut: Show keyboard shortcuts left to right on RTL sites. (86606)
  • Snackbar: Run the action when its button is activated with Enter or Space. (86670)
  • ToggleGroupControl: Animate the indicator’s width along with its position. (86830)
  • UI: Keep popup grid areas out of inline list parts. (86652)
  • Validated controls: Describe validation errors on the interactive element. (86254)
  • useBaseControlProps: Key the ids on the hook, not BaseControl. (86322)
  • useCopyToClipboard: Don’t copy when the element has aria-disabled. (86445)

Block Library

  • Tabs: Fix arrow key navigation when the block has an HTML anchor, the arrow direction on right-to-left sites, panels not opening when an anchor contains special characters, and the block losing its active tab when a tab is removed. (86373, 86429, 86415, 86362)
  • Table of Contents: Keep footnote numbers and inline math LaTeX source out of entries and anchors. (86667, 86043)
  • RSS: Keep item dates correct across daylight saving time, save the feed URL only when it’s applied, and accept URLs without https://. (86639, 86659)
  • Image, Audio, Video: Keep existing media when a Replace upload fails, and keep inline image and Image block links when replacing media. (86290, 79996)
  • Accordion: Use Start and End for the Icon Position labels. (86586)
  • Button: Keep legacy 100% width buttons full width in vertical Buttons blocks. (86536)
  • Categories: Add the RichText identifier to the label. (84522)
  • Comment Template: Fix ordered list numbering inside comment content. (86404)
  • Embed: Show “could not be embedded” when the preview has no HTML, match ReverbNation URLs on legacy.reverbnation.com, and keep the Amazon Kindle title and icon after embedding. (86334, 82757, 87016)
  • File: Strip formatting tags from the PDF preview’s aria-label. (86654)
  • Footnotes: Add the Footnotes block when the Footnote button is used in a locked template. (86728)
  • Grid: Fix an error when transforming from Grid to Canvas in the Grid interactivity experiment. (86227)
  • Image: Keep the lightbox intact when it’s reopened right after closing. (86656)
  • Paragraph: Fix the drop cap not dropping on right-to-left sites. (86464)
  • Post Date: Don’t show “Invalidinvalid A resolution on the bug tracker (and generally common in software development, sometimes also notabug) that indicates the ticket is not a bug, is a support request, or is generally invalid. date” when the date is bound to a value that isn’t a date. (86465)
  • Post Title: Respect a different post supplied by block context. (85495)
  • Separator: Stop the block collapsing to zero size inside Row and Stack layouts. (80308)
  • Social Icons: Keep keyboard focus visible on unlinked icons. (86784)
  • Tag Cloud: Keep the taxonomy and the post counts setting when transforming to or from Terms List. (86962)
  • Time to Read: Count numbers as words on the front end. (86920)
  • DOM: Harden safeHTML for markup rendered in the editor canvas. (86176)

Block Editor

  • Patterns: Add an initial loading spinner to the pattern categories tab, fix the List View drilldown for nested List Views, remove the stale pattern cache dependency, keep a valid selection when finishing editing an unsynced pattern, and stop a failed category rename from reporting success. (70583, 86729, 85198, 86551, 85730)
  • iOSiOS The operating system used on iPhones and iPads.: Fix a tap into a heading leaving the caret in a quote, and the keyboard not opening on a tap into another block after Done. (85809, 86839)
  • Controlled inner blocks: Ignore the inner blocks of an empty controlled block on reset, and keep them out of the parent tree. (86387, 86740)
  • Variation transforms: Keep the block clientId on same-block variation transforms, and keep focus on the variation control afterwards. (86726, 86634)
  • Block Styles: Show the active style variation in forced colors mode. (86378)
  • Wrap __experimentalGetAllowedBlocks in createRegistrySelector. (85851)
  • Block Mover: Fix the clipped focus ring. (86857)
  • Block Lock: Keep templateLock when the inner-blocks switch is disabled. (86580)
  • Grid: Show block toolbars over manual placement grids. (85868)
  • Dimensions: Keep aspect ratio icons sharp next to the Original icon. (86344)
  • Inserter: Count inserts toward the default variation so Group shows in Most used. (86929)
  • Link: Preserve independent HTML attributes when editing inline links. (84841)
  • Writing flow: Leave Tab with Ctrl, Cmd, or Alt to the browser, so tab switching shortcuts work while editing. (87011)
  • Announce keyboard moves only when blocks move. (86785)
  • Bubble editor canvas events to the outer iframeiframe iFrame is an acronym for an inline frame. An iFrame is used inside a webpage to load another HTML document and render it. This HTML document may also contain JavaScript and/or CSS which is loaded at the time when iframe tag is parsed by the user’s browser.. (85263)
  • End a block drag started in the canvas when the drop or dragend event never reaches the canvas. (85462)
  • Default null root client IDs to an empty string in the order reducer. (85760)
  • Hand focus back to the field on a press in every browser. (86549)

Post and Site Editors

  • Site Editor: Fix opening style revisions from the style book, keep the canvas mounted across the mobile breakpoint, and stop the frame snapping to the mobile width when resized with the mouse. (86339, 86660, 86423)
  • ExtensibleExtensible This is the ability to add additional functionality to the code. Plugins extend the WordPress core software. Site Editor: Fix slide animations in RTL languages, and show the values of blocks bound to core sources. (86554, 86896)
  • Date picker: Mark the posts of the month a typed or reset date moves to. (86298)
  • Editor: Remove canvas padding when editing a template from the post editor. (86436)
  • Lists: Fix nested list indentation in the editor for classic themes. (69507)
  • Post publish panel: Make the scheduled message one translatable sentence. (86276)
  • Templates: Keep accented letters in new template and template part slugs. (86774)
  • UI: Use LoadingIndicator in the remaining popup consumers. (86501)
  • i18ni18n Internationalization, or the act of writing and preparing code to be fully translatable into other languages. Also see localization. Often written with a lowercase i so it is not confused with a lowercase L or the numeral 1. Often an acquired skill.: Add translator context to the “Copy error” button label. (85967)

Fields and Admin Screens

  • Core fields: Decode non-Latin slugs, follow the site’s avatarAvatar An avatar is an image or illustration that specifically refers to a character that represents an online user. It’s usually a square box that appears next to the user’s name. settings in author fields, restore the editor.PostFeaturedImage.imageSize filterFilter Filters are one of the two types of Hooks https://codex.wordpress.org/Plugin_API/Hooks. They provide a way for functions to modify data of other functions. They are the counterpart to Actions. Unlike Actions, filters are meant to work in an isolated manner, and should never have side effects such as affecting global variables and output., and restore the previous Publish and Status panel date behaviour. (86359, 86395, 86662, 86065)
  • Core Actions: Remove an extra space in the bulk trashTrash Trash in WordPress is like the Recycle Bin on your PC or Trash in your Macintosh computer. Users with the proper permission level (administrators and editors) have the ability to delete a post, page, and/or comments. When you delete the item, it is moved to the trash folder where it will remain for 30 days. confirmation. (86792)
  • Widgets: Show the Settings button label when “Show button text labels” is on, and save the new block from a paragraph split as a new widget. (86827, 86124)
  • Widget Dashboard: Show the “View options” popover above the Add widget dialog. (86599)
  • Font Library: Show an error when an uploaded font has no family name, handle uploaded fonts without a name or OS/2 table, and trim whitespace from the search input. (86182, 87017, 76871)
  • Block Directory: Stop some error messages showing “Try reloading the page.” twice. (69056)
  • Connectors: Show the filesystem credentials modal on pluginPlugin A plugin is a piece of software containing a group of functions that can be added to a WordPress website. They can extend functionality or add new features to your WordPress websites. WordPress plugins are written in the PHP programming language and integrate seamlessly with WordPress. These can be free in the WordPress.org Plugin Directory https://wordpress.org/plugins/ or can be cost-based plugin from a third-party. install. (78367)

Collaboration

  • Notes: Add a block-level note for bound text, count content attributes when deciding if a block is only text, focus a new note only once it’s placed, keep a note selected when focus returns to its block, keep notes when merging blocks, and accept the array comment status param from WordPress 7.2. (85416, 86669, 86283, 86355, 86193, 85123)
  • Real-time collaboration: Fix hardcoded notifications for custom post types and statuses, moved compatible metaboxes triggering the incompatibility dialog, and HTML tags breaking when concurrent formatting changes overlap. (86214, 86394, 85853)

Design Tools and Global Styles

  • Global Styles: Keep the font size preset size in sync with its fluid maximum when custom fluid values are on, output aspect ratio preset variables in the editor, and put text clip resets on a block’s feature selectors. (86277, 86049, 86246)
  • Block style variations: Generate styles for blocks rendered by a parent block, and show variation colours over a block type text gradient. (85997, 86164)
  • Format library: Keep other inline image attributes when editing the width, and keep the leading + when linking an international phone number. (86332, 86754)
  • Search: Apply Global Styles text decoration to the label and button only. (86632)
  • Style Engine: Add has-background only for a background that fills the block. (86244)

Media

  • Image Editor: Hold a locked aspect ratio through every edit. (86286)
  • Media Upload Modal: Fix a crash while the media total is unresolved. (86237)
  • Send the isolation headerHeader The header of your site is typically the first thing people will experience. The masthead or header art located across the top of your page is part of the look and feel of your website. It can influence a visitor’s opinion about your content and you/ your organization’s brand. It may also look different on different screen sizes. through core when available. (86542)

Interactivity APIAPI An API or Application Programming Interface is a software intermediary that allows programs to interact with each other and share data in limited, clearly defined ways.

  • Interactivity API: Run watch() cleanups and attachTo render callbacks without a directive scope, show the data-wp-html fallback on created elements under Trusted Types, show the new page’s server content in kept data-wp-html elements, and align unsupported data-wp-html bindings with PHPPHP The web scripting language in which WordPress is primarily architected. WordPress requires PHP 7.4 or higher. (86058, 84924, 86416, 86968)
  • Interactivity Router: Keep nested router regions without data-wp-interactive on navigation, and render only the most recently started navigation. (86061, 86515)

Developer Tools

  • Core Data: Correct the useResourcePermissions return shape, fix deleting a single item that is fetched on its own with a query, and rank an exact title match first among tied link suggestions. (84521, 86408, 86327)
  • createInterpolateElement: Ignore tags named after Object.prototype members. (86401)
  • URLURL A specific web address of a website or web page on the Internet, such as a website’s URL www.wordpress.org: Decode percent-encoded characters in getFilename. (86422)
  • wp-build: Fix Plugin Check errors in the generated PHP files, let full-page screens show the admin bar again, and don’t load a wp-admin page on a Core screen with the same screen ID. (86699, 86992, 86995)
  • Scripts: Name the script and script module webpack configurations. (86031)
  • Storybook: Keep the Example Application page header on the toolbar theme. (86692)

AccessibilityAccessibility Accessibility (commonly shortened to a11y) refers to the design of products, devices, services, or environments for people with disabilities. The concept of accessible design ensures both “direct access” (i.e. unassisted) and “indirect access” meaning compatibility with a person’s assistive technology (for example, computer screen readers). (https://en.wikipedia.org/wiki/Accessibility)

  • Font Library: Announce search results to screen readers. (86856)
  • Show the pressed state of Button and Toolbar in forced colors mode. (86393)
  • DatePicker: Use WPDS tokens for calendar styling. (86809)
  • Snackbar: Increase the action link hit target. (86823)
  • Validated controls: Hide validity delegates from assistive technologyAssistive technology Assistive technology is an umbrella term that includes assistive, adaptive, and rehabilitative devices for people with disabilities and also includes the process used in selecting, locating, and using them. Assistive technology promotes greater independence by enabling people to perform tasks that they were formerly unable to accomplish, or had great difficulty accomplishing, by providing enhancements to, or changing methods of interacting with, the technology needed to accomplish such tasks. https://en.wikipedia.org/wiki/Assistive_technology. (86255)
  • Notes: Fix low text contrast in inactive notes. (86750)
  • Block Editor: Keep the revision canvas read-only in preview mode. (84578)

Performance

  • Avatar: Reuse the initials segmenter for the same localeLocale A locale is a combination of language and regional dialect. Usually locales correspond to countries, as is the case with Portuguese (Portugal) and Portuguese (Brazil). Other examples of locales include Canadian English and U.S. English.. (86773)
  • Menu: Keep unchanged context values stable. (86771)
  • Rich Text: Collapse white space with one copy and a plain loopLoop The Loop is PHP code used by WordPress to display posts. Using The Loop, WordPress processes each post to be displayed on the current page, and formats it according to how it matches specified criteria within The Loop tags. Any HTML or PHP code in the Loop will be processed on each post. https://codex.wordpress.org/The_Loop. (86074)
  • Env: Only define phpMyAdmin services when phpMyAdmin is enabled. (86574)

Documentation

  • Storybook: Add a Design System patterns “Introduction” page, an inline Autocomplete-in-a-popover story, Copy to clipboard input examples, a Notice inline link example, and a single nested checkbox group example. (86627, 86520, 86518, 86291, 86588)
  • Storybook: Keep inline Autocomplete and Combobox list items clear of the scrollbar, and fix the color contrast of the Max-Width Wrapper label. (86673, 86475)
  • Storybook: Update the Save & Submit pattern to use wordpress/ui components, with examples for autosave, invalid fields, failed autosaves, and leaving with unsaved changes. (86725)
  • Design System MCP: Make color role consistency explicit, and include Page component documentation in the component manifest. (86724, 86615)
  • Add a changelog entry for multi-direction grid movers. (86862)
  • Build: Include “title” documentation in route configuration. (86838)
  • Calendar: Document numberOfMonths limits. (86261)
  • Document Colima as a Docker runtime for wp-env. (86087)
  • Image Editor: Tidy the documentation and the comments on exported code. (86705)
  • Real-time collaboration: Document what changes under undo. (86623)
  • Schemas: Add missing properties to the theme.jsonJSON JSON, or JavaScript Object Notation, is a minimal, readable format for structuring data. It is used primarily to transmit data between a server and web application, as an alternative to XML. and block.json schemas. (86479)

Code Quality

Components

  • Replace Sass variables with design tokens: remove unused theme variables, use tokens for font families and borders, use base-styles elevation variables for shadows, and build UI Text variants from typography mixins. (86575, 86761, 86577, 86798, 86636)
  • Update Ariakit ReactReact React is a JavaScript library that makes it easy to reason about, construct, and maintain stateless and stateful user interfaces. https://reactjs.org to 0.4.43, DayPicker to 10.0.2, and Vite to 8.3.8. (86887, 86886, 86888)
  • CustomSelectControl: Remove the unused V2 API and align recommendations. (86663)
  • Restyle wp-admin notices from design system tokens (experiment). (83072)
  • Stylelint: Clarify the components color variable warning. (86759)
  • Font Library: Add .d.ts files to the vendored library. (86354)
  • Modal: Remove unused styles for the icon container. (86942)

Blocks and Editors

  • Block supports: Add PHP helpers that return classes and styles for Background, Border, Colour, Shadow, Spacing, and every support at once. (84209, 84207, 84206, 84205, 84208, 86337)
  • Gallery: Migrate presentation controls to UI SelectControl, move the Settings panel into its own component, share figure and caption between static and dynamic modes, simplify inner image handlers, track new images in a ref, and switch layout variations with transforms. (86618, 86768, 86787, 86767, 86648, 86633)
  • Notes: Remove unused block spotlight state and an unneeded blockEditorStore unlock, and move caret change rules into a tested helper. (81538, 86296, 86364)
  • Remove the unused __experimentalSelector from Paragraph, Search, and Accordion Heading, and the unused hasAllowedPatterns selector. (86481, 86689)
  • Accordion: Only set the heading level on Accordion Heading blocks. (86571)
  • Cover: Remove the polyfill-era data-object-fit attributes from saved markup. (86895)
  • Tab List: Remove the unused tabIndex context from the tab buttons. (86432)
  • Block Parser: Match updates from Core’s default parser. (86078)
  • Block Editor: Correct store test fixtures and action arguments, forward UnitControl props in TextIndentControl, insert hooked blocks without blockHooks from the Plugins panel, keep lock and visibility toolbar buttons with state, pass the pattern name in insertion metaMeta Meta is a term that refers to the inside workings of a group. For us, this is the team that works on internal WordPress sites like WordCamp Central and Make WordPress., and read the typed ungroup transform in isUngroupable. (85165, 86832, 86452, 86587, 86745, 86748)
  • Block Editor: Add received blocks to the block order. (85818)
  • Global Styles: Migrate state menus to WordPress UI. (86821)
  • Global Styles: Prevent a false iframe warning from custom properties. (77340)
  • Style Book: Remove a legacy accent color reference from iframe styles. (86517)

Media

  • Image Editor: Correct what getSourceRegion claims, describe the edit as one record, and use mapped crop instructions for the resize tooltip. (86487, 86630, 86287)
  • Image Cropper: Deprecate the package in favour of the image editor. (86417)

Icons

  • Normalize SVG icons on commit and validate them in the build, and add an icon library code owner. (86657, 86505)

PHP and Server APIs

  • PHPStan: Fix errors in the WordPress 7.1 and 7.2 compat shims, Theme JSON and Duotone return types, block argument types, and small errors in several blocks; resolve always-true type checks and the nav menus theme opt-in baseline errors; fix Style Engine and Navigation docblocks; ignore return.void errors for action callbacks and false positives for WP_REST_Request offset writes; and add types for style definitions. (86100, 86103, 86095, 86101, 86104, 86469, 86105, 86108, 86284, 86468)
  • Template Part: Fix the boolean operator in the description fallback. (86102)
  • Collaboration: Return a WP_REST_Response from the sync save handler. (86098)
  • Global Styles: Accept a post object in the REST controller’s prepare_links(). (86470)
  • Use the null coalescing assignment operator. (86119)

TypeScript

  • Convert tests to TypeScript in Data (combineReducers, keyedReducer, controls, persistence, redux-store core and metadata, registry and registry selectors, private APIs, useDispatch, useSelect, useSuspenseSelect, withDispatch, withSelect), Core Data sync and RTC, Rich Text, and Style Engine. (86156, 86616, 86846, 86847, 86152, 86621, 86931, 86174, 86730, 85205, 86973, 86975, 86987, 86988, 86989, 86994)
  • Convert media-upload to TypeScript, and add missing styles to the Style type. (85854, 85097)
  • Compose: Preserve the value type in useStateWithHistory, and add the editor callback props to BlockEditProps. (85090, 86993)

Tools

Testing

  • Review routing: Add an internal package and a diagnostic workflow, request reviews automatically, support multiple reviewers, rename the team field to reviewer, and refine the design system rules. (86325, 86449, 86677, 86682, 86611, 86609)
  • Use strict assertions in block templates registry, navigation link and submenu render, navigation link variation builder, style engine CSSCSS Cascading Style Sheets. rules store, and theme.json CSS variables tests, and assertEqualHTML in Navigation block renderer tests. (86144, 85539, 85542, 85432, 83777, 86146, 86080)
  • Fix flaky tests: the text gradient contrast warning, tooltip custom delay, FontSizePicker option visibility and focus, image caption heading selection, and manual clock control in browser delay tests. (86403, 86312, 86889, 86566, 86524, 87013)
  • Make test setup reliable: switch the theme before other setup in performance and end-to-end tests, delete pages created by Navigation focus tests, and stop reusing stale keep-alive sockets in RequestUtils. (86343, 86278, 86716, 86350)
  • Browsers: Run WebKit headless on Linux, split the Chromium suite into two CI shards, restore writing flow tests in Firefox, turn off iOS simulator keyboard suggestions, and update Playwright to 1.65.0. (86610, 86533, 86721, 86570, 86531)
  • Add tests for useConstrainedTabbing, multi-block Rich Text tabindex, colliding component names with a WC* alias, TrustedHTML in the Interactivity API, the router-html-server context case, and Tabs label synchronization. (86299, 78073, 85952, 86555, 86511, 80192)
  • Agent evals: Add end-to-end failure investigation scenarios. (86556)
  • Extend the TypeScript requirement to all internal packages. (85774)
  • Avoid passing an object when invoking static methods via reflection. (86329)

Build Tooling

  • Update Storybook to 10.6.6, Vite to 8.3.6, Vitest to 5.1.0, and PostCSS to 8.5.33. (86507, 86500, 86509, 86899)
  • PHPStan: Introduce phpstan-strict-rules, and update to 2.3.5 with a –fix recommendation for the baseline. (86460, 86333)
  • CI: Check workspace peer dependency version ranges, move the end-to-end trunktrunk A directory in Subversion containing the latest development code in preparation for the next major release cycle. If you are running "trunk", then you are on the latest revision. check into the test workspace and the status check script into the monorepo tools workspace, and stop workflow jobs running within forks on push. (85386, 86540, 86523, 85968)
  • ESLint: Add Menu and Spinner to the use-recommended-components deny list. (86324, 86352)
  • Build: Copy a changed PHP file on its own in watch mode, and widen wordpress/theme peer ranges to include 5.x. (86271, 86720)
  • Replace the dev-ready file with an on-ready script flag. (85866)
  • Preserve the npm install policy in Vitest consumers. (86537)
  • Theme: Parse CSS token references. (83766)

First-time contributors

The following PRs were merged by first-time contributors:

  • @DANNER5472: Global Styles: Keep the font size preset size in sync with its fluid maximum. (86277)
  • @Deepak-Bhojwani: Post Date: Don’t show “Invalid date” when the date is bound to a value that isn’t a date. (86465)
  • @dhrupo: Paragraph: Fix drop cap not dropping on right-to-left sites. (86464)
  • @hambai: Format Library: Split “Highlight” into “Text color” and “Highlight color”. (85296)
  • @himanshu-mahendra-jain: Snackbar: Run the action when its button is activated with Enter or Space. (86670)
  • @IamYashKapoor: Widgets: Save the new block from a paragraph split as a new widget. (86124)
  • @karthikeya-io: Lists: Fix nested list indentation in the editor for classic themes. (69507)
  • @kmlyz: Comment Template: Fix ordered list numbering inside comment content. (86404)
  • @mattcowan: Block Editor: Keep the revision canvas read-only in preview mode. (84578)
  • @mdtanjid0: Categories: Add the RichText identifier to the label. (84522)
  • @Mukulsingh27: Block Directory: Stop some error messages showing “Try reloading the page.” twice. (69056)
  • @padams: DataViews: Query filters on taxonomy fields by the taxonomy. (86458)
  • @Pathan-Amaankhan: Storybook: Fix the color contrast of the Max-Width Wrapper label. (86475)
  • @rejaulalomkhan: Tests: Use strict assertions in navigation submenu render tests. (85542)
  • @robelsust: NumberControl: Preserve fractional values on commit without rounding to step. (85761)
  • @umerwebdev: Modal: Remove unused styles for the icon container. (86942)
  • @umeshnevase: URL: Decode percent-encoded characters in getFilename. (86422)
  • @vladolaru: Env: Only define phpMyAdmin services when phpMyAdmin is enabled. (86574)
  • @yaman-694: Theme: Carry near-gray seed tints into generated neutral tokens. (86052)

Contributors

The following contributors merged PRs in this release:

@00kaku @aaronrobertshaw @adamsilverstein @aduth @alecgeatches @andrewserong @annezazu @ariel-maidana @cbravobernal @CGastrell @ciampo @coderGtm @DANNER5472 @Deepak-Bhojwani @desrosj @dhrupo @dhruvikpatel18 @dmsnell @dognose24 @draganescu @dsas @ellatrix @fushar @hambai @haritpanchal @hbhalodia @himanshu-mahendra-jain @himanshupathak95 @huzaifaalmesbah @IamYashKapoor @im3dabasia @jameskoster @jasmussen @jeryj @jorgefilipecosta @jsnajdr @karthikeya-io @kmlyz @kushagra-goyal-14 @lazerg @lucatume @luisherranz @Mamaduka @mattcowan @mattmiklic @mdtanjid0 @mikachan @mirka @mtias @Mukulsingh27 @Mustafabharmal @Nikschavan @noruzzamans @ntsekouras @oandregal @obenland @padams @Pathan-Amaankhan @Pranjal1423 @R1shabh-Gupta @ramonjd @rejaulalomkhan @retrofox @robelsust @SainathPoojary @salvatorecorsi @sanketio @saranshsinhaa @sarthaknagoshe2002 @shail-mehta @shreyasikhar @simison @SirLouen @Swanand01 @t-hamano @talldan @tellthemachines @torounit @umerwebdev @umeshnevase @USERSATOSHI @vladolaru @westonruter @yaman-694 @yashjawale @youknowriad

Kudos to all the contributors who helped with this release! 🎉

#block-editor, #core-editor, #gutenberg, #gutenberg-new

Revision diffs now stop before they time out

Comparing two revisionsRevisions The WordPress revisions system stores a record of each saved draft or published update. The revision system allows you to see what changes were made in each revision by dragging a slider (or using the Next/Previous buttons). The display indicates what has changed in each revision. of a very large post could take minutes or run out of memory. A one-line 200 KB table took 48 seconds, and a PO file with every line changed crashed the page. WordPress 7.3 will add three limits to the revisions diff, so these cases render in a fraction of a second.

When a change goes past a limit, the diff still shows every line. It skips only the word-level highlighting, or shows the removed lines followed by the added lines instead of side-by-side pairs.

ArgumentDefaultWhat happens past it
max_word_diff_line_length10000A changed line longer than this many bytes is shown without word highlighting.
max_changed_lines5000A changed blockBlock Block is the abstract term used to describe units of markup that, composed together, form the content or layout of a webpage using the WordPress editor. The idea combines concepts of what in the past may have achieved with shortcodes, custom HTML, and embed discovery into a single consistent API and user experience. with more old and new lines than this shows its removed lines, then its added lines.
max_changed_line_pairs250000A changed block with more old-by-new line pairs than this (about 500 lines on each side) does the same.

Raising the limits

Pass the arguments to wp_text_diff():

$diff = wp_text_diff( $old, $new, array( 'max_changed_line_pairs' => 1000000 ) );

On the revisions screen, use the revision_text_diff_options filterFilter Filters are one of the two types of Hooks https://codex.wordpress.org/Plugin_API/Hooks. They provide a way for functions to modify data of other functions. They are the counterpart to Actions. Unlike Actions, filters are meant to work in an isolated manner, and should never have side effects such as affecting global variables and output.:

add_filter( 'revision_text_diff_options', function ( $args ) {
	$args['max_word_diff_line_length'] = 50000;
	return $args;
} );

Higher limits cost time and memory. One thousand changed lines on each side takes about 8 seconds and 131 MB for a single changed block.

This landed in trunktrunk A directory in Subversion containing the latest development code in preparation for the next major release cycle. If you are running "trunk", then you are on the latest revision. in r65790 (#66095) and will ship in WordPress 7.3.

Props to @iverok, @justjack1, @arkaprabhachowdhury, @adamsilverstein, @dmsnell, @josephscott and @mukesh27.

#dev-notes

Dev Chat Agenda – November 25, 2026

The next WordPress Developers Chat will take place on Wednesday, November 25, 2026, at 15:00 UTC in the core channel on Make WordPress Slack.

The live meeting focuses on upcoming releases and CoreCore Core is the set of software required to run WordPress. The Core Development Team builds WordPress. development, with time for discussions and open floor.

If you have requests for help with a ticketticket Created for both bug reports and feature development on the bug tracker. or another discussion topic, please post details in the comments section at the end of this agenda, or bring it up in Dev Chat during open floor.

Announcements 📢

WordPress 7.2

General

Discussions 💬

The discussion section of the agenda is for discussing important topics affecting the upcoming release or larger initiatives that impact the Core Team. To nominate a topic for discussion, please leave a comment on this agenda with a summary of the topic, any relevant links that will help people get context for the discussion, and what kind of feedback you are looking for from others participating in the discussion.

Open floor  🎙️

Any topic can be raised for discussion in the comments, as well as requests for assistance on tickets. Tickets in the milestone for the next major or maintenance release will be prioritized.

Please include details of tickets / PRs and the links in the comments, and indicate whether you intend to be available during the meeting for discussion or will be async.

Props to @davidbaumwald for the pre-publish review!

#7-2, #agenda, #core, #dev-chat

Core abilities for content, users, and settings in WordPress 7.2

WordPress 6.9 introduced the Abilities APIAPI An API or Application Programming Interface is a software intermediary that allows programs to interact with each other and share data in limited, clearly defined ways. with three abilities that return information about the site, the current user, and the environment. In WordPress 7.2 we continued that work and added three abilities that read content, users, and settings:

These abilities expand the baseline of site functionality made available through the Abilities API, which is part of the plan to make WordPress ready for agents, described in WordPress for the Agentic Web. Additional read & write abilities are planned for future releases, but let’s take a look at how developers can interact with this trio of read-only abilities in WordPress 7.2.

Querying content and users

core/content-query and core/users-query take the same input: where has the filters, fields the fields to return, and pagination the page and per_page.

$result = wp_get_ability( 'core/content-query' )->execute(
    array(
        'where'  => array(
            'type'   => 'post',
            'status' => array( 'draft' ),
        ),
        'fields' => array( 'title', 'date', 'author' ),
    )
);

$result is a WP_Error if the input is not valid or the user cannot run the query. Otherwise it has the items and the totals:

{
  "items": [
    {
      "id": 123,
      "date": { "site": "2026-10-21T09:30:00+01:00", "gmt": "2026-10-21T08:30:00+00:00" },
      "title": { "raw": "Launch notes", "rendered": "Launch notes" },
      "author": { "id": 42, "name": "Maya Carter", "slug": "mcarter" }
    }
  ],
  "pagination": { "total": 1, "total_pages": 1 }
}

Some details:

  • For content, where.type is required. The other filters are ids, slugs, status, author, and parent. Users can be filtered by ids, slugs, usernames, roles, and has_published_posts.
  • Filters are exact matches, there is no text search.
  • Without status, only published posts are returned, unless the query lists ids or slugs.
  • fields is optional and a few fields are returned by default. id is always included.
  • per_page is 10 by default and can go up to 100.
  • Some fields depend on the user. The raw title, excerptExcerpt An excerpt is the description of the blog post or page that will by default show on the blog archive page, in search results (SERPs), and on social media. With an SEO plugin, the excerpt may also be in that plugin’s metabox., and content are only returned for posts the user can edit. Fields like email and roles are only returned for the user’s own account and for users they can edit.

Reading settings

core/settings-get returns the settings as name and value pairs, and requires the manage_options capabilitycapability A capability is permission to perform one or more types of task. Checking if a user has a capability is performed by the current_user_can function. Each user of a WordPress site might have some permissions but not others, depending on their role. For example, users who have the Author role usually have permission to edit their own posts (the “edit_posts” capability), but not permission to edit other users’ posts (the “edit_others_posts” capability).. fields asks for specific settings and group for the settings of a group (general, writing, reading, or discussion). With no input, all the exposed settings are returned.

$settings = wp_get_ability( 'core/settings-get' )->execute(
    array( 'fields' => array( 'title', 'timezone' ) )
);
// array( 'title' => 'Acme Robotics', 'timezone' => 'Europe/Lisbon' )

Exposing your own post types and settings

By default only posts, pages, and a set of coreCore Core is the set of software required to run WordPress. The Core Development Team builds WordPress. settings (site title, timezone, posts per page, and so on) are exposed. Custom post types and pluginPlugin A plugin is a piece of software containing a group of functions that can be added to a WordPress website. They can extend functionality or add new features to your WordPress websites. WordPress plugins are written in the PHP programming language and integrate seamlessly with WordPress. These can be free in the WordPress.org Plugin Directory https://wordpress.org/plugins/ or can be cost-based plugin from a third-party. settings need to opt in with the new show_in_abilities argument added to register_post_type() and register_setting() in WordPress 7.2:

add_action(
    'init',
    static function () {
        register_post_type(
            'book',
            array(
                'label'             => __( 'Books', 'my-plugin' ),
                'public'            => true,
                'show_in_abilities' => true,
            )
        );

        register_setting(
            'my_plugin',
            'my_plugin_items_per_page',
            array(
                'type'              => 'integer',
                'default'           => 12,
                'show_in_abilities' => true,
            )
        );
    }
);

show_in_abilities is false by default and has to be set explicitly. It is not inherited from public or show_in_rest. For post types it is a boolean. For settings it can be true, which uses the name and schema from show_in_rest when they exist, or an array with its own name and schema.

The exposed post types and settings are read when the abilities are registered, so register them on init. A setting that is only registered on admin_init or rest_api_init may not be available.

Don’t enable show_in_abilities for settings that store secrets, like API keys.

Calling the abilities from JavaScriptJavaScript JavaScript or JS is an object-oriented computer programming language commonly used to create interactive effects within web browsers. WordPress makes extensive use of JS for a better user experience. While PHP is executed on the server, JS executes within a user’s browser. https://www.javascript.com

On the client the abilities run with executeAbility, once @wordpress/core-abilities has loaded them from the server:

import { ready } from '@wordpress/core-abilities';
import { executeAbility } from '@wordpress/abilities';

await ready;

const { items } = await executeAbility( 'core/users-query', {
    where: { roles: [ 'editor' ] },
    fields: [ 'name', 'slug' ],
} );
// [ { id: 42, name: 'Maya Carter', slug: 'mcarter' } ]

The script module depends on both @wordpress/abilities to provide client-side Abilities API infrastructure plus @wordpress/core-abilities to provide the abilities themselves. The call is a GET request to /wp-abilities/v1/abilities/core/users-query/run, so the REST APIREST API The REST API is an acronym for the RESTful Application Program Interface (API) that uses HTTP requests to GET, PUT, POST and DELETE data. It is how the front end of an application (think “phone app” or “website”) can communicate with the data store (think “database” or “file system”) https://developer.wordpress.org/rest-api/ can also be used directly. The Client-Side Abilities API dev note has more details.

Using the abilities with the AI Client

The using_abilities() method on the AI Client’s Prompt Builder passes the abilities to a model as tools. The function below uses them to answer questions about the site. The loopLoop The Loop is PHP code used by WordPress to display posts. Using The Loop, WordPress processes each post to be displayed on the current page, and formats it according to how it matches specified criteria within The Loop tags. Any HTML or PHP code in the Loop will be processed on each post. https://codex.wordpress.org/The_Loop runs while the model keeps asking for abilities, which we run with WP_AI_Client_Ability_Function_Resolver. When it stops asking, the result has the answer.

use WordPress\AiClient\Messages\DTO\MessagePart;
use WordPress\AiClient\Messages\DTO\UserMessage;

function my_plugin_ask_site( string $question ) {
    $abilities = array( 'core/content-query', 'core/users-query', 'core/settings-get' );
    $resolver  = new WP_AI_Client_Ability_Function_Resolver( ...$abilities );
    $messages  = array( new UserMessage( array( new MessagePart( $question ) ) ) );

    do {
        $result = wp_ai_client_prompt( $messages )
            ->using_system_instruction( 'Answer questions about this site using the abilities.' )
            ->using_abilities( ...$abilities )
            ->generate_text_result();

        if ( is_wp_error( $result ) ) {
            return $result;
        }

        // Run the abilities the model asked for and add the results to the conversation.
        $ran_abilities = false;
        foreach ( $result->toMessages() as $message ) {
            $messages[] = $message;
            if ( $resolver->has_ability_calls( $message ) ) {
                $messages[]    = $resolver->execute_abilities( $message );
                $ran_abilities = true;
            }
        }
    } while ( $ran_abilities );

    return $result->toText();
}

$answer = my_plugin_ask_site( 'What is the timezone of this site, and who wrote the latest post?' );

The example above leverages the AI provider configured in Settings > Connectors, and the model only gets the data the current user can see. This loop runs until the model stops asking for abilities, but in production code you’ll also want to limit how many times the loop can run.

What’s next

More abilities are being worked on for WordPress 7.3. This tracking issue in the new WordPress/abilities repo is the place to follow that work and to help. The proposed list of abilities to be added next and their shapes can be found in this pull request.

Props to @gziolo, @justlevine, and @nikskyverge for reviewing and providing feedback on this post.

#7-2, #dev-notes, #dev-notes-7-2

Extending the Inspector and Site Editor screens in WordPress 7.2

WordPress 7.2 introduces two new APIs to extend the screens powered by DataViews and DataForm:

  • The Entity Fields APIAPI An API or Application Programming Interface is a software intermediary that allows programs to interact with each other and share data in limited, clearly defined ways. registers, updates, and removes the fields of an entity (e.g., a post type).
  • The Entity Actions API registers and removes the actions of an entity.

Fields and actions are registered once and show up everywhere the entity is used: the Site Editor screens (e.g. Pages, Templates), the Quick Edit form, and the Post Editor Inspector, which is now built with DataForm.

Both APIs follow the same pattern. Server side, a pluginPlugin A plugin is a piece of software containing a group of functions that can be added to a WordPress website. They can extend functionality or add new features to your WordPress websites. WordPress plugins are written in the PHP programming language and integrate seamlessly with WordPress. These can be free in the WordPress.org Plugin Directory https://wordpress.org/plugins/ or can be cost-based plugin from a third-party. declares the field or action with PHPPHP The web scripting language in which WordPress is primarily architected. WordPress requires PHP 7.4 or higher, which describes its serializable parts (id, label, type, etc.). Client side, a script module provides the JavaScriptJavaScript JavaScript or JS is an object-oriented computer programming language commonly used to create interactive effects within web browsers. WordPress makes extensive use of JS for a better user experience. While PHP is executed on the server, JS executes within a user’s browser. https://www.javascript.com parts (how to read and write a value, what an action does, etc.), keyed by the field or action id.

APIHookFunctions
Fieldswp_entity_fields_api_initwp_register_entity_fields(), wp_update_entity_fields(), wp_unregister_entity_fields(), wp_get_registered_entity_fields()
Actionswp_entity_actions_api_initwp_register_entity_actions(), wp_unregister_entity_actions()

Example: registering a new field

This example adds a “Subtitle” field to pages, stored in the demo_subtitle post metaMeta Meta is a term that refers to the inside workings of a group. For us, this is the team that works on internal WordPress sites like WordCamp Central and Make WordPress.. First, register the meta and the script module, then the field itself:

add_action( 'init', function () {
	register_post_meta( 'page', 'demo_subtitle', array(
		'type'              => 'string',
		'single'            => true,
		'default'           => '',
		'show_in_rest'      => true,
		'sanitize_callback' => 'sanitize_text_field',
	) );

	wp_register_script_module( 'demo-page-field', plugins_url( 'fields.js', __FILE__ ) );
} );

add_action( 'wp_entity_fields_api_init', function () {
	wp_register_entity_fields(
		'demo-page-field', // Source: who registers the fields.
		'postType',        // Entity kind.
		'page',            // Entity name.
		array(
			array(
				'id'    => 'demo_subtitle',
				'type'  => 'text',
				'label' => __( 'Subtitle', 'demo-page-field' ),
			),
		),
		'demo-page-field'  // Script module with the JavaScript parts.
	);
} );

The script module default-exports the JavaScript parts of each field, keyed by field id. As the value lives in post meta, it’s read from and written to meta:

// fields.js
export default {
	demo_subtitle: {
		getValue: ( { item } ) => item.meta?.demo_subtitle ?? '',
		setValue: ( { value } ) => ( { meta: { demo_subtitle: value } } ),
	},
};

A registered field is available, but not visible by default. To display it, use the view config filter introduced in WordPress 7.1. This one adds the field to the Pages screen and to the form, which powers both the Quick Edit and the page editor inspector:

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
	);
} );

Example: updating and removing fields

The fields provided by WordPress can be changed or removed as well. For example, the “Time to read” row of the inspector is the post-content-info field. This code removes it for every post type except posts and pages:

add_action( 'wp_entity_fields_api_init', function () {
	foreach ( get_post_types( array( 'show_in_rest' => true ) ) as $post_type ) {
		if ( ! in_array( $post_type, array( 'post', 'page' ), true ) ) {
			wp_unregister_entity_fields( 'postType', $post_type, array( 'post-content-info' ) );
		}
	}
} );

To tweak a field instead of removing it, wp_update_entity_fields() hands any of its JavaScript parts to a new script module, keeping the rest as is. This is how the AI plugin adds a “Generate excerptExcerpt An excerpt is the description of the blog post or page that will by default show on the blog archive page, in search results (SERPs), and on social media. With an SEO plugin, the excerpt may also be in that plugin’s metabox.” button to the coreCore Core is the set of software required to run WordPress. The Core Development Team builds WordPress. excerpt field:

add_action( 'wp_entity_fields_api_init', function () {
	wp_update_entity_fields(
		'ai',
		'postType',
		'post',
		array( array( 'id' => 'excerpt' ) ),
		'@ai/excerpt-field'
	);
} );

// @ai/excerpt-field: label, placeholder, etc. stay core's.
export default {
	excerpt: {
		render: ExcerptSummary, // The summary displayed in the inspector.
		Edit: ExcerptEdit,      // The control, with the generate button.
	},
};

Example: registering and removing actions

Actions work the same way. This example adds a “Copy link” action to pages and removes the core “Order…” action:

add_action( 'init', function () {
	wp_register_script_module( 'demo-page-action', plugins_url( 'actions.js', __FILE__ ) );
} );

add_action( 'wp_entity_actions_api_init', function () {
	wp_register_entity_actions(
		'demo-page-action',
		'postType',
		'page',
		array(
			array(
				'id'           => 'demo-copy-link',
				'label'        => __( 'Copy link', 'demo-page-action' ),
				'supportsBulk' => true,
			),
		),
		'demo-page-action'
	);

	wp_unregister_entity_actions( 'postType', 'page', array( 'order-pages' ) );
} );

// actions.js
export default {
	'demo-copy-link': {
		isEligible: ( item ) => item.status !== 'trash',
		callback: async ( items, { registry } ) => {
			await window.navigator.clipboard.writeText(
				items.map( ( item ) => item.link ).join( '\n' )
			);
			registry
				.dispatch( 'core/notices' )
				.createSuccessNotice( 'Link copied.', { type: 'snackbar' } );
		},
	},
};

Actions show in the Site Editor screens and the editor inspector’s actions menu. Set 'context' => 'list' to show an action only in the DataViews lists, and provide a RenderModal component instead of a callback to open a modal (titled with the modalHeader property).

Coda

This work has been part of adding extensibility points to surfaces that use DataViews and DataForm, and follows suit on configuring the views and form added in WordPress 7.1. It has been tracked at #74865 and #83537, as tasks we’ve implemented in the WordPress 7.2 cycle.

Props to @oandregal @jorgefilipecosta for implementation and pre-publish review.

#dev-notes #dev-notes-7-2 #7-2

The editor inspector is now built with DataForm

From WordPress 7.2, the editor inspector is built with DataForm, in both the post editor and the site editor. Each setting is a field, the same fields that Quick Edit uses, and they are read from the server for each post type. Extenders can remove or update fields, or add their own through the Fields APIAPI An API or Application Programming Interface is a software intermediary that allows programs to interact with each other and share data in limited, clearly defined ways., see the Fields API dev note.

This way the inspector and Quick Edit look and behave the same, and plugins get an API that works on both screens, instead of having to manipulate the DOM to add or hide settings. The change went through a call for testing in September.

What keeps working

  • PluginDocumentSettingPanel and PluginPostStatusInfo fills.
  • removeEditorPanel and the panel switches in Preferences still hide the matching settings.
  • The editor.PostFeaturedImage, editor.PostFeaturedImage.imageSize and editor.MediaUpload (featured imageFeatured image A featured image is the main image used on your blog archive page and is pulled when the post or page is shared on social media. The image can be used to display in widget areas on your site or in a summary list of posts. picker) filters apply to the featured image field in the post editor, not in Quick Edit.

What changes

  • The wp.editPost.__experimentalPluginPostExcerpt slot, deprecated since WordPress 6.6, is not rendered anymore, because the excerptExcerpt An excerpt is the description of the blog post or page that will by default show on the blog archive page, in search results (SERPs), and on social media. With an SEO plugin, the excerpt may also be in that plugin’s metabox. is now a field and not a panel. Extenders that use it can move their UIUI User interface to a PluginDocumentSettingPanel or a custom fieldCustom Field Custom Field, also referred to as post meta, is a feature in WordPress. It allows users to add additional information when writing a post, eg contributors’ names, auth. WordPress stores this information as metadata. Users can display this meta data by using template tags in their WordPress themes..
  • Customizations that target the old panels’ CSSCSS Cascading Style Sheets. class names or markup don’t apply to the new inspector.

For more details, see #76076.

Props to @ntsekouras, @oandregal, @jorgefilipecosta for the implementation.

Props to @oandregal for copy review.

#7-2, #dev-notes, #dev-notes-7-2