The WordPress coreCoreCore is the set of software required to run WordPress. The Core Development Team builds WordPress. development team builds WordPress! Follow this site for general updates, status reports, and the occasional code debate. There’s lots of ways to contribute:
Found a bugbugA 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.?Create a ticket in the bug tracker.
“What’s new in GutenbergGutenbergThe 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.
This release makes Grid layouts far more flexible, with precise placement, blockBlockBlock 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 revisionsRevisionsThe 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, bugbugA 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.
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.
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.
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 sidebarSidebarA 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.
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)
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 widgetWidgetA 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 HTMLHTMLHyperText 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)
UIUIUser 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 migrationMigrationMoving 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)
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 excerptExcerptAn 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)
Font Library: Migrate the CategoryCategoryThe '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)
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 coreCoreCore 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)
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 “InvalidinvalidA 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)
iOSiOSThe 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 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 iframeiframeiFrame 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)
ExtensibleExtensibleThis 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)
i18ni18nInternationalization, 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 avatarAvatarAn 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 filterFilterFilters 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 trashTrashTrash 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 pluginPluginA 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 headerHeaderThe 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 APIAPIAn 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 PHPPHPThe 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)
URLURLA 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)
AccessibilityAccessibilityAccessibility (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 technologyAssistive 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 localeLocaleA 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)
Rich Text: Collapse white space with one copy and a plain loopLoopThe 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)
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.jsonJSONJSON, 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)
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 metaMetaMeta 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 CSSCSSCascading 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)
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 trunktrunkA 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)
Comparing two revisionsRevisionsThe 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.
Argument
Default
What happens past it
max_word_diff_line_length
10000
A changed line longer than this many bytes is shown without word highlighting.
max_changed_lines
5000
A changed blockBlockBlock 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_pairs
250000
A changed block with more old-by-new line pairs than this (about 500 lines on each side) does the same.
On the revisions screen, use the revision_text_diff_optionsfilterFilterFilters 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.:
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 trunktrunkA 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.
The live meeting focuses on upcoming releases and CoreCoreCore 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 ticketticketCreated 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.
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.
WordPress 6.9 introduced the Abilities APIAPIAn 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.
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, excerptExcerptAn 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_optionscapabilitycapabilityA 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.
By default only posts, pages, and a set of coreCoreCore 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 pluginPluginA 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:
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 JavaScriptJavaScriptJavaScript 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:
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 APIThe 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 loopLoopThe 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.
WordPress 7.2 introduces two new APIs to extend the screens powered by DataViews and DataForm:
The Entity Fields APIAPIAn 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 pluginPluginA 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 PHPPHPThe 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 JavaScriptJavaScriptJavaScript 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.
This example adds a “Subtitle” field to pages, stored in the demo_subtitle post metaMetaMeta 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:
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:
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:
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:
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 excerptExcerptAn 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 coreCoreCore is the set of software required to run WordPress. The Core Development Team builds WordPress.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:
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).
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 APIAPIAn 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.
BeforeAfter
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 imageA 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 excerptExcerptAn 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 UIUIUser interface to a PluginDocumentSettingPanel or a custom fieldCustom FieldCustom 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’ CSSCSSCascading Style Sheets. class names or markup don’t apply to the new inspector.
PHP 8.6 was released on November 19, 2026. WordPress contributors have been busy examining what has changed in recent weeks and what it means for the WordPress 7.2 release. As of the publishing of this post, all known PHPPHPThe web scripting language in which WordPress is primarily architected. WordPress requires PHP 7.4 or higher 8.6 compatibility issues in WordPress CoreCoreCore is the set of software required to run WordPress. The Core Development Team builds WordPress. have been resolved.
WordPress 7.2 is fully compatible with PHP 8.6 as of the Beta 5 release.
WordPress 7.2 does not change the minimum supported PHP version (7.4) More details on this can be found on TracTracAn open source project by Edgewall Software that serves as a bug tracker and project management tool for WordPress.: #64494. As a reminder, the “betaBetaA pre-release of software that is given out to a large group of users to trial under real conditions. Beta versions have gone through alpha testing in-house and are generally fairly close in look, feel and function to the final product; however, design changes often occur as part of the process. support” label (previously applied to new PHP 8.x versions) has been retired.
While all known incompatibilities with PHP 8.6 in WordPress itself have been addressed and every change to the code base runs the full test suite against PHP 8.6, you should confirm that your sites, plugins, and themes are also compatible with new versions of PHP.
Here’s a breakdown of the changes in PHP 8.6 impacting WordPress that pluginPluginA 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 theme developers should be aware of.
New file type for TrueType fonts
PHP 8.6 updates its bundled copy of libmagic to 5.48, which changes how .ttf font files are identified.
In previous releases, PHP returned a type value of font/sfnt for .ttf files. In PHP 8.6, this has changed and font/ttf will be used for valid TTF files instead.
Note: While PHP 8.6 is the first release including this change, it is possible for older versions of PHP to also return font/ttf for TrueType font files for PHP builds that link the system installed libmagic.
To account for this while remaining backwards compatible, WordPress will now accept both MIME types for .ttf files. To be consistent, WP_Font_Utils::get_allowed_font_mime_types() has also been updated to return font/ttf for TrueType fonts.
Action required: any code that explicitly checks for the font/sfnt MIME type should be modified to also accept font/ttf.
More details can be found on the relevant Trac ticketticketCreated for both bug reports and feature development on the bug tracker. (#66419) and changeset (r65319).
Custom stream wrappers must implement stream_flush()
In PHP 8.6, fclose(), file_put_contents() and copy() return false when flushing or closing a stream fails (php-src c07cc85). PHP treats a userspace stream wrapper with no stream_flush() method as a failed flush, even when every byte was written.
Because of this, saving an image to a stream wrapper that does not implement stream_flush() fails on PHP 8.6 with an image_save_error, even when the data was written. Saves to the local filesystem are not affected. The Imagick editor already behaved this way before 7.2.
WordPress 7.2 now checks these return values when the GD image editor saves to a stream. WP_Image_Editor::make_image() now writes with file_put_contents() and returns false on failure, matching the Imagick editor. Before this, a failed upload to remote storage (for example, an S3 wrapper that sends data on flush) was reported as a successful save.
This is not limited to images. Any fclose(), file_put_contents() or copy() call a plugin makes through its own stream wrapper will also return false on PHP 8.6 if the wrapper has no stream_flush() method.
Action required: if your plugin registers a stream wrapper, add a stream_flush() method. If there is nothing to flush, return true.
More details can be found on the relevant Trac ticket (#66486) and changeset (r65294).
GD image flips now use imageflip()
For the GD image editor, WordPress previously used imagecopyresampled() with negative dimensions to flip images. PHP 8.6 updates the version of GD to 2.4.0. With this update, imagecopyresampled() returns an all-black image when negative values are passed (php-src#25175). Since WP_Image_Editor_GD::flip() relied on that behavior, every flip made with the GD editor produced a black image, including JPEG uploads with an EXIF orientation of 2, 3 or 4, which WordPress flips automatically. The Imagick editor was not affected.
In WordPress 7.2, WP_Image_Editor_GD::flip() and the deprecated _flip_image_resource() now use imageflip() instead. The output matches the previous behavior:
Palette images are still converted to truecolor.
Alpha, resolution, and interlace settings match the old result.
flip() now also returns a WP_Error instead of throwing a generic TypeError when no valid image is loaded.
Action required: any code that calls imagecopyresampled() with negative dimensions to flip images should use imageflip() instead.
More details can be found on the relevant Trac ticket (#66113) and changeset (r65367).
Plugin and theme test suites
Among the list of deprecations in PHP 8.6 is spl_object_hash(). The lone remaining occurrence of this function in WordPress was found in the PHPUnit test suite and has been replaced.
The call was in _test_filter_build_unique_id(), a helper that tests_add_filter() uses when a closure or object method is passed before WordPress loads. This is very common in plugin bootstrap.php files: the one generated by wp scaffold plugin-tests passes a closure to tests_add_filter() to load the plugin on the muplugins_loaded hook.
The fix is in the WordPress 7.2 test library, whether it is loaded directly or through the wp-phpunit/wp-phpunit package. Support for new PHP versions is not backported to older WordPress branches, so test suites should only run PHP 8.6 against WordPress 7.2 and later.
Action required: test suite behavior should be identical in 7.2, but plugin developers are encouraged to run their test suites against WordPress 7.2 on PHP 8.6 to confirm.
More details can be found on the relevant Trac ticket (#66512) and changeset (r65314).
Action required: replace spl_object_hash() with spl_object_id(). Note that spl_object_id() returns an int rather than a 32-character string, so code that stores or compares the result may need updating.
New in PHP 8.6: clamp()
While PHP 8.6 introduces the clamp() function for limiting a value to a range, WordPress has included a polyfill since the 7.1 release. Plugins and themes can use this function on every supported PHP version (#65143). On PHP 7.4, where ValueError does not exist, the polyfill throws an InvalidArgumentException instead. Code that catches the exception should also catch ValueError.
To test, run your plugin or theme on PHP 8.6 with WP_DEBUG and WP_DEBUG_LOG set to true. An 8.6-fpm image has been published for the local Docker environment in wordpress-develop. To use it, run npm run env:pull to get the latest image, then run LOCAL_PHP=8.6-fpm npm run env:start or set LOCAL_PHP to 8.6-fpm in your .env file and run npm run env:restart.
If you find a bugbugA 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. in WordPress specific to PHP 8.6, please open a Trac ticket with the php86 keyword. All PHP 8.6-related tickets on Trac can be found in this report.
Following the PHP conversation at WordCamp US, a group of WordPress and PHPPHPThe web scripting language in which WordPress is primarily architected. WordPress requires PHP 7.4 or higher contributors met on November 18th for a call to keep that discussion going. The aim was both to get to know each other better and to talk about important topics impacting our respective communities. What follows is a summary of the discussion. The call was held under the Chatham House Rule, so points are summarized without attribution, and nothing below should be read as a decision by either project.
Attendees
Names listed with consent. Anne McCarthy, Jason Adams, Eric Mann, Benjamin Eberlei, Jonathan Desrosiers, Elizabeth Barron, Sebastian Bergmann, Mike Auteri, Konstantin Obenland, Volker Dusch, Dennis Snell, Lynn Griffith, Jake Spurlock, Weston Ruter.
PHP 8.6 readiness
WordPress coreCoreCore is the set of software required to run WordPress. The Core Development Team builds WordPress. is in good shape for 8.6. Two issues surfaced during testing:
TrueType fonts were being reported with the wrong file type. That was fixed upstream in RC7.
Confidence in PHP 8.6 compatibility in the upcoming WordPress 7.2 release is high. The pluginPluginA 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. ecosystem remains the big unknown, and a developer note for 8.6 is being drafted for the Make WordPress Core blog to help extenders prepare.
A faster path between the projects
A recurring theme across meetings is that WordPress needs a way to say “we’ve noticed X, and it potentially could affect a lot of real sites” and have that land somewhere it will be seen. The PHP team is currently dealing with a large influx in AI generated bugbugA 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. reports with hard to understand real world impact, which makes it genuinely hard to spot the issues affecting people. When talking about a way for the WordPress project to escalate without special treatment, it was made clear that if something impacts real users, the PHP team wants to know.
What was agreed in principle:
Bugs still go to the PHP GitHubGitHubGitHub is a website that offers online implementation of git repositories that can easily be shared, copied and modified by other developers. Public repositories are free to host, private repositories require a paid subscription. GitHub introduced the concept of the ‘pull request’ where code changes done in branches by contributors can be reviewed and discussed before being merged by the repository owner. https://github.com/ issue tracker. That remains the right front door to send things.
On top of that, the PHP Foundation advisory board channel can act as a trusted path for WordPress to flag reports with demonstrated real-world impact, so they rise above the noise.
There was also interest in a shared space spanning WordPress, Drupal, Joomla, and other large projects that rely on PHP for support issues, and in a similar line of communication with related projects, such as PHPUnit.
To make it easier to know “here is something that affects real people”, an idea was thrown out to point to an automated test that passes with current stable versions but fails with Alpha/BetaBetaA pre-release of software that is given out to a large group of users to trial under real conditions. Beta versions have gone through alpha testing in-house and are generally fairly close in look, feel and function to the final product; however, design changes often occur as part of the process./RCrelease candidateOne of the final stages in the version release cycle, this version signals the potential to be a final release to the public. Also see alpha (beta). of PHP-next. This makes it easy to both track the problem and understand clear impact.
Testing earlier and showing up in internals
WordPress core used to test against PHP nightly builds and stopped. The plan is to bring that back so regressions get reported well before beta rather than during it. Beyond testing, the clearest path to influence is participation in the PHP internals mailing list. The model to copy is Symfony who tests continuously against PHP’s main branchbranchA directory in Subversion. WordPress uses branches to store the latest development code for each major release (3.9, 4.0, etc.). Branches are then updated with code for any minor releases of that branch. Sometimes, a major version of WordPress and its minor versions are collectively referred to as a "branch", such as "the 4.0 branch"., reports regressions immediately, and takes part in the yearly deprecation discussions. Sustained participation is how a project earns a voice, and eventually how individual contributors earn RFC voting rights. Worth noting that this happens through individuals, and the PHP Foundation supports the health and funding of the project rather than setting technical direction.
There’s also a data gap worth closing. PHP’s backward compatibility checks typically run against the top 2,000–5,000 package repositories, which misses nearly all WordPress ecosystem code. WordPress can supply function usage data from the plugin directory, plus usage statistics from hosts, to inform deprecation decisions. Tooling for this already exists on the WordPress side (veloria.dev) and can be pointed at specific functions on request.
Getting sites off old PHP
To set the stage first, here’s some context around PHP versions:
∼14.5% of WordPress sites are still on PHP 7.4.
∼3% of WordPress sites are on PHP 8.0.
∼9% of WordPress sites are on PHP 8.1.
PHP 8.2 is approaching the end of its security support.
WordPress does the work to support each new PHP release on day one, but its long support window means Core rarely gets to use new language features, and plugin developers feel the same squeeze. This results in friction both ways in adopting the latest and maintaining older versions. As one member said, “The ‘cool feature, I can’t wait to use it in 2-3 years’ is real.”
Part of the discussion centered around encouraging plugin developers to raise their own minimum PHP versions, which pulls site owners and hosts along behind them. A parallel problem exists in the MySQLMySQLMySQL is a relational database management system. A database is a structured collection of data where content, configuration and other options are stored. https://www.mysql.com ecosystem, where the lack of a modern baseline across hosts blocks things like vector search and newer commerce protocols.
Security is the strongest and most salient message available right now. Recent vulnerabilities have made it clear that infrastructure management is no longer optional, and public awareness of security updates has never been higher with patching becoming an accepted fact of life across phones, devices, and appliances. The messaging is fairly simple around “if you’re on a supported version, you’re safer”.
In discussing what would be compelling to hosts, it was discussed how they tend to weigh risk against reward. Historically that meant downtime risk, licensing and control panel costs, and support ticketticketCreated for both bug reports and feature development on the bug tracker. volume against the benefit of upgrading. The current climate lets hosts lead with security as the primary driver. Automated verification that a site will survive an upgrade remains hard because of the long tail of web applications but there might be a path to explore via WordPress Playground and site cloning approaches. For example, someone could use Reprint to clone their site into a WordPress Playground version running a more up to date version of PHP.
The topic came up of having a cross community interest group via the PHP Foundation centered on PHP upgrades that could cut across WordPress, Drupal, Joomla, Symfony, Laravel, etc. The PHP Foundation is seeing a steady influx of support requests for versions that are already unsupported which reflects how this is an ecosystem wide inertia problem rather than just a WordPress one.
PHP has no direct lever with hosts the way WordPress does with varying hosting channels. The PHP Foundation talks to sponsors and hosts mostly when issues come up on the mailing lists and hosts running old versions rarely engage upstream at all. Historically, it has helped to have built in pressure with the predictable support cycle (was every three years and now every four) which has forced hosts to either keep up to date or pay for extended support.
The plugin ecosystem
A few folks who had run large 7.4 → 8.x migrationMigrationMoving the code, database and media files for a website site from one server to another. Most typically done when changing hosting companies. said the same thing that outdated plugins were the bottleneck. Unfortunately, it tends to be the case that the authors behind them are precisely the ones nobody can reach. Developers who are active in the community already tend to keep their code current.
A range of ideas were thrown out for how to possible address this, along with concerns:
More targeted outreach to plugin authors specific to PHP, using the same mailing list that’s used ahead of Core releases. Ideally, there could be a dedicated community manager that could surface what’s actually blocking authors (funding, contributors, time).
Better static analysis feedback that tells an author “you need only X to be compatible with these newer versions”. Tide was meant to do this but it never reached its potential. Today, the Plugin Check tool covers some of it. Currently, failed compatibility checks blockBlockBlock 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. theme updates, but only severe security failures block plugin updates.
Telling site owners what’s happening if a plugin is closed/removed as today the dashboard doesn’t tell the people running it.
Exploring AI-assisted upgrades since for many plugins, compatibility is probably a small code change rather than a big refactor. This would be a tricky thing to do right without being too heavy handed.
Plugin slugs are reserved permanently, so removal carries hijacking risk. Separately, registry operators in Europe may be liable for distributing known security problems.
Finally, it was noted how compatibility is a spectrum. A parse error is one thing and calling a function that no longer exists is another. Without comprehensive test suites, automated checks can only go so far.
Exploratory: sandboxing and required extensions
Two longer-horizon ideas came up for reducing what Core has to reimplement.
Adding a WebAssembly sandbox directly into PHP core. The argument made was that this belongs in core rather than as an optional extension, because frameworks can’t reliably build against something that may not be there. The payoff would be the ability to ship isolated, fast implementations of foundational standards handling (text encoding, HTMLHTMLHyperText Markup Language. The semantic scripting language primarily used for outputting content in web browsers./XML parsing, image processing, URLURLA specific web address of a website or web page on the Internet, such as a website’s URL www.wordpress.org parsing) without waiting on platform upgrades, and to gate or isolate abandoned code. The mbstring case is illustrative: early versions have UTF-8 bugs, so WordPress polyfills multibyte functions in PHP, which is significantly slower than native execution.
The open question is cost under PHP’s shared-nothing model: binaries would need loading on every request, which could hurt on shared hosting. On the other hand, WordPress Playground already packages PHP itself into WebAssembly in a few megabytes, and a precompiled format loads fewer bytes and skips parsing stages compared to the equivalent userland code. Then again, it was wondered whether PHP polyfill implementations might be just as fast as the WASM module. Nothing was decided.
Making common extensions required was discussed since roughly 5% of hosts don’t have XML or Zip enabled, which forces WordPress to reimplement them. Bundling these as mandatory core dependencies in a future release (8.7 was floated) would remove that burden, which would give WordPress a concrete reason to raise its minimum supported version more aggressively.
AI
AI came up repeatedly, cutting both ways. It’s flooding the PHP tracker with low impact reports and making it harder to see real issues. It raises real concerns about chained vulnerabilities in generated code. And at the same time, it’s now capable of modernizing very large legacy codebases to current PHP in hours, which may be the single biggest practical lever on the upgrade problem. Both communities are working out what helpful versus unhelpful AI contribution looks like, and there was clear interest in comparing notes rather than each solving it alone.
Next steps
Names listed with consent.
Add PHP nightly back to the WordPress core test suite (@desrosj)
Share a short list of WordPress folks to join the appropriate PHP channels, and connect PHP contributors into WordPress Slack (@annezazu)
Publish the WordPress developer note for PHP 8.6 (@desrosj)
Explore a cross-project interest group on PHP upgrades with PHP Foundation support (Elizabeth Barron/@annezazu)
Explore ways to flag incompatible plugins, reach plugin authors more proactively, and add more to the plugin checker to help folks.
Props to everyone who joined and to @desrosj and @westonruter for reviewing these notes.
This guide outlines major developer features and breaking changes in 7.2 and is published during the Release Candidaterelease candidateOne of the final stages in the version release cycle, this version signals the potential to be a final release to the public. Also see alpha (beta). phase to help inform WordPress extenders, CoreCoreCore is the set of software required to run WordPress. The Core Development Team builds WordPress. developers, and everyone else interested in the latest WordPress development.
A quick search of the diff between 7.1.4 and the current trunktrunkA 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. (7.2-RC1) reveals 21 new hooksHooksIn WordPress theme and development, hooks are functions that can be applied to an action or a Filter in WordPress. Actions are functions performed when a certain event occurs in WordPress. Filters allow you to modify certain functions. Arguments used to hook both filters and actions look the same. (16 filters and 5 actions), 2,947 total files changed with 246,673 insertions and 51,993 deletions. Kudos to everyone who contributed to the 7.2 release!.
Below is a breakdown of the most important developer-related changes included in WordPress 7.2.
Media
WordPress 7.2 expands the client-side media processing capabilitiescapabilityA 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). introduced in WordPress 7.1, bringing support to additional media upload interfaces and improving the handling of animated images.
Client-side media processing
Client-side media processing is now available in the Media Library grid, Add New Media File screen, and media modal, in addition to the blockBlockBlock 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. editor. This allows supported image operations, including resizing, format conversion, and sub-size generation, to take place in the browser rather than on the server.
Client-side processing is supported in Chromium-based browsers, including Chrome 137 and later and Edge 137 and later. Firefox and Safari do not currently support the required Document-Isolation-Policy and automatically fall back to server-side processing. Even in supported browsers, client-side processing requires more than 2 GB of device memory, sufficient processing capabilities, and compatible security settings. When these requirements are not met, WordPress uses the existing server-side upload process.
WordPress 7.2 updates cross-origin isolation handling and deprecates wp_start_cross_origin_isolation_output_buffer() and wp_add_crossorigin_attributes().
The new wp_send_document_isolation_policy_header() function replaces the former, while the latter has no direct replacement. Developers who customize cross-origin isolation behavior or modify script attributes should review these changes.
SVG icons in the adminadmin(and super admin) bar and menu
WordPress 7.2 continues the modernization of administration interfaces by replacing Core Dashicons font glyphs in the admin menu and admin bar with inline SVG icons.
This builds on the SVG Icon APIAPIAn 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. introduced in WordPress 7.1, providing a more consistent icon system throughout the administration interface.
Most existing plugins and themes will continue working without modification. However, custom admin color schemes, icon replacements, and CSSCSSCascading Style Sheets. targeting Dashicons pseudo-elements may require updates to accommodate the new SVG markup.
Developers can use registered, namespaced SVG icon names in administration menus and toolbar nodes. The new icon argument for WP_Admin_Bar::add_node() provides a standardized way to specify toolbar icons.
The developer note includes detailed compatibility guidance for custom admin color schemes, CSS selectors, icon replacements, and modifications to Core admin bar nodes.
Building on the text shadow styling capabilities introduced in WordPress 7.1, WordPress 7.2 adds textShadow typography block support, text shadow presets, and editor controls.
The Paragraph and Heading blocks support text shadows by default. Custom blocks can opt into the feature by declaring supports.typography.textShadow in their block.json metadata.
Theme authors can define custom text shadow presets through settings.typography.textShadowPresets in theme.json. These presets are available through Global Styles and the Typography panel of supported blocks.
WordPress includes two default presets, Light and Strong. Themes can customize or disable the defaults, and preset values are exposed through generated CSS custom properties and utility classes.
The styles.typography.textShadow property introduced in WordPress 7.1 also supports preset references in 7.2, allowing themes and blocks to use shared text shadow definitions.
WordPress 7.2 introduces changes to editor interfaces and component libraries, improving consistency with the WordPress Design System while providing new functionality and migrationMigrationMoving the code, database and media files for a website site from one server to another. Most typically done when changing hosting companies. paths for pluginPluginA 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. developers.
Options and View menus
The Options and View menus in the post and site editors now use the Menu component from @wordpress/ui.
The updated menus provide improved keyboard navigation, accessibilityAccessibilityAccessibility (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) semantics, and more consistent interactions with other WordPress interface components.
Existing integrations using PluginMoreMenuItem, PluginSidebarMoreMenuItem, and PluginPreviewMenuItem remain supported. However, plugin menu items now appear in a Panels submenu, and the previously undocumented as prop is deprecated and ignored.
Developers with custom menu styling or automated tests targeting the previous component markup should review their implementations, particularly selectors that depend on @wordpress/components classes.
WordPress 7.2 completes the migration of @wordpress/components from Emotion to SCSS Modules, reducing styling runtime and build overhead.
Most integrations using documented component properties and className will not require changes. However, developers relying on Emotion-specific behavior, generated class names, or custom styling implementations should review the migration guidance.
The release also introduces changes to FontFamilyControl styling and adds a presentation prop to ColorPalette, GradientPicker, and DuotonePicker, providing more explicit control over swatch interaction and accessibility semantics.
The existing asButtons prop is deprecated in favor of presentation.
Several components are also deprecated, with removal scheduled for WordPress 7.4:
Animate
Divider
Elevation
ResponsiveWrapper
Scrollable
Surface
Tip
ZStack
Developers should review the recommended alternatives and begin migrating existing implementations.
WordPress 7.2 includes changes to the build process for several @wordpress/* packages to prevent CSS module class name collisions when different versions of the same package are loaded on a page.
Previously, bundled copies of packages could generate identical CSS class names despite containing different styles. This could cause styles from one package version to affect components from another.
The updated build process ensures CSS module class names change when their corresponding CSS changes.
Plugin developers bundling their own copies of affected packages should update to the fixed versions or later:
@wordpress/ui — 0.26.0
@wordpress/dataviews — 22.0.0
@wordpress/admin-ui — 3.1.0
@wordpress/grid — 0.11.0
@wordpress/components — 44.0.0
Plugins compiling CSS modules using @wordpress/build should update to version 0.27.0 or later and rebuild their assets.
Plugins loading @wordpress/components through the shared wp-components script will receive the corrected version included with WordPress 7.2.
WordPress 7.2 introduces a public API for custom block styling controls to read and update styles for the currently selected viewport or pseudo state in the block editor.
The @wordpress/block-editor package provides the getSelectedBlockStyleState and hasSelectedBlockStyleState selectors to determine the selected state, along with the getStyleForState() and setStyleForState() helpers for reading and updating the corresponding block styles.
Developers can use the new style-state group in InspectorControls to display custom controls when a viewport or pseudo state is selected. The same group is also available in BlockControls for displaying toolbar controls when a viewport state is active.
For integrations requiring viewport media queries, the @wordpress/global-styles-engine package exports getViewportMediaQueries(), while PHPPHPThe web scripting language in which WordPress is primarily architected. WordPress requires PHP 7.4 or higher developers can use the corresponding wp_get_viewport_media_queries() function. Both support custom breakpoints and use Core defaults of 480px for mobile and 782px for tablet when no values are supplied.
These additions allow custom block controls to integrate with responsive and state-aware styling without implementing separate mechanisms for managing style attributes.
WordPress 7.2 introduces two new APIs to extend the screens powered by DataViews and DataForm:
The Entity Fields API 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 (see below).
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 API. 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.
Permissions, input handling, and JSONJSONJSON, 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. output
WordPress 7.2 introduces several improvements to the Abilities API, making permission checks, input handling, and JSON responses more consistent across execution paths.
The new required_capabilities registration argument allows developers to declare capabilities that must be satisfied for every execution of an ability. These are checked before the permission_callback, which can now be omitted when the declared capabilities fully cover the ability’s permission requirements. The new has_required_capabilities query argument also allows abilities to be filtered during discovery based on the current user’s capabilities.
Input handling is now standardized through WP_Ability::prepare_input(), which normalizes, validates, and sanitizes input according to the registered schema. Both direct PHP execution and REST requests use this preparation process, ensuring callbacks receive consistent values. Developers calling check_permissions() directly must prepare input first, while sanitization failures now return an ability_invalid_input error rather than falling back to unsanitized values.
WordPress 7.2 also introduces wp_prepare_json_value_for_client() and updates wp_prepare_json_schema_for_client() to preserve the distinction between JSON objects and arrays. Empty values declared as objects are serialized as {} rather than [], including nested values. Developers implementing custom transports should use these helpers when preparing ability results for JSON output.
Plugin developers should review existing permission callbacks, input type assumptions, and JSON response handling, particularly when maintaining compatibility with earlier WordPress versions.
WordPress 6.9 introduced the Abilities API 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.
New HTMLHTMLHyperText Markup Language. The semantic scripting language primarily used for outputting content in web browsers. rendering and navigation capabilities
WordPress 7.2 introduces several improvements to the Interactivity API, including a new directive for rendering HTML, additional client-side navigation state, and the removal of previously deprecated behaviors.
The new data-wp-html directive allows developers to render HTML from the Interactivity API store. Values must be explicitly marked using asDangerousHTML() in JavaScriptJavaScriptJavaScript 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 or wp_interactivity_as_dangerous_html() in PHP.
These functions do not sanitize HTML, so developers must ensure that content is trusted and appropriately sanitized before rendering it.
The core/router store also introduces state.navigating and state.initiator, allowing blocks to determine when client-side navigation is occurring and identify the region that initiated it.
Several previously deprecated behaviors have been removed, including data-wp-ignore, two-hyphen unique directive identifiers, and negation of function references in directives.
Developers relying on these behaviors should update their implementations to maintain compatibility.
REST APIREST APIThe 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/
RevisionsRevisionsThe 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., comments, and CORS handling
WordPress 7.2 introduces three REST API changes affecting revision metadata, comment status parameters, and Cross-Origin Resource Sharing (CORS) headers.
Revision and autosave responses now include only metadata registered for revisions. This prevents metadata that is not revisioned from being inadvertently overwritten when restoring content.
Developers can enable revision support for registered metadata using revisions_enabled or the wp_post_revision_meta_keysfilterFilterFilters 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..
The comments endpoint now handles the status parameter as an array rather than a string. Plugins and integrations that inspect or modify this parameter should review their implementations.
Additionally, the new rest_allowed_cors_methods filter allows developers to customize the Access-Control-Allow-Methods response headerHeaderThe 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.. REST responses that explicitly set this header will retain their specified value.
These changes are particularly relevant to plugins that interact directly with revision metadata, customize REST API requests, or manage cross-origin requests.
WordPress 7.2 introduces a new /random/ endpoint that redirects visitors to a randomly selected published post.
The feature integrates with existing rewrite rules and query APIs, supporting random content discovery across eligible post types, taxonomies, and author archives.
Custom post types can control participation through the new randomable argument in register_post_type().
Developers can customize random content queries using existing query hooks and the new wp_is_random_content_query() helper. The wp_enable_random_content_redirect filter can disable the feature entirely.
The random URLURLA specific web address of a website or web page on the Internet, such as a website’s URL www.wordpress.org base is configurable through Permalink Settings, providing flexibility for sites with different URL structures.
WordPress 7.2 adds NO_BACKSLASH_ESCAPES to the list of incompatible SQL modes disabled when WordPress establishes a database connection.
WordPress relies on backslashes when escaping special characters in SQL queries. Enabling NO_BACKSLASH_ESCAPES can cause queries to fail or produce unexpected results, particularly on hosting environments that enable this mode by default.
The change is applied to the WordPress database session through wpdb::set_sql_mode() and does not modify server-wide SQL settings.
Developers who explicitly require this mode can modify the existing incompatible_sql_modes filter through a db.php drop-in, although doing so may introduce compatibility issues with Core.
WordPress 7.2 updates jQuery Migrate to version 3.6.0 as part of ongoing preparations for a future upgrade to jQuery 4.
The updated jQuery Migrate library helps developers identify deprecated functionality and compatibility issues in plugins and themes before the eventual transition.
The current roadmap tentatively targets WordPress 7.3 for updating jQuery and related dependencies, subject to testing.
Disabling jQuery Migrate by default is planned for a later release, potentially WordPress 7.5 or 7.6, depending on testing and the impact on the ecosystem.
Plugin and theme developers are encouraged to test their JavaScript against the updated library and address deprecation notices in preparation for these changes.
WordPress 7.2 also includes numerous smaller enhancements, bugbugA 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 improvements across Core and the block editor.
WordPress 7.2 includes a number of smaller developer-facing changes across administration, metadata, application passwords, permalinks, script loading, and automatic updates.
This dev notedev noteEach important change in WordPress Core is documented in a developers note, (usually called dev note). Good dev notes generally include a description of the change, the decision that led to this change, and a description of how developers are supposed to work with that change. Dev notes are published on Make/Core blog during the beta phase of WordPress release cycle. Publishing dev notes is particularly important when plugin/theme authors and WordPress developers need to be aware of those changes.In general, all dev notes are compiled into a Field Guide at the beginning of the release candidate phase. covers changes that may affect plugins, themes, custom integrations, and development workflows but do not require separate developer notes.
WordPress 7.2 includes several smaller changes to the Block Editor and Core Data packages, including the removal of deprecated properties, adjustments to stylesheet locations, improved handling of block-level custom CSS, and more efficient data store subscriptions.
The __experimentalGroup prop has been removed from InspectorControls and InspectorControls.Slot. Developers should use the stable group prop instead, which has been available since WordPress 6.2. Existing implementations using __experimentalGroup will now render controls in the default settings group rather than their intended panel.
The deprecated __experimentalImageEditor component has also had its stylesheet moved from @wordpress/block-library to @wordpress/block-editor. Developers still using this component should update their stylesheet imports.
Additional CSS defined in a block’s Advanced panel now applies to blocks rendered by their parent, such as Navigation Link blocks within a Navigation block. No code changes are required, but previously ignored CSS rules may now take effect.
Finally, registry.subscribe( listener, storeName ) now handles subscriptions to unregistered stores more efficiently. Listeners are connected to their specified store when it becomes available, rather than receiving updates from every registered store.
Thank you to everyone who contributed to this version of WordPress, whether through code, testing, or something else – your contributions matter and help Make WordPress.
You must be logged in to post a comment.