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.
Starting in WordPress 7.1, @wordpress/components form controls use a 40px default height unconditionally. The opt-in __next40pxDefaultSize prop is no longer needed and has no runtime effect when passed.
This completes the rollout that followed the soft deprecation in WordPress 6.8. The prop was introduced in WordPress 6.7 so plugins could opt in early. Since 6.8, components that had not opted in logged a console warning.
What changed
Affected components now render at 40px by default without the prop.
Passing __next40pxDefaultSize is ignored at runtime.
Passing __next40pxDefaultSize={ false } no longer opts out to the previous 36px height.
On BorderBoxControl, BorderControl, FontSizePicker, and ToggleGroupControl, the size prop is also deprecated and has no effect.
What to do
Remove __next40pxDefaultSize from your component usage. No replacement prop is needed.
If you were passing size="__unstable-large" on the components listed only to get 40px height, remove that as well.
Affected components
For links to the code changes, see tracking issue #65751.
This rollout covers form controls only. Button still uses the opt-in prop and is unchanged.
Changes for consumers styling with Emotion
A long-running migrationMigrationMoving the code, database and media files for a website site from one server to another. Most typically done when changing hosting companies. has kickstarted in the @wordpress/components package, with the goal of refactoring all Emotion-based styles to SCSS modules.
Most consumers should not need to change anything, but if you do use Emotion to style your components, there are two migration details for code that relied on Emotion-specific behavior:
View still accepts the legacy css prop for type compatibility, but it is now a no-op. Use style for inline styles or className for CSSCSSCascading Style Sheets.-based styling.
When using cx() with Emotion css() fragments, compose source-order-dependent fragments into a single css() call before passing them to cx(). Passing separate fragments can change override order now that View no longer renders through Emotion.