D
WordPress 7.1 will include foundational support for theming design aspects of admin interface components, including color, roundness, and cursor pointers for interactive controls. The background and purpose behind these new features were shared previously in Merge Proposal: Design System Theming. This post aims to provide information about what is included with WordPress 7.1. Design Tokens in the wp-theme stylesheet A new wp-theme stylesheet will be registered by default and is available as a…
D
This work is part of the iteration issue DataViews, DataForm, et. al. in WordPress 7.1 and it has been tracked at #76544. Check the documentation: filters, properties. WordPress 7.1 introduces four new filters to configure Site Editor screens: PageFilter namePagesget_entity_view_config_posttype_pageTemplatesget_entity_view_config_posttype_wp_templatePartsget_entity_view_config_posttype_wp_template_partPatternsget_entity_view_config_posttype_wp_block Each filter can configure the DataViews and…
D
WordPress 7.1 includes an update to the latest stable version of jQuery UI, 1.14.2 from version 1.13.3. This update drops support for all versions of Internet Explorer & Edge Legacy which is inline with the WordPress Browser Support Policy. This update sets jQuery.uiBackCompat to be equal to true to ensure that code written for the jQuery 1.11 API continues to function as expected. Additionally, $.fn._form, $.ui.ie, $.ui.safeActiveElement, and $.ui.safeBlur have been removed. WordPress core…
D
WordPress 7.1 introduces four filters that allow plugins to customise the execution lifecycle of abilities registered with the Abilities API. The Abilities API previously provided the wp_before_execute_ability and wp_after_execute_ability actions. These actions are useful for observing execution, but they cannot change its behaviour. The new filters allow developers to: Short-circuit ability execution. Transform normalised input. Apply additional authorisation rules. Transform or recover an…
D
WordPress 7.1 introduces a new background.gradient block support. It gives blocks a gradient control in the Background panel of the block inspector. Unlike the existing gradient support, it can be combined with a background image so the two render together. GitHub issue: #32787 | PR: #75859 Background Until now, the only way to apply a gradient to a block was through the Color panel’s color.gradient support. That value is stored at style.color.gradient and rendered as a background CSS…
D
WordPress 7.1 introduces a minWidth dimension block support, letting blocks opt in to setting a minimum width. This follows the same pattern as the existing minHeight support. GitHub issue: #76525 | PR: #76949 Background Blocks already support several dimension properties: height, minHeight, and width. There was no matching control for a minimum width. Setting a floor on a block’s width is a common CSS need. For example, you may want a container or layout element to stay usable and not collapse…
D
Icon collectionsCreating a collectionRemoving a collectionIconsAdding iconsRemoving an iconIcon block enhancementRendering an icon in PHPStyling iconsStyling React icons from @wordpress/iconsStyling the SVG returned by wp_get_icon()REST API WordPress 7.0 added a built-in set of SVG icons that the block editor and the core/icon block can use. In 7.1, this becomes a proper, public API: you can now add your own icons, group them, render them on the server, and read them over the REST API. Icons…