@@ -237,6 +237,7 @@ class WP_Theme_JSON {
237237 * @since 6.5.0 Added `aspect-ratio` property.
238238 * @since 6.6.0 Added `background-[image|position|repeat|size]` properties.
239239 * @since 6.7.0 Added `background-attachment` property.
240+ * @since 7.0.0 Added `dimensions.width`.
240241 * @var array
241242 */
242243 const PROPERTIES_METADATA = array (
@@ -301,6 +302,7 @@ class WP_Theme_JSON {
301302 'text-transform ' => array ( 'typography ' , 'textTransform ' ),
302303 'filter ' => array ( 'filter ' , 'duotone ' ),
303304 'box-shadow ' => array ( 'shadow ' ),
305+ 'width ' => array ( 'dimensions ' , 'width ' ),
304306 'writing-mode ' => array ( 'typography ' , 'writingMode ' ),
305307 );
306308
@@ -395,6 +397,7 @@ class WP_Theme_JSON {
395397 * @since 6.6.0 Added support for 'dimensions.aspectRatios', 'dimensions.defaultAspectRatios',
396398 * 'typography.defaultFontSizes', and 'spacing.defaultSpacingSizes'.
397399 * @since 6.9.0 Added support for `border.radiusSizes`.
400+ * @since 7.0.0 Added support for `dimensions.width`.
398401 * @var array
399402 */
400403 const VALID_SETTINGS = array (
@@ -434,6 +437,7 @@ class WP_Theme_JSON {
434437 'aspectRatios ' => null ,
435438 'defaultAspectRatios ' => null ,
436439 'minHeight ' => null ,
440+ 'width ' => null ,
437441 ),
438442 'layout ' => array (
439443 'contentSize ' => null ,
@@ -527,6 +531,7 @@ class WP_Theme_JSON {
527531 * @since 6.3.0 Added support for `typography.textColumns`.
528532 * @since 6.5.0 Added support for `dimensions.aspectRatio`.
529533 * @since 6.6.0 Added `background` sub properties to top-level only.
534+ * @since 7.0.0 Added support for `dimensions.width`.
530535 * @var array
531536 */
532537 const VALID_STYLES = array (
@@ -555,6 +560,7 @@ class WP_Theme_JSON {
555560 'dimensions ' => array (
556561 'aspectRatio ' => null ,
557562 'minHeight ' => null ,
563+ 'width ' => null ,
558564 ),
559565 'filter ' => array (
560566 'duotone ' => null ,
@@ -644,11 +650,13 @@ class WP_Theme_JSON {
644650 * generated under their own feature level selector rather than the block's.
645651 *
646652 * @since 6.1.0
653+ * @since 7.0.0 Added support for `dimensions`.
647654 * @var string[]
648655 */
649656 const BLOCK_SUPPORT_FEATURE_LEVEL_SELECTORS = array (
650657 '__experimentalBorder ' => 'border ' ,
651658 'color ' => 'color ' ,
659+ 'dimensions ' => 'dimensions ' ,
652660 'spacing ' => 'spacing ' ,
653661 'typography ' => 'typography ' ,
654662 );
@@ -724,6 +732,7 @@ public static function get_element_class_name( $element ) {
724732 * @since 6.2.0 Added `dimensions.minHeight` and `position.sticky`.
725733 * @since 6.4.0 Added `background.backgroundImage`.
726734 * @since 6.5.0 Added `background.backgroundSize` and `dimensions.aspectRatio`.
735+ * @since 7.0.0 Added `dimensions.width`.
727736 * @var array
728737 */
729738 const APPEARANCE_TOOLS_OPT_INS = array (
@@ -739,6 +748,7 @@ public static function get_element_class_name( $element ) {
739748 array ( 'color ' , 'caption ' ),
740749 array ( 'dimensions ' , 'aspectRatio ' ),
741750 array ( 'dimensions ' , 'minHeight ' ),
751+ array ( 'dimensions ' , 'width ' ),
742752 array ( 'position ' , 'sticky ' ),
743753 array ( 'spacing ' , 'blockGap ' ),
744754 array ( 'spacing ' , 'margin ' ),
0 commit comments