diff --git a/Gruntfile.js b/Gruntfile.js index c5547010974ed..3e11afa83f9f0 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -811,8 +811,8 @@ module.exports = function(grunt) { // Strip the 'library/' prefix from filePath values so they // resolve correctly relative to wp-includes/images/icon-library/. .replace( - /'filePath' => 'library\//g, - '\'filePath\' => \'' + /'filePath'(\s+)=> 'library\//g, + '\'filePath\'$1=> \'' ); } }, diff --git a/package.json b/package.json index 782ea6395c6ad..8f3be7558b3d2 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,7 @@ "url": "https://develop.svn.wordpress.org/trunk" }, "gutenberg": { - "sha": "50ad79ef7ebc5f1d2a75def068887e33a15f2634", + "sha": "954fe7f9e04631c41aec4552acd627a7203a2aad", "ghcrRepo": "WordPress/gutenberg/gutenberg-wp-develop-build" }, "engines": { diff --git a/src/wp-admin/includes/update-core.php b/src/wp-admin/includes/update-core.php index e34716f0c8b24..7d625150110f1 100644 --- a/src/wp-admin/includes/update-core.php +++ b/src/wp-admin/includes/update-core.php @@ -931,7 +931,6 @@ 'wp-includes/images/icon-library/border.svg', 'wp-includes/images/icon-library/box.svg', 'wp-includes/images/icon-library/breadcrumbs.svg', - 'wp-includes/images/icon-library/brush.svg', 'wp-includes/images/icon-library/bug.svg', 'wp-includes/images/icon-library/button.svg', 'wp-includes/images/icon-library/buttons.svg', @@ -969,7 +968,6 @@ 'wp-includes/images/icon-library/currency-pound.svg', 'wp-includes/images/icon-library/custom-link.svg', 'wp-includes/images/icon-library/custom-post-type.svg', - 'wp-includes/images/icon-library/dashboard.svg', 'wp-includes/images/icon-library/details.svg', 'wp-includes/images/icon-library/drafts.svg', 'wp-includes/images/icon-library/drag-handle.svg', @@ -1035,7 +1033,6 @@ 'wp-includes/images/icon-library/line-dotted.svg', 'wp-includes/images/icon-library/line-solid.svg', 'wp-includes/images/icon-library/link-off.svg', - 'wp-includes/images/icon-library/link.svg', 'wp-includes/images/icon-library/list-item.svg', 'wp-includes/images/icon-library/list-view.svg', 'wp-includes/images/icon-library/list.svg', @@ -1046,7 +1043,6 @@ 'wp-includes/images/icon-library/loop.svg', 'wp-includes/images/icon-library/math.svg', 'wp-includes/images/icon-library/media-and-text.svg', - 'wp-includes/images/icon-library/media.svg', 'wp-includes/images/icon-library/megaphone.svg', 'wp-includes/images/icon-library/more.svg', 'wp-includes/images/icon-library/move-to.svg', @@ -1057,13 +1053,10 @@ 'wp-includes/images/icon-library/offline.svg', 'wp-includes/images/icon-library/overlay-text.svg', 'wp-includes/images/icon-library/page-break.svg', - 'wp-includes/images/icon-library/page.svg', 'wp-includes/images/icon-library/pages.svg', 'wp-includes/images/icon-library/pending.svg', 'wp-includes/images/icon-library/percent.svg', 'wp-includes/images/icon-library/pin-small.svg', - 'wp-includes/images/icon-library/pin.svg', - 'wp-includes/images/icon-library/plugins.svg', 'wp-includes/images/icon-library/plus-circle-filled.svg', 'wp-includes/images/icon-library/position-center.svg', 'wp-includes/images/icon-library/position-left.svg', @@ -1141,7 +1134,6 @@ 'wp-includes/images/icon-library/thumbs-up.svg', 'wp-includes/images/icon-library/time-to-read.svg', 'wp-includes/images/icon-library/title.svg', - 'wp-includes/images/icon-library/tool.svg', 'wp-includes/images/icon-library/trash.svg', 'wp-includes/images/icon-library/trending-down.svg', 'wp-includes/images/icon-library/trending-up.svg', @@ -1150,11 +1142,9 @@ 'wp-includes/images/icon-library/ungroup.svg', 'wp-includes/images/icon-library/unlock.svg', 'wp-includes/images/icon-library/unseen.svg', - 'wp-includes/images/icon-library/update.svg', 'wp-includes/images/icon-library/video.svg', 'wp-includes/images/icon-library/widget.svg', 'wp-includes/images/icon-library/word-count.svg', - 'wp-includes/images/icon-library/wordpress.svg', 'wp-admin/images/about-header-credits.webp', 'wp-admin/images/about-header-credits-rtl.webp', 'wp-admin/images/about-header-default.webp', @@ -1166,6 +1156,20 @@ 'wp-admin/images/about-header-privacy.webp', 'wp-admin/images/about-header-privacy-rtl.webp', 'wp-admin/images/about-release-logo.svg', + /* + * Restored in WordPress 7.2. + * + * 'wp-includes/images/icon-library/brush.svg', + * 'wp-includes/images/icon-library/dashboard.svg', + * 'wp-includes/images/icon-library/link.svg', + * 'wp-includes/images/icon-library/media.svg', + * 'wp-includes/images/icon-library/page.svg', + * 'wp-includes/images/icon-library/pin.svg', + * 'wp-includes/images/icon-library/plugins.svg', + * 'wp-includes/images/icon-library/tool.svg', + * 'wp-includes/images/icon-library/update.svg', + * 'wp-includes/images/icon-library/wordpress.svg', + */ ); /** diff --git a/src/wp-includes/assets/icon-library-manifest.php b/src/wp-includes/assets/icon-library-manifest.php index af72a1c00499c..6af5b7d421051 100644 --- a/src/wp-includes/assets/icon-library-manifest.php +++ b/src/wp-includes/assets/icon-library-manifest.php @@ -5,356 +5,499 @@ } return array( + 'arrow-down' => array( + 'label' => _x( 'Arrow Down', 'icon label' ), + 'filePath' => 'arrow-down.svg', + 'collections' => array( 'core' ), + ), 'arrow-down-left' => array( - 'label' => _x( 'Arrow Down Left', 'icon label' ), - 'filePath' => 'arrow-down-left.svg', + 'label' => _x( 'Arrow Down Left', 'icon label' ), + 'filePath' => 'arrow-down-left.svg', + 'collections' => array( 'core' ), ), 'arrow-down-right' => array( - 'label' => _x( 'Arrow Down Right', 'icon label' ), - 'filePath' => 'arrow-down-right.svg', - ), - 'arrow-down' => array( - 'label' => _x( 'Arrow Down', 'icon label' ), - 'filePath' => 'arrow-down.svg', + 'label' => _x( 'Arrow Down Right', 'icon label' ), + 'filePath' => 'arrow-down-right.svg', + 'collections' => array( 'core' ), ), 'arrow-left' => array( - 'label' => _x( 'Arrow Left', 'icon label' ), - 'filePath' => 'arrow-left.svg', + 'label' => _x( 'Arrow Left', 'icon label' ), + 'filePath' => 'arrow-left.svg', + 'collections' => array( 'core' ), ), 'arrow-right' => array( - 'label' => _x( 'Arrow Right', 'icon label' ), - 'filePath' => 'arrow-right.svg', + 'label' => _x( 'Arrow Right', 'icon label' ), + 'filePath' => 'arrow-right.svg', + 'collections' => array( 'core' ), + ), + 'arrow-up' => array( + 'label' => _x( 'Arrow Up', 'icon label' ), + 'filePath' => 'arrow-up.svg', + 'collections' => array( 'core' ), ), 'arrow-up-left' => array( - 'label' => _x( 'Arrow Up Left', 'icon label' ), - 'filePath' => 'arrow-up-left.svg', + 'label' => _x( 'Arrow Up Left', 'icon label' ), + 'filePath' => 'arrow-up-left.svg', + 'collections' => array( 'core' ), ), 'arrow-up-right' => array( - 'label' => _x( 'Arrow Up Right', 'icon label' ), - 'filePath' => 'arrow-up-right.svg', - ), - 'arrow-up' => array( - 'label' => _x( 'Arrow Up', 'icon label' ), - 'filePath' => 'arrow-up.svg', + 'label' => _x( 'Arrow Up Right', 'icon label' ), + 'filePath' => 'arrow-up-right.svg', + 'collections' => array( 'core' ), ), 'at-symbol' => array( - 'label' => _x( 'At Symbol (@)', 'icon label' ), - 'filePath' => 'at-symbol.svg', + 'label' => _x( 'At Symbol (@)', 'icon label' ), + 'filePath' => 'at-symbol.svg', + 'collections' => array( 'core' ), ), 'audio' => array( - 'label' => _x( 'Audio', 'icon label' ), - 'filePath' => 'audio.svg', + 'label' => _x( 'Audio', 'icon label' ), + 'filePath' => 'audio.svg', + 'collections' => array( 'core' ), ), 'bell' => array( - 'label' => _x( 'Bell', 'icon label' ), - 'filePath' => 'bell.svg', + 'label' => _x( 'Bell', 'icon label' ), + 'filePath' => 'bell.svg', + 'collections' => array( 'core' ), ), 'block-default' => array( - 'label' => _x( 'Block Default', 'icon label' ), - 'filePath' => 'block-default.svg', + 'label' => _x( 'Block Default', 'icon label' ), + 'filePath' => 'block-default.svg', + 'collections' => array( 'core' ), ), 'block-meta' => array( - 'label' => _x( 'Block Meta', 'icon label' ), - 'filePath' => 'block-meta.svg', + 'label' => _x( 'Block Meta', 'icon label' ), + 'filePath' => 'block-meta.svg', + 'collections' => array( 'core' ), ), 'block-table' => array( - 'label' => _x( 'Block Table', 'icon label' ), - 'filePath' => 'block-table.svg', + 'label' => _x( 'Block Table', 'icon label' ), + 'filePath' => 'block-table.svg', + 'collections' => array( 'core' ), + ), + 'brush' => array( + 'label' => _x( 'Brush', 'icon label' ), + 'filePath' => 'brush.svg', + 'collections' => array( 'core-admin' ), ), 'calendar' => array( - 'label' => _x( 'Calendar', 'icon label' ), - 'filePath' => 'calendar.svg', + 'label' => _x( 'Calendar', 'icon label' ), + 'filePath' => 'calendar.svg', + 'collections' => array( 'core' ), ), 'capture-photo' => array( - 'label' => _x( 'Capture Photo', 'icon label' ), - 'filePath' => 'capture-photo.svg', + 'label' => _x( 'Capture Photo', 'icon label' ), + 'filePath' => 'capture-photo.svg', + 'collections' => array( 'core' ), ), 'capture-video' => array( - 'label' => _x( 'Capture Video', 'icon label' ), - 'filePath' => 'capture-video.svg', + 'label' => _x( 'Capture Video', 'icon label' ), + 'filePath' => 'capture-video.svg', + 'collections' => array( 'core' ), ), 'cart' => array( - 'label' => _x( 'Cart', 'icon label' ), - 'filePath' => 'cart.svg', + 'label' => _x( 'Cart', 'icon label' ), + 'filePath' => 'cart.svg', + 'collections' => array( 'core' ), ), 'category' => array( - 'label' => _x( 'Category', 'icon label' ), - 'filePath' => 'category.svg', + 'label' => _x( 'Category', 'icon label' ), + 'filePath' => 'category.svg', + 'collections' => array( 'core' ), ), 'caution' => array( - 'label' => _x( 'Caution', 'icon label' ), - 'filePath' => 'caution.svg', + 'label' => _x( 'Caution', 'icon label' ), + 'filePath' => 'caution.svg', + 'collections' => array( 'core' ), ), 'chart-bar' => array( - 'label' => _x( 'Chart Bar', 'icon label' ), - 'filePath' => 'chart-bar.svg', + 'label' => _x( 'Chart Bar', 'icon label' ), + 'filePath' => 'chart-bar.svg', + 'collections' => array( 'core' ), ), 'check' => array( - 'label' => _x( 'Check', 'icon label' ), - 'filePath' => 'check.svg', + 'label' => _x( 'Check', 'icon label' ), + 'filePath' => 'check.svg', + 'collections' => array( 'core' ), ), 'chevron-down' => array( - 'label' => _x( 'Chevron Down', 'icon label' ), - 'filePath' => 'chevron-down.svg', + 'label' => _x( 'Chevron Down', 'icon label' ), + 'filePath' => 'chevron-down.svg', + 'collections' => array( 'core' ), ), 'chevron-down-small' => array( - 'label' => _x( 'Chevron Down Small', 'icon label' ), - 'filePath' => 'chevron-down-small.svg', + 'label' => _x( 'Chevron Down Small', 'icon label' ), + 'filePath' => 'chevron-down-small.svg', + 'collections' => array( 'core' ), ), 'chevron-left' => array( - 'label' => _x( 'Chevron Left', 'icon label' ), - 'filePath' => 'chevron-left.svg', + 'label' => _x( 'Chevron Left', 'icon label' ), + 'filePath' => 'chevron-left.svg', + 'collections' => array( 'core', 'core-admin' ), ), 'chevron-left-small' => array( - 'label' => _x( 'Chevron Left Small', 'icon label' ), - 'filePath' => 'chevron-left-small.svg', + 'label' => _x( 'Chevron Left Small', 'icon label' ), + 'filePath' => 'chevron-left-small.svg', + 'collections' => array( 'core' ), ), 'chevron-right' => array( - 'label' => _x( 'Chevron Right', 'icon label' ), - 'filePath' => 'chevron-right.svg', + 'label' => _x( 'Chevron Right', 'icon label' ), + 'filePath' => 'chevron-right.svg', + 'collections' => array( 'core' ), ), 'chevron-right-small' => array( - 'label' => _x( 'Chevron Right Small', 'icon label' ), - 'filePath' => 'chevron-right-small.svg', + 'label' => _x( 'Chevron Right Small', 'icon label' ), + 'filePath' => 'chevron-right-small.svg', + 'collections' => array( 'core' ), ), 'chevron-up' => array( - 'label' => _x( 'Chevron Up', 'icon label' ), - 'filePath' => 'chevron-up.svg', + 'label' => _x( 'Chevron Up', 'icon label' ), + 'filePath' => 'chevron-up.svg', + 'collections' => array( 'core' ), ), 'chevron-up-down' => array( - 'label' => _x( 'Chevron Up Down', 'icon label' ), - 'filePath' => 'chevron-up-down.svg', + 'label' => _x( 'Chevron Up Down', 'icon label' ), + 'filePath' => 'chevron-up-down.svg', + 'collections' => array( 'core' ), ), 'chevron-up-small' => array( - 'label' => _x( 'Chevron Up Small', 'icon label' ), - 'filePath' => 'chevron-up-small.svg', + 'label' => _x( 'Chevron Up Small', 'icon label' ), + 'filePath' => 'chevron-up-small.svg', + 'collections' => array( 'core' ), ), 'comment' => array( - 'label' => _x( 'Comment', 'icon label' ), - 'filePath' => 'comment.svg', + 'label' => _x( 'Comment', 'icon label' ), + 'filePath' => 'comment.svg', + 'collections' => array( 'core', 'core-admin' ), ), 'cover' => array( - 'label' => _x( 'Cover', 'icon label' ), - 'filePath' => 'cover.svg', + 'label' => _x( 'Cover', 'icon label' ), + 'filePath' => 'cover.svg', + 'collections' => array( 'core' ), ), 'create' => array( - 'label' => _x( 'Create', 'icon label' ), - 'filePath' => 'create.svg', + 'label' => _x( 'Create', 'icon label' ), + 'filePath' => 'create.svg', + 'collections' => array( 'core' ), + ), + 'dashboard' => array( + 'label' => _x( 'Dashboard', 'icon label' ), + 'filePath' => 'dashboard.svg', + 'collections' => array( 'core-admin' ), ), 'desktop' => array( - 'label' => _x( 'Desktop', 'icon label' ), - 'filePath' => 'desktop.svg', + 'label' => _x( 'Desktop', 'icon label' ), + 'filePath' => 'desktop.svg', + 'collections' => array( 'core' ), ), 'download' => array( - 'label' => _x( 'Download', 'icon label' ), - 'filePath' => 'download.svg', + 'label' => _x( 'Download', 'icon label' ), + 'filePath' => 'download.svg', + 'collections' => array( 'core' ), ), 'drawer-left' => array( - 'label' => _x( 'Drawer Left', 'icon label' ), - 'filePath' => 'drawer-left.svg', + 'label' => _x( 'Drawer Left', 'icon label' ), + 'filePath' => 'drawer-left.svg', + 'collections' => array( 'core' ), ), 'drawer-right' => array( - 'label' => _x( 'Drawer Right', 'icon label' ), - 'filePath' => 'drawer-right.svg', + 'label' => _x( 'Drawer Right', 'icon label' ), + 'filePath' => 'drawer-right.svg', + 'collections' => array( 'core' ), ), 'envelope' => array( - 'label' => _x( 'Envelope', 'icon label' ), - 'filePath' => 'envelope.svg', + 'label' => _x( 'Envelope', 'icon label' ), + 'filePath' => 'envelope.svg', + 'collections' => array( 'core' ), ), 'error' => array( - 'label' => _x( 'Error', 'icon label' ), - 'filePath' => 'error.svg', + 'label' => _x( 'Error', 'icon label' ), + 'filePath' => 'error.svg', + 'collections' => array( 'core' ), ), 'external' => array( - 'label' => _x( 'External', 'icon label' ), - 'filePath' => 'external.svg', + 'label' => _x( 'External', 'icon label' ), + 'filePath' => 'external.svg', + 'collections' => array( 'core' ), ), 'file' => array( - 'label' => _x( 'File', 'icon label' ), - 'filePath' => 'file.svg', + 'label' => _x( 'File', 'icon label' ), + 'filePath' => 'file.svg', + 'collections' => array( 'core' ), ), 'gallery' => array( - 'label' => _x( 'Gallery', 'icon label' ), - 'filePath' => 'gallery.svg', + 'label' => _x( 'Gallery', 'icon label' ), + 'filePath' => 'gallery.svg', + 'collections' => array( 'core' ), ), 'group' => array( - 'label' => _x( 'Group', 'icon label' ), - 'filePath' => 'group.svg', + 'label' => _x( 'Group', 'icon label' ), + 'filePath' => 'group.svg', + 'collections' => array( 'core' ), ), 'heading' => array( - 'label' => _x( 'Heading', 'icon label' ), - 'filePath' => 'heading.svg', + 'label' => _x( 'Heading', 'icon label' ), + 'filePath' => 'heading.svg', + 'collections' => array( 'core' ), ), 'help' => array( - 'label' => _x( 'Help', 'icon label' ), - 'filePath' => 'help.svg', + 'label' => _x( 'Help', 'icon label' ), + 'filePath' => 'help.svg', + 'collections' => array( 'core' ), ), 'home' => array( - 'label' => _x( 'Home', 'icon label' ), - 'filePath' => 'home.svg', + 'label' => _x( 'Home', 'icon label' ), + 'filePath' => 'home.svg', + 'collections' => array( 'core', 'core-admin' ), ), 'image' => array( - 'label' => _x( 'Image', 'icon label' ), - 'filePath' => 'image.svg', + 'label' => _x( 'Image', 'icon label' ), + 'filePath' => 'image.svg', + 'collections' => array( 'core' ), ), 'info' => array( - 'label' => _x( 'Info', 'icon label' ), - 'filePath' => 'info.svg', + 'label' => _x( 'Info', 'icon label' ), + 'filePath' => 'info.svg', + 'collections' => array( 'core' ), ), 'key' => array( - 'label' => _x( 'Key', 'icon label' ), - 'filePath' => 'key.svg', + 'label' => _x( 'Key', 'icon label' ), + 'filePath' => 'key.svg', + 'collections' => array( 'core' ), ), 'language' => array( - 'label' => _x( 'Language', 'icon label' ), - 'filePath' => 'language.svg', + 'label' => _x( 'Language', 'icon label' ), + 'filePath' => 'language.svg', + 'collections' => array( 'core' ), + ), + 'link' => array( + 'label' => _x( 'Link', 'icon label' ), + 'filePath' => 'link.svg', + 'collections' => array( 'core-admin' ), ), 'map-marker' => array( - 'label' => _x( 'Map Marker', 'icon label' ), - 'filePath' => 'map-marker.svg', + 'label' => _x( 'Map Marker', 'icon label' ), + 'filePath' => 'map-marker.svg', + 'collections' => array( 'core' ), + ), + 'media' => array( + 'label' => _x( 'Media', 'icon label' ), + 'filePath' => 'media.svg', + 'collections' => array( 'core-admin' ), ), 'menu' => array( - 'label' => _x( 'Menu', 'icon label' ), - 'filePath' => 'menu.svg', + 'label' => _x( 'Menu', 'icon label' ), + 'filePath' => 'menu.svg', + 'collections' => array( 'core', 'core-admin' ), ), 'mobile' => array( - 'label' => _x( 'Mobile', 'icon label' ), - 'filePath' => 'mobile.svg', + 'label' => _x( 'Mobile', 'icon label' ), + 'filePath' => 'mobile.svg', + 'collections' => array( 'core' ), ), 'more-horizontal' => array( - 'label' => _x( 'More Horizontal', 'icon label' ), - 'filePath' => 'more-horizontal.svg', + 'label' => _x( 'More Horizontal', 'icon label' ), + 'filePath' => 'more-horizontal.svg', + 'collections' => array( 'core' ), ), 'more-vertical' => array( - 'label' => _x( 'More Vertical', 'icon label' ), - 'filePath' => 'more-vertical.svg', + 'label' => _x( 'More Vertical', 'icon label' ), + 'filePath' => 'more-vertical.svg', + 'collections' => array( 'core' ), ), 'next' => array( - 'label' => _x( 'Next', 'icon label' ), - 'filePath' => 'next.svg', + 'label' => _x( 'Next', 'icon label' ), + 'filePath' => 'next.svg', + 'collections' => array( 'core' ), + ), + 'page' => array( + 'label' => _x( 'Page', 'icon label' ), + 'filePath' => 'page.svg', + 'collections' => array( 'core-admin' ), ), 'paragraph' => array( - 'label' => _x( 'Paragraph', 'icon label' ), - 'filePath' => 'paragraph.svg', + 'label' => _x( 'Paragraph', 'icon label' ), + 'filePath' => 'paragraph.svg', + 'collections' => array( 'core' ), ), 'payment' => array( - 'label' => _x( 'Payment', 'icon label' ), - 'filePath' => 'payment.svg', + 'label' => _x( 'Payment', 'icon label' ), + 'filePath' => 'payment.svg', + 'collections' => array( 'core' ), ), 'pencil' => array( - 'label' => _x( 'Pencil', 'icon label' ), - 'filePath' => 'pencil.svg', + 'label' => _x( 'Pencil', 'icon label' ), + 'filePath' => 'pencil.svg', + 'collections' => array( 'core', 'core-admin' ), ), 'people' => array( - 'label' => _x( 'People', 'icon label' ), - 'filePath' => 'people.svg', + 'label' => _x( 'People', 'icon label' ), + 'filePath' => 'people.svg', + 'collections' => array( 'core', 'core-admin' ), + ), + 'pin' => array( + 'label' => _x( 'Pin', 'icon label' ), + 'filePath' => 'pin.svg', + 'collections' => array( 'core-admin' ), + ), + 'plugins' => array( + 'label' => _x( 'Plugins', 'icon label' ), + 'filePath' => 'plugins.svg', + 'collections' => array( 'core-admin' ), ), 'plus' => array( - 'label' => _x( 'Plus', 'icon label' ), - 'filePath' => 'plus.svg', + 'label' => _x( 'Plus', 'icon label' ), + 'filePath' => 'plus.svg', + 'collections' => array( 'core', 'core-admin' ), ), 'plus-circle' => array( - 'label' => _x( 'Plus Circle', 'icon label' ), - 'filePath' => 'plus-circle.svg', + 'label' => _x( 'Plus Circle', 'icon label' ), + 'filePath' => 'plus-circle.svg', + 'collections' => array( 'core' ), ), 'previous' => array( - 'label' => _x( 'Previous', 'icon label' ), - 'filePath' => 'previous.svg', + 'label' => _x( 'Previous', 'icon label' ), + 'filePath' => 'previous.svg', + 'collections' => array( 'core' ), ), 'published' => array( - 'label' => _x( 'Published', 'icon label' ), - 'filePath' => 'published.svg', + 'label' => _x( 'Published', 'icon label' ), + 'filePath' => 'published.svg', + 'collections' => array( 'core' ), ), 'quote' => array( - 'label' => _x( 'Quote', 'icon label' ), - 'filePath' => 'quote.svg', + 'label' => _x( 'Quote', 'icon label' ), + 'filePath' => 'quote.svg', + 'collections' => array( 'core' ), ), 'receipt' => array( - 'label' => _x( 'Receipt', 'icon label' ), - 'filePath' => 'receipt.svg', + 'label' => _x( 'Receipt', 'icon label' ), + 'filePath' => 'receipt.svg', + 'collections' => array( 'core' ), ), 'rss' => array( - 'label' => _x( 'RSS', 'icon label' ), - 'filePath' => 'rss.svg', + 'label' => _x( 'RSS', 'icon label' ), + 'filePath' => 'rss.svg', + 'collections' => array( 'core' ), ), 'scheduled' => array( - 'label' => _x( 'Scheduled', 'icon label' ), - 'filePath' => 'scheduled.svg', + 'label' => _x( 'Scheduled', 'icon label' ), + 'filePath' => 'scheduled.svg', + 'collections' => array( 'core' ), ), 'search' => array( - 'label' => _x( 'Search', 'icon label' ), - 'filePath' => 'search.svg', + 'label' => _x( 'Search', 'icon label' ), + 'filePath' => 'search.svg', + 'collections' => array( 'core', 'core-admin' ), ), 'settings' => array( - 'label' => _x( 'Settings', 'icon label' ), - 'filePath' => 'settings.svg', + 'label' => _x( 'Settings', 'icon label' ), + 'filePath' => 'settings.svg', + 'collections' => array( 'core', 'core-admin' ), ), 'shadow' => array( - 'label' => _x( 'Shadow', 'icon label' ), - 'filePath' => 'shadow.svg', + 'label' => _x( 'Shadow', 'icon label' ), + 'filePath' => 'shadow.svg', + 'collections' => array( 'core' ), ), 'share' => array( - 'label' => _x( 'Share', 'icon label' ), - 'filePath' => 'share.svg', + 'label' => _x( 'Share', 'icon label' ), + 'filePath' => 'share.svg', + 'collections' => array( 'core' ), ), 'shield' => array( - 'label' => _x( 'Shield', 'icon label' ), - 'filePath' => 'shield.svg', + 'label' => _x( 'Shield', 'icon label' ), + 'filePath' => 'shield.svg', + 'collections' => array( 'core' ), ), 'shuffle' => array( - 'label' => _x( 'Shuffle', 'icon label' ), - 'filePath' => 'shuffle.svg', + 'label' => _x( 'Shuffle', 'icon label' ), + 'filePath' => 'shuffle.svg', + 'collections' => array( 'core' ), + ), + 'sites' => array( + 'label' => _x( 'Sites', 'icon label' ), + 'filePath' => 'sites.svg', + 'collections' => array( 'core-admin' ), ), 'star-empty' => array( - 'label' => _x( 'Star Empty', 'icon label' ), - 'filePath' => 'star-empty.svg', + 'label' => _x( 'Star Empty', 'icon label' ), + 'filePath' => 'star-empty.svg', + 'collections' => array( 'core' ), ), 'star-filled' => array( - 'label' => _x( 'Star Filled', 'icon label' ), - 'filePath' => 'star-filled.svg', + 'label' => _x( 'Star Filled', 'icon label' ), + 'filePath' => 'star-filled.svg', + 'collections' => array( 'core' ), ), 'star-half' => array( - 'label' => _x( 'Star Half', 'icon label' ), - 'filePath' => 'star-half.svg', + 'label' => _x( 'Star Half', 'icon label' ), + 'filePath' => 'star-half.svg', + 'collections' => array( 'core' ), ), 'store' => array( - 'label' => _x( 'Store', 'icon label' ), - 'filePath' => 'store.svg', + 'label' => _x( 'Store', 'icon label' ), + 'filePath' => 'store.svg', + 'collections' => array( 'core' ), ), 'styles' => array( - 'label' => _x( 'Styles', 'icon label' ), - 'filePath' => 'styles.svg', + 'label' => _x( 'Styles', 'icon label' ), + 'filePath' => 'styles.svg', + 'collections' => array( 'core' ), ), 'symbol' => array( - 'label' => _x( 'Symbol', 'icon label' ), - 'filePath' => 'symbol.svg', + 'label' => _x( 'Symbol', 'icon label' ), + 'filePath' => 'symbol.svg', + 'collections' => array( 'core' ), ), 'symbol-filled' => array( - 'label' => _x( 'Symbol Filled', 'icon label' ), - 'filePath' => 'symbol-filled.svg', + 'label' => _x( 'Symbol Filled', 'icon label' ), + 'filePath' => 'symbol-filled.svg', + 'collections' => array( 'core' ), ), 'table' => array( - 'label' => _x( 'Table', 'icon label' ), - 'filePath' => 'table.svg', + 'label' => _x( 'Table', 'icon label' ), + 'filePath' => 'table.svg', + 'collections' => array( 'core' ), ), 'tablet' => array( - 'label' => _x( 'Tablet', 'icon label' ), - 'filePath' => 'tablet.svg', + 'label' => _x( 'Tablet', 'icon label' ), + 'filePath' => 'tablet.svg', + 'collections' => array( 'core' ), ), 'tag' => array( - 'label' => _x( 'Tag', 'icon label' ), - 'filePath' => 'tag.svg', + 'label' => _x( 'Tag', 'icon label' ), + 'filePath' => 'tag.svg', + 'collections' => array( 'core' ), ), 'tip' => array( - 'label' => _x( 'Tip', 'icon label' ), - 'filePath' => 'tip.svg', + 'label' => _x( 'Tip', 'icon label' ), + 'filePath' => 'tip.svg', + 'collections' => array( 'core' ), + ), + 'tool' => array( + 'label' => _x( 'Tool', 'icon label' ), + 'filePath' => 'tool.svg', + 'collections' => array( 'core-admin' ), + ), + 'update' => array( + 'label' => _x( 'Update', 'icon label' ), + 'filePath' => 'update.svg', + 'collections' => array( 'core-admin' ), ), 'upload' => array( - 'label' => _x( 'Upload', 'icon label' ), - 'filePath' => 'upload.svg', + 'label' => _x( 'Upload', 'icon label' ), + 'filePath' => 'upload.svg', + 'collections' => array( 'core' ), ), 'verse' => array( - 'label' => _x( 'Verse', 'icon label' ), - 'filePath' => 'verse.svg', + 'label' => _x( 'Verse', 'icon label' ), + 'filePath' => 'verse.svg', + 'collections' => array( 'core' ), + ), + 'wordpress' => array( + 'label' => _x( 'WordPress', 'icon label' ), + 'filePath' => 'wordpress.svg', + 'collections' => array( 'core-admin' ), ), ); diff --git a/src/wp-includes/assets/script-loader-packages.php b/src/wp-includes/assets/script-loader-packages.php index 901c7cf0d9765..130c022842931 100644 --- a/src/wp-includes/assets/script-loader-packages.php +++ b/src/wp-includes/assets/script-loader-packages.php @@ -67,7 +67,7 @@ 'wp-url', 'wp-warning' ), - 'version' => '24621af54a8dc0a92a8e' + 'version' => '56da94f1b6ed56573e78' ), 'block-editor.js' => array( 'dependencies' => array( @@ -105,7 +105,7 @@ 'wp-url', 'wp-warning' ), - 'version' => '8e67e7eb04ecb701743a' + 'version' => '578ad9eb61ae8af0123d' ), 'block-library.js' => array( 'dependencies' => array( @@ -151,7 +151,7 @@ 'import' => 'dynamic' ) ), - 'version' => '691202a33011c4875e59' + 'version' => '0999d15ea60b2ca101bc' ), 'block-serialization-default-parser.js' => array( 'dependencies' => array( @@ -184,7 +184,7 @@ 'wp-shortcode', 'wp-warning' ), - 'version' => 'b95498963c9f898ef62c' + 'version' => 'c453468c6e4fc4dacf25' ), 'commands.js' => array( 'dependencies' => array( @@ -201,7 +201,7 @@ 'wp-primitives', 'wp-private-apis' ), - 'version' => '3df8385dbb6e2a481531' + 'version' => '4a4a518ce9c4838666fe' ), 'components.js' => array( 'dependencies' => array( @@ -226,7 +226,7 @@ 'wp-theme', 'wp-warning' ), - 'version' => '25527557652935a6e972' + 'version' => 'fecbc7a454bacff1527c' ), 'compose.js' => array( 'dependencies' => array( @@ -241,7 +241,7 @@ 'wp-private-apis', 'wp-undo-manager' ), - 'version' => '63493eebece0964ac71b' + 'version' => '18547cd8d2e6674f7b98' ), 'core-commands.js' => array( 'dependencies' => array( @@ -258,7 +258,7 @@ 'wp-router', 'wp-url' ), - 'version' => '70d32365916bcb25ffb7' + 'version' => '738a4beca871c27833f1' ), 'core-data.js' => array( 'dependencies' => array( @@ -283,7 +283,7 @@ 'wp-url', 'wp-warning' ), - 'version' => '168b7542169d2fde8357' + 'version' => 'a1d74a5d3b46ac893e05' ), 'customize-widgets.js' => array( 'dependencies' => array( @@ -319,7 +319,7 @@ 'import' => 'static' ) ), - 'version' => '98d1a242a321a8fb2368' + 'version' => 'dcab974f036fbee73086' ), 'data.js' => array( 'dependencies' => array( @@ -332,7 +332,7 @@ 'wp-private-apis', 'wp-redux-routine' ), - 'version' => '14a216e0932d72c22976' + 'version' => '005f6e82abe15d14167c' ), 'data-controls.js' => array( 'dependencies' => array( @@ -359,7 +359,7 @@ 'dependencies' => array( 'wp-deprecated' ), - 'version' => '86c2ff0a5868054f11be' + 'version' => 'd72034b45da1dc03f5fb' ), 'dom-ready.js' => array( 'dependencies' => array( @@ -410,7 +410,7 @@ 'import' => 'static' ) ), - 'version' => '0421ce691b0a19a79d82' + 'version' => 'b4b1fb53ee012caa42fb' ), 'edit-site.js' => array( 'dependencies' => array( @@ -459,7 +459,7 @@ 'import' => 'static' ) ), - 'version' => '8d0839783fdd5b8f011d' + 'version' => '1d1116c276ed95618737' ), 'edit-widgets.js' => array( 'dependencies' => array( @@ -501,7 +501,7 @@ 'import' => 'static' ) ), - 'version' => 'fb98b8fc7c0a258b6594' + 'version' => 'b66dc643708560ba6922' ), 'editor.js' => array( 'dependencies' => array( @@ -552,7 +552,7 @@ 'import' => 'static' ) ), - 'version' => 'ed00c152bc5ddb142386' + 'version' => '021570d5ceb676201638' ), 'element.js' => array( 'dependencies' => array( @@ -594,7 +594,7 @@ 'import' => 'dynamic' ) ), - 'version' => '605b7b5ef448f86ab978' + 'version' => 'f9ce39fe8a3d8aaf2fd6' ), 'hooks.js' => array( 'dependencies' => array( @@ -627,13 +627,13 @@ 'wp-element', 'wp-keycodes' ), - 'version' => '37da95806f2339bc80d0' + 'version' => 'ba3985e44a8fdca9462f' ), 'keycodes.js' => array( 'dependencies' => array( 'wp-i18n' ), - 'version' => '2ea455bbfcb75ff06fc8' + 'version' => '73137a5f59fa0d89f095' ), 'list-reusable-blocks.js' => array( 'dependencies' => array( @@ -672,7 +672,7 @@ 'wp-url', 'wp-warning' ), - 'version' => '65745ea0dd7c198ee1ad' + 'version' => '64a4692e40e4685caccd' ), 'notices.js' => array( 'dependencies' => array( @@ -711,7 +711,7 @@ 'wp-url', 'wp-warning' ), - 'version' => '10c0f0e7da90fc1de354' + 'version' => 'bb86130c876014c4db11' ), 'plugins.js' => array( 'dependencies' => array( @@ -723,7 +723,7 @@ 'wp-is-shallow-equal', 'wp-primitives' ), - 'version' => '673d1e05ca49004ab160' + 'version' => 'a03a674fba0130981f2d' ), 'preferences.js' => array( 'dependencies' => array( @@ -739,7 +739,7 @@ 'wp-primitives', 'wp-private-apis' ), - 'version' => 'f7e32b791afe5c65affa' + 'version' => 'f0a611a312173e6b7648' ), 'preferences-persistence.js' => array( 'dependencies' => array( @@ -800,7 +800,7 @@ 'wp-keycodes', 'wp-private-apis' ), - 'version' => '7f83233b1caefc2146bb' + 'version' => 'd04c731671320d12f4e9' ), 'router.js' => array( 'dependencies' => array( @@ -844,7 +844,7 @@ 'wp-hooks', 'wp-private-apis' ), - 'version' => 'f724e91d6631c164fa7c' + 'version' => '7179e38284ff7aba21e6' ), 'theme.js' => array( 'dependencies' => array( @@ -889,7 +889,7 @@ 'import' => 'dynamic' ) ), - 'version' => 'a2c026d433c295fd5145' + 'version' => '86068d5116da27ca40a5' ), 'url.js' => array( 'dependencies' => array( @@ -926,7 +926,7 @@ 'wp-notices', 'wp-primitives' ), - 'version' => 'aa82232d2078ea55adba' + 'version' => 'f2802a2d8ac37b86bc43' ), 'wordcount.js' => array( 'dependencies' => array( diff --git a/src/wp-includes/assets/script-modules-packages.php b/src/wp-includes/assets/script-modules-packages.php index 935aafba0e003..b000cd3d852b6 100644 --- a/src/wp-includes/assets/script-modules-packages.php +++ b/src/wp-includes/assets/script-modules-packages.php @@ -10,7 +10,7 @@ 'wp-data', 'wp-i18n' ), - 'version' => 'ec0b0ee989ace28703d7' + 'version' => 'e5fcd7e304ead0fc9779' ), 'block-editor/utils/fit-text-frontend.js' => array( 'dependencies' => array( @@ -70,7 +70,7 @@ 'import' => 'static' ) ), - 'version' => '1bf28ded04f9f188bdcb' + 'version' => '5381c0a3642be76565c7' ), 'block-library/playlist/view.js' => array( 'dependencies' => array( @@ -82,7 +82,7 @@ 'import' => 'static' ) ), - 'version' => '67a35440c2e33a42d17e' + 'version' => 'fde7e3309a48521aed56' ), 'block-library/query/view.js' => array( 'dependencies' => array( @@ -162,7 +162,7 @@ 'import' => 'static' ) ), - 'version' => '561d400a81b4d92e0ab6' + 'version' => 'f6c3c0c637fe0ed2dbd2' ), 'connectors/index.js' => array( 'dependencies' => array( @@ -173,7 +173,7 @@ 'wp-i18n', 'wp-private-apis' ), - 'version' => '8aa4346de9f4f9cbfaef' + 'version' => '2023d06e79a4d7c81c30' ), 'core-abilities/index.js' => array( 'dependencies' => array( @@ -219,7 +219,7 @@ 'import' => 'static' ) ), - 'version' => 'cbb305a20ffe909edb3f' + 'version' => '9e49b9edcfc16dc5203c' ), 'interactivity/index.js' => array( 'dependencies' => array( @@ -287,7 +287,7 @@ 'wp-private-apis', 'wp-style-engine' ), - 'version' => 'c47585d95b153150f9ca' + 'version' => 'e50dce77f58e6e3ffa9b' ), 'route/index.js' => array( 'dependencies' => array( @@ -339,7 +339,7 @@ 'react-jsx-runtime', 'wp-element' ), - 'version' => '55c447d6c4f9173d3807' + 'version' => '3047de39283129372300' ), 'workflow/index.js' => array( 'dependencies' => array( @@ -372,6 +372,6 @@ 'import' => 'dynamic' ) ), - 'version' => 'ae47f7969209ea3ca721' + 'version' => '02fa947b818b1e4c07fd' ) ); \ No newline at end of file diff --git a/src/wp-includes/blocks/accordion-item/block.json b/src/wp-includes/blocks/accordion-item/block.json index 22987b9558a5f..1f172072345f6 100644 --- a/src/wp-includes/blocks/accordion-item/block.json +++ b/src/wp-includes/blocks/accordion-item/block.json @@ -9,9 +9,15 @@ "allowedBlocks": [ "core/accordion-heading", "core/accordion-panel" ], "supports": { "html": false, + "background": { + "gradient": true + }, "color": { "background": true, - "gradients": true + "gradients": true, + "link": true, + "heading": true, + "button": true }, "interactivity": true, "spacing": { diff --git a/src/wp-includes/blocks/accordion-panel/block.json b/src/wp-includes/blocks/accordion-panel/block.json index eb4403c4cc49e..f199d262fff02 100644 --- a/src/wp-includes/blocks/accordion-panel/block.json +++ b/src/wp-includes/blocks/accordion-panel/block.json @@ -10,9 +10,17 @@ "supports": { "__experimentalOnEnter": true, "html": false, + "background": { + "backgroundImage": true, + "backgroundSize": true, + "gradient": true + }, "color": { "background": true, - "gradients": true + "gradients": true, + "link": true, + "heading": true, + "button": true }, "interactivity": true, "spacing": { diff --git a/src/wp-includes/blocks/accordion/block.json b/src/wp-includes/blocks/accordion/block.json index 5a5d709cbc48e..219fdc2c01948 100644 --- a/src/wp-includes/blocks/accordion/block.json +++ b/src/wp-includes/blocks/accordion/block.json @@ -20,7 +20,10 @@ }, "color": { "background": true, - "gradients": true + "gradients": true, + "link": true, + "heading": true, + "button": true }, "__experimentalBorder": { "color": true, diff --git a/src/wp-includes/blocks/archives/block.json b/src/wp-includes/blocks/archives/block.json index c689b34ba9d24..7455b558c0d18 100644 --- a/src/wp-includes/blocks/archives/block.json +++ b/src/wp-includes/blocks/archives/block.json @@ -33,6 +33,15 @@ "width": true, "style": true }, + "background": { + "backgroundImage": true, + "backgroundSize": true, + "gradient": true, + "__experimentalDefaultControls": { + "backgroundImage": true, + "gradient": true + } + }, "html": false, "spacing": { "margin": true, diff --git a/src/wp-includes/blocks/audio/block.json b/src/wp-includes/blocks/audio/block.json index 9b77efee23cce..34061ca960984 100644 --- a/src/wp-includes/blocks/audio/block.json +++ b/src/wp-includes/blocks/audio/block.json @@ -51,6 +51,14 @@ "supports": { "anchor": true, "align": true, + "color": { + "background": false, + "link": true, + "text": false, + "__experimentalDefaultControls": { + "link": true + } + }, "spacing": { "margin": true, "padding": true, diff --git a/src/wp-includes/blocks/blocks-json.php b/src/wp-includes/blocks/blocks-json.php index 1db9063e0b42b..73e0bebb8fb78 100644 --- a/src/wp-includes/blocks/blocks-json.php +++ b/src/wp-includes/blocks/blocks-json.php @@ -26,7 +26,10 @@ ), 'color' => array( 'background' => true, - 'gradients' => true + 'gradients' => true, + 'link' => true, + 'heading' => true, + 'button' => true ), '__experimentalBorder' => array( 'color' => true, @@ -216,9 +219,15 @@ ), 'supports' => array( 'html' => false, + 'background' => array( + 'gradient' => true + ), 'color' => array( 'background' => true, - 'gradients' => true + 'gradients' => true, + 'link' => true, + 'heading' => true, + 'button' => true ), 'interactivity' => true, 'spacing' => array( @@ -288,9 +297,17 @@ 'supports' => array( '__experimentalOnEnter' => true, 'html' => false, + 'background' => array( + 'backgroundImage' => true, + 'backgroundSize' => true, + 'gradient' => true + ), 'color' => array( 'background' => true, - 'gradients' => true + 'gradients' => true, + 'link' => true, + 'heading' => true, + 'button' => true ), 'interactivity' => true, 'spacing' => array( @@ -388,6 +405,15 @@ 'width' => true, 'style' => true ), + 'background' => array( + 'backgroundImage' => true, + 'backgroundSize' => true, + 'gradient' => true, + '__experimentalDefaultControls' => array( + 'backgroundImage' => true, + 'gradient' => true + ) + ), 'html' => false, 'spacing' => array( 'margin' => true, @@ -482,6 +508,14 @@ 'supports' => array( 'anchor' => true, 'align' => true, + 'color' => array( + 'background' => false, + 'link' => true, + 'text' => false, + '__experimentalDefaultControls' => array( + 'link' => true + ) + ), 'spacing' => array( 'margin' => true, 'padding' => true, @@ -653,6 +687,9 @@ 'margin' => true, 'padding' => true ), + 'background' => array( + 'gradient' => true + ), 'color' => array( 'gradients' => true, 'link' => true, @@ -891,6 +928,15 @@ ), 'html' => false, '__experimentalExposeControlsToChildren' => true, + 'background' => array( + 'backgroundImage' => true, + 'backgroundSize' => true, + 'gradient' => true, + '__experimentalDefaultControls' => array( + 'backgroundImage' => true, + 'gradient' => true + ) + ), 'color' => array( 'gradients' => true, 'text' => false, @@ -1058,6 +1104,15 @@ 'supports' => array( 'anchor' => true, 'align' => true, + 'background' => array( + 'backgroundImage' => true, + 'backgroundSize' => true, + 'gradient' => true, + '__experimentalDefaultControls' => array( + 'backgroundImage' => true, + 'gradient' => true + ) + ), 'html' => false, 'spacing' => array( 'margin' => true, @@ -1070,6 +1125,7 @@ 'typography' => array( 'fontSize' => true, 'lineHeight' => true, + 'textColumns' => true, '__experimentalFontFamily' => true, '__experimentalFontWeight' => true, '__experimentalFontStyle' => true, @@ -1103,7 +1159,8 @@ 'width' => true, 'style' => true ) - ) + ), + 'shadow' => true ), 'editorStyle' => 'wp-block-categories-editor', 'style' => 'wp-block-categories' @@ -1130,6 +1187,15 @@ 'wide' ), 'anchor' => true, + 'background' => array( + 'backgroundImage' => true, + 'backgroundSize' => true, + 'gradient' => true, + '__experimentalDefaultControls' => array( + 'backgroundImage' => true, + 'gradient' => true + ) + ), 'typography' => array( 'fontSize' => true, 'lineHeight' => true, @@ -1173,6 +1239,7 @@ 'text' => true ) ), + 'shadow' => true, 'interactivity' => array( 'clientNavigation' => true ) @@ -1215,6 +1282,15 @@ 'anchor' => true, 'reusable' => false, 'html' => false, + 'background' => array( + 'backgroundImage' => true, + 'backgroundSize' => true, + 'gradient' => true, + '__experimentalDefaultControls' => array( + 'backgroundImage' => true, + 'gradient' => true + ) + ), 'color' => array( 'gradients' => true, 'heading' => true, @@ -1315,6 +1391,15 @@ 'text' => true ) ), + 'background' => array( + 'backgroundImage' => true, + 'backgroundSize' => true, + 'gradient' => true, + '__experimentalDefaultControls' => array( + 'backgroundImage' => true, + 'gradient' => true + ) + ), 'spacing' => array( 'blockGap' => array( '__experimentalDefault' => '2em', @@ -1402,6 +1487,9 @@ 'supports' => array( 'anchor' => true, 'html' => false, + 'background' => array( + 'gradient' => true + ), 'spacing' => array( 'margin' => true, 'padding' => true @@ -1463,8 +1551,13 @@ ), 'supports' => array( 'anchor' => true, + 'background' => array( + 'gradient' => true + ), 'color' => array( 'gradients' => true, + 'heading' => true, + 'button' => true, 'link' => true, '__experimentalDefaultControls' => array( 'background' => true, @@ -1536,6 +1629,9 @@ 'supports' => array( 'anchor' => true, 'html' => false, + 'background' => array( + 'gradient' => true + ), 'color' => array( 'gradients' => true, 'link' => true, @@ -1604,6 +1700,9 @@ 'supports' => array( 'anchor' => true, 'html' => false, + 'background' => array( + 'gradient' => true + ), 'color' => array( 'link' => true, 'gradients' => true, @@ -1663,6 +1762,9 @@ ), 'supports' => array( 'anchor' => true, + 'background' => array( + 'gradient' => true + ), 'color' => array( 'gradients' => true, 'link' => true, @@ -1783,8 +1885,18 @@ 'full' ), 'html' => false, + 'background' => array( + 'backgroundImage' => true, + 'backgroundSize' => true, + 'gradient' => true, + '__experimentalDefaultControls' => array( + 'backgroundImage' => true, + 'gradient' => true + ) + ), 'color' => array( 'gradients' => true, + 'button' => true, 'heading' => true, 'link' => true, '__experimentalDefaultControls' => array( @@ -1864,6 +1976,9 @@ 'align' => true, 'reusable' => false, 'html' => false, + 'background' => array( + 'gradient' => true + ), 'color' => array( 'gradients' => true, 'link' => true, @@ -1924,6 +2039,9 @@ 'anchor' => true, 'reusable' => false, 'html' => false, + 'background' => array( + 'gradient' => true + ), 'color' => array( 'gradients' => true, 'text' => false, @@ -1967,6 +2085,9 @@ 'anchor' => true, 'reusable' => false, 'html' => false, + 'background' => array( + 'gradient' => true + ), 'color' => array( 'gradients' => true, 'text' => false, @@ -2023,6 +2144,12 @@ 'anchor' => true, 'reusable' => false, 'html' => false, + 'background' => array( + 'gradient' => true, + '__experimentalDefaultControls' => array( + 'gradient' => true + ) + ), 'color' => array( 'gradients' => true, 'text' => false, @@ -2084,6 +2211,9 @@ 'anchor' => true, 'align' => true, 'html' => false, + 'background' => array( + 'gradient' => true + ), '__experimentalBorder' => array( 'radius' => true, 'color' => true, @@ -2350,9 +2480,20 @@ 'full' ), 'anchor' => true, + 'background' => array( + 'backgroundImage' => true, + 'backgroundSize' => true, + 'gradient' => true, + '__experimentalDefaultControls' => array( + 'backgroundImage' => true, + 'gradient' => true + ) + ), 'color' => array( 'gradients' => true, 'link' => true, + 'heading' => true, + 'button' => true, '__experimentalDefaultControls' => array( 'background' => true, 'text' => true @@ -2364,6 +2505,7 @@ 'style' => true ), 'html' => false, + 'shadow' => true, 'spacing' => array( 'margin' => true, 'padding' => true, @@ -2523,6 +2665,15 @@ 'supports' => array( 'anchor' => true, 'align' => true, + 'background' => array( + 'backgroundImage' => true, + 'backgroundSize' => true, + 'gradient' => true, + '__experimentalDefaultControls' => array( + 'backgroundImage' => true, + 'gradient' => true + ) + ), 'spacing' => array( 'margin' => true, 'padding' => true @@ -2570,6 +2721,15 @@ ), 'supports' => array( 'anchor' => true, + 'background' => array( + 'backgroundImage' => true, + 'backgroundSize' => true, + 'gradient' => true, + '__experimentalDefaultControls' => array( + 'backgroundImage' => true, + 'gradient' => true + ) + ), '__experimentalBorder' => array( 'radius' => true, 'color' => true, @@ -2595,6 +2755,7 @@ 'multiple' => false, 'reusable' => false, 'inserter' => false, + 'shadow' => true, 'spacing' => array( 'margin' => true, 'padding' => true, @@ -2796,6 +2957,15 @@ 'supports' => array( 'anchor' => true, 'align' => true, + 'background' => array( + 'backgroundImage' => true, + 'backgroundSize' => true, + 'gradient' => true, + '__experimentalDefaultControls' => array( + 'backgroundImage' => true, + 'gradient' => true + ) + ), '__experimentalBorder' => array( 'radius' => true, 'color' => true, @@ -2955,6 +3125,7 @@ 'typography' => array( 'fontSize' => true, 'lineHeight' => true, + 'textColumns' => true, '__experimentalFontFamily' => true, '__experimentalFontWeight' => true, '__experimentalFontStyle' => true, @@ -3014,6 +3185,15 @@ 'anchor' => true, 'className' => true, 'splitting' => true, + 'background' => array( + 'backgroundImage' => true, + 'backgroundSize' => true, + 'gradient' => true, + '__experimentalDefaultControls' => array( + 'backgroundImage' => true, + 'gradient' => true + ) + ), '__experimentalBorder' => array( 'color' => true, 'radius' => true, @@ -3028,6 +3208,7 @@ 'text' => true ) ), + 'shadow' => true, 'spacing' => array( 'margin' => true, 'padding' => true, @@ -3047,6 +3228,7 @@ '__experimentalTextTransform' => true, '__experimentalTextDecoration' => true, '__experimentalWritingMode' => true, + 'textShadow' => true, 'fitText' => true, '__experimentalDefaultControls' => array( 'fontSize' => true @@ -3098,6 +3280,11 @@ 'anchor' => true, 'reusable' => false, 'html' => false, + 'background' => array( + 'backgroundImage' => true, + 'backgroundSize' => true, + 'gradient' => true + ), 'typography' => array( 'fontSize' => true, 'lineHeight' => true, @@ -3111,6 +3298,19 @@ 'fontSize' => true ) ), + 'shadow' => true, + '__experimentalBorder' => array( + 'color' => true, + 'radius' => true, + 'style' => true, + 'width' => true, + '__experimentalDefaultControls' => array( + 'color' => false, + 'radius' => false, + 'style' => false, + 'width' => false + ) + ), 'interactivity' => array( 'clientNavigation' => true ) @@ -3456,6 +3656,15 @@ 'supports' => array( 'anchor' => true, 'align' => true, + 'background' => array( + 'backgroundImage' => true, + 'backgroundSize' => true, + 'gradient' => true, + '__experimentalDefaultControls' => array( + 'backgroundImage' => true, + 'gradient' => true + ) + ), 'color' => array( 'gradients' => true, 'link' => true, @@ -3470,6 +3679,7 @@ 'margin' => true, 'padding' => true ), + 'shadow' => true, 'typography' => array( 'fontSize' => true, 'lineHeight' => true, @@ -3576,6 +3786,15 @@ 'align' => true, 'html' => false, 'layout' => true, + 'background' => array( + 'backgroundImage' => true, + 'backgroundSize' => true, + 'gradient' => true, + '__experimentalDefaultControls' => array( + 'backgroundImage' => true, + 'gradient' => true + ) + ), 'color' => array( 'gradients' => true, 'link' => true, @@ -3620,6 +3839,7 @@ 'style' => true ) ), + 'shadow' => true, 'interactivity' => array( 'clientNavigation' => true ) @@ -3858,6 +4078,15 @@ 'supports' => array( 'anchor' => true, 'className' => true, + 'background' => array( + 'backgroundImage' => true, + 'backgroundSize' => true, + 'gradient' => true, + '__experimentalDefaultControls' => array( + 'backgroundImage' => true, + 'gradient' => true + ) + ), 'color' => array( 'background' => true, 'text' => false, @@ -3891,6 +4120,7 @@ 'width' => true, 'style' => true ), + 'shadow' => true, 'interactivity' => array( 'clientNavigation' => true ) @@ -3920,6 +4150,15 @@ 'style' => true, 'width' => true ), + 'background' => array( + 'backgroundImage' => true, + 'backgroundSize' => true, + 'gradient' => true, + '__experimentalDefaultControls' => array( + 'backgroundImage' => true, + 'gradient' => true + ) + ), 'color' => array( 'gradients' => true, '__experimentalDefaultControls' => array( @@ -3927,6 +4166,7 @@ 'text' => true ) ), + 'shadow' => true, 'spacing' => array( 'margin' => true, 'padding' => true, @@ -3948,6 +4188,8 @@ 'attributes' => array( 'latex' => array( 'type' => 'string', + 'source' => 'text', + 'selector' => 'math annotation[encoding="application/x-tex"]', 'role' => 'content' ), 'mathML' => array( @@ -4084,6 +4326,7 @@ 'gradients' => true, 'heading' => true, 'link' => true, + 'button' => true, '__experimentalDefaultControls' => array( 'background' => true, 'text' => true @@ -4497,6 +4740,13 @@ 'text' => true ) ), + 'shadow' => true, + '__experimentalBorder' => array( + 'color' => true, + 'radius' => true, + 'style' => true, + 'width' => true + ), 'spacing' => array( 'padding' => true, '__experimentalDefaultControls' => array( @@ -4606,10 +4856,16 @@ 'fontSize' => true ) ), + 'shadow' => array( + '__experimentalSkipSerialization' => true + ), 'interactivity' => array( 'clientNavigation' => true ) ), + 'selectors' => array( + 'shadow' => '.wp-block-navigation-submenu > .wp-block-navigation__submenu-container' + ), 'editorStyle' => 'wp-block-navigation-submenu-editor', 'style' => 'wp-block-navigation-submenu' ), @@ -4698,6 +4954,15 @@ 'interactivity' => array( 'clientNavigation' => true ), + 'background' => array( + 'backgroundImage' => true, + 'backgroundSize' => true, + 'gradient' => true, + '__experimentalDefaultControls' => array( + 'backgroundImage' => true, + 'gradient' => true + ) + ), 'color' => array( 'text' => true, 'background' => true, @@ -4723,6 +4988,7 @@ 'margin' => false ) ), + 'shadow' => true, 'contentRole' => true ), 'editorStyle' => 'wp-block-page-list-editor', @@ -4867,6 +5133,7 @@ '__experimentalLetterSpacing' => true, '__experimentalTextTransform' => true, '__experimentalWritingMode' => true, + 'textShadow' => true, 'fitText' => true, '__experimentalDefaultControls' => array( 'fontSize' => true @@ -5012,6 +5279,7 @@ ) ), 'interactivity' => true, + 'shadow' => true, 'spacing' => array( 'margin' => true, 'padding' => true @@ -5215,7 +5483,10 @@ 'margin' => true, 'padding' => true ), - 'color' => array( + 'background' => array( + 'gradient' => true + ), + 'color' => array( 'gradients' => true, 'link' => true, '__experimentalDefaultControls' => array( @@ -5227,6 +5498,7 @@ 'fontSize' => true, 'lineHeight' => true, 'textAlign' => true, + 'textColumns' => true, '__experimentalFontFamily' => true, '__experimentalFontWeight' => true, '__experimentalFontStyle' => true, @@ -5285,6 +5557,11 @@ 'supports' => array( 'anchor' => true, 'html' => false, + 'background' => array( + 'backgroundImage' => true, + 'backgroundSize' => true, + 'gradient' => true + ), 'spacing' => array( 'margin' => true, 'padding' => true @@ -5347,6 +5624,9 @@ 'supports' => array( 'anchor' => true, 'html' => false, + 'background' => array( + 'gradient' => true + ), 'color' => array( 'gradients' => true, '__experimentalDefaultControls' => array( @@ -5399,7 +5679,17 @@ 'supports' => array( 'anchor' => true, 'html' => false, + 'background' => array( + 'backgroundImage' => true, + 'backgroundSize' => true, + 'gradient' => true, + '__experimentalDefaultControls' => array( + 'backgroundImage' => true, + 'gradient' => true + ) + ), 'color' => array( + 'button' => true, 'gradients' => true, 'heading' => true, 'link' => true, @@ -5556,6 +5846,7 @@ 'dimensions' => array( 'minHeight' => true ), + 'shadow' => true, 'spacing' => array( 'blockGap' => true, 'padding' => true, @@ -5567,6 +5858,7 @@ ), 'color' => array( 'gradients' => true, + 'button' => true, 'heading' => true, 'link' => true, '__experimentalDefaultControls' => array( @@ -5577,6 +5869,7 @@ 'typography' => array( 'fontSize' => true, 'lineHeight' => true, + 'textAlign' => true, '__experimentalFontFamily' => true, '__experimentalFontWeight' => true, '__experimentalFontStyle' => true, @@ -5639,6 +5932,9 @@ 'supports' => array( 'anchor' => true, 'html' => false, + 'background' => array( + 'gradient' => true + ), 'color' => array( 'gradients' => true, 'link' => true, @@ -5716,6 +6012,11 @@ 'supports' => array( 'anchor' => true, 'html' => false, + 'background' => array( + 'backgroundImage' => true, + 'backgroundSize' => true, + 'gradient' => true + ), 'color' => array( 'gradients' => true, 'link' => true, @@ -5725,6 +6026,7 @@ 'link' => true ) ), + 'shadow' => true, 'spacing' => array( 'margin' => true, 'padding' => true @@ -5942,10 +6244,40 @@ 'fontSize' => true ) ), + 'shadow' => array( + '__experimentalSkipSerialization' => true + ), 'interactivity' => array( 'clientNavigation' => true + ), + 'spacing' => array( + '__experimentalSkipSerialization' => true, + 'margin' => true, + 'padding' => true, + '__experimentalDefaultControls' => array( + 'margin' => false, + 'padding' => false + ) + ), + '__experimentalBorder' => array( + '__experimentalSkipSerialization' => true, + 'color' => true, + 'radius' => true, + 'style' => true, + 'width' => true, + '__experimentalDefaultControls' => array( + 'color' => false, + 'radius' => false, + 'style' => false, + 'width' => false + ) ) ), + 'selectors' => array( + 'border' => '.wp-block-post-navigation-link:not(:empty)', + 'shadow' => '.wp-block-post-navigation-link:not(:empty)', + 'spacing' => '.wp-block-post-navigation-link:not(:empty)' + ), 'style' => 'wp-block-post-navigation-link' ), 'post-template' => array( @@ -5978,9 +6310,20 @@ 'full' ), 'layout' => true, + 'background' => array( + 'backgroundImage' => true, + 'backgroundSize' => true, + 'gradient' => true, + '__experimentalDefaultControls' => array( + 'backgroundImage' => true, + 'gradient' => true + ) + ), 'color' => array( 'gradients' => true, 'link' => true, + 'heading' => true, + 'button' => true, '__experimentalDefaultControls' => array( 'background' => true, 'text' => true @@ -6019,7 +6362,8 @@ 'color' => true, 'width' => true, 'style' => true - ) + ), + 'shadow' => true ), 'style' => 'wp-block-post-template', 'editorStyle' => 'wp-block-post-template-editor' @@ -6061,6 +6405,11 @@ 'supports' => array( 'anchor' => true, 'html' => false, + 'background' => array( + 'backgroundImage' => true, + 'backgroundSize' => true, + 'gradient' => true + ), 'color' => array( 'gradients' => true, 'link' => true, @@ -6070,6 +6419,7 @@ 'link' => true ) ), + 'shadow' => true, 'spacing' => array( 'margin' => true, 'padding' => true @@ -6134,6 +6484,11 @@ ), 'supports' => array( 'anchor' => true, + 'background' => array( + 'backgroundImage' => true, + 'backgroundSize' => true, + 'gradient' => true + ), 'color' => array( 'gradients' => true, '__experimentalDefaultControls' => array( @@ -6142,6 +6497,7 @@ ) ), 'html' => false, + 'shadow' => true, 'spacing' => array( 'margin' => true, 'padding' => true, @@ -6226,6 +6582,15 @@ 'full' ), 'html' => false, + 'background' => array( + 'backgroundImage' => true, + 'backgroundSize' => true, + 'gradient' => true, + '__experimentalDefaultControls' => array( + 'backgroundImage' => true, + 'gradient' => true + ) + ), 'color' => array( 'gradients' => true, 'link' => true, @@ -6235,6 +6600,7 @@ 'link' => true ) ), + 'shadow' => true, 'spacing' => array( 'margin' => true, 'padding' => true @@ -6290,13 +6656,20 @@ ), 'supports' => array( 'anchor' => true, + 'background' => array( + 'backgroundImage' => true, + 'backgroundSize' => true, + 'gradient' => true + ), 'color' => array( 'gradients' => true, + 'link' => true, '__experimentalDefaultControls' => array( 'background' => true, 'text' => true ) ), + 'shadow' => true, 'spacing' => array( 'padding' => true, 'margin' => true @@ -6383,6 +6756,7 @@ 'dimensions' => array( 'minHeight' => true ), + 'shadow' => true, 'spacing' => array( 'margin' => true, 'padding' => true @@ -6528,9 +6902,16 @@ 'align' => true, 'reusable' => false, 'html' => false, + 'background' => array( + 'backgroundImage' => true, + 'backgroundSize' => true, + 'gradient' => true + ), 'color' => array( 'gradients' => true, - 'link' => true + 'link' => true, + 'heading' => true, + 'button' => true ), 'spacing' => array( 'padding' => true, @@ -6561,7 +6942,8 @@ 'color' => true, 'width' => true, 'style' => true - ) + ), + 'shadow' => true ), 'style' => 'wp-block-query-no-results' ), @@ -6604,6 +6986,9 @@ 'align' => true, 'reusable' => false, 'html' => false, + 'background' => array( + 'gradient' => true + ), 'color' => array( 'gradients' => true, 'link' => true, @@ -6667,6 +7052,9 @@ 'anchor' => true, 'reusable' => false, 'html' => false, + 'background' => array( + 'gradient' => true + ), 'color' => array( 'gradients' => true, 'text' => false, @@ -6718,6 +7106,9 @@ 'anchor' => true, 'reusable' => false, 'html' => false, + 'background' => array( + 'gradient' => true + ), 'color' => array( 'gradients' => true, 'text' => false, @@ -6771,6 +7162,9 @@ 'anchor' => true, 'reusable' => false, 'html' => false, + 'background' => array( + 'gradient' => true + ), 'color' => array( 'gradients' => true, 'text' => false, @@ -6839,6 +7233,9 @@ 'full' ), 'html' => false, + 'background' => array( + 'gradient' => true + ), 'color' => array( 'gradients' => true, '__experimentalDefaultControls' => array( @@ -6910,6 +7307,11 @@ 'full' ), 'html' => false, + 'background' => array( + 'backgroundImage' => true, + 'backgroundSize' => true, + 'gradient' => true + ), 'spacing' => array( 'margin' => true, 'padding' => true @@ -6946,6 +7348,7 @@ 'style' => true ) ), + 'shadow' => true, 'interactivity' => array( 'clientNavigation' => true ) @@ -7043,6 +7446,7 @@ 'text' => true ) ), + 'shadow' => true, 'layout' => array( 'allowEditing' => false ), @@ -7094,6 +7498,11 @@ 'supports' => array( 'anchor' => true, 'html' => false, + 'background' => array( + 'backgroundImage' => true, + 'backgroundSize' => true, + 'gradient' => true + ), 'color' => array( 'gradients' => true, 'text' => true @@ -7130,6 +7539,7 @@ 'width' => true ) ), + 'shadow' => true, 'interactivity' => array( 'clientNavigation' => true ) @@ -7211,6 +7621,12 @@ 'margin' => false ) ), + 'shadow' => true, + 'background' => array( + 'backgroundImage' => true, + 'backgroundSize' => true, + 'gradient' => true + ), 'color' => array( 'background' => true, 'text' => true, @@ -7547,6 +7963,11 @@ 'full' ), 'html' => false, + 'background' => array( + 'backgroundImage' => true, + 'backgroundSize' => true, + 'gradient' => true + ), 'color' => array( 'gradients' => true, '__experimentalDefaultControls' => array( @@ -7574,6 +7995,7 @@ '__experimentalFontWeight' => true, '__experimentalLetterSpacing' => true, '__experimentalWritingMode' => true, + 'fitText' => true, '__experimentalDefaultControls' => array( 'fontSize' => true ) @@ -7586,7 +8008,8 @@ 'color' => true, 'width' => true, 'style' => true - ) + ), + 'shadow' => true ), 'editorStyle' => 'wp-block-site-tagline-editor', 'style' => 'wp-block-site-tagline' @@ -7637,6 +8060,11 @@ 'full' ), 'html' => false, + 'background' => array( + 'backgroundImage' => true, + 'backgroundSize' => true, + 'gradient' => true + ), 'color' => array( 'gradients' => true, 'link' => true, @@ -7678,7 +8106,8 @@ 'color' => true, 'width' => true, 'style' => true - ) + ), + 'shadow' => true ), 'editorStyle' => 'wp-block-site-title-editor', 'style' => 'wp-block-site-title' @@ -7798,6 +8227,9 @@ 'type' => 'flex' ) ), + 'background' => array( + 'gradient' => true + ), 'color' => array( 'enableContrastChecker' => false, 'background' => true, @@ -8013,9 +8445,21 @@ ), 'supports' => array( 'anchor' => true, + 'background' => array( + 'backgroundImage' => true, + 'backgroundSize' => true, + 'gradient' => true, + '__experimentalDefaultControls' => array( + 'backgroundImage' => true, + 'gradient' => true + ) + ), 'html' => false, 'color' => array( 'background' => true, + 'button' => true, + 'heading' => true, + 'link' => true, 'text' => true, '__experimentalDefaultControls' => array( 'background' => true, @@ -8023,18 +8467,31 @@ ) ), 'layout' => true, + 'shadow' => true, 'spacing' => array( 'blockGap' => true, 'padding' => true ), 'typography' => array( 'fontSize' => true, + 'lineHeight' => true, '__experimentalFontFamily' => true, + '__experimentalFontWeight' => true, + '__experimentalFontStyle' => true, + '__experimentalTextTransform' => true, + '__experimentalTextDecoration' => true, + '__experimentalLetterSpacing' => true, '__experimentalDefaultControls' => array( 'fontSize' => true, '__experimentalFontFamily' => true ) ), + '__experimentalBorder' => array( + 'color' => true, + 'radius' => true, + 'style' => true, + 'width' => true + ), 'visibility' => false ), 'providesContext' => array( @@ -8064,18 +8521,35 @@ 'background' => true, 'text' => true, 'heading' => true, + 'button' => true, 'link' => true, '__experimentalDefaultControls' => array( 'background' => true, 'text' => true ) ), + 'background' => array( + 'backgroundImage' => true, + 'backgroundSize' => true, + 'gradient' => true, + '__experimentalDefaultControls' => array( + 'backgroundImage' => true, + 'gradient' => true + ) + ), + 'shadow' => true, 'spacing' => array( 'padding' => true ), 'typography' => array( 'fontSize' => true, - '__experimentalFontFamily' => true + 'lineHeight' => true, + '__experimentalFontFamily' => true, + '__experimentalFontWeight' => true, + '__experimentalFontStyle' => true, + '__experimentalTextTransform' => true, + '__experimentalTextDecoration' => true, + '__experimentalLetterSpacing' => true ), '__experimentalBorder' => array( 'radius' => true, @@ -8345,14 +8819,31 @@ 'supports' => array( 'align' => true, 'anchor' => true, + 'background' => array( + 'backgroundImage' => true, + 'backgroundSize' => true, + 'gradient' => true, + '__experimentalDefaultControls' => array( + 'backgroundImage' => true + ) + ), 'color' => array( 'text' => true, 'background' => true, + 'heading' => true, + 'button' => true, + 'link' => true, '__experimentalDefaultControls' => array( 'text' => true, 'background' => true ) ), + '__experimentalBorder' => array( + 'color' => true, + 'radius' => true, + 'style' => true, + 'width' => true + ), 'layout' => array( 'allowEditing' => false ), @@ -8363,9 +8854,15 @@ 'margin' => true, 'padding' => true ), + 'shadow' => true, 'typography' => array( 'fontSize' => true, - '__experimentalFontFamily' => true + 'lineHeight' => true, + '__experimentalFontFamily' => true, + '__experimentalFontWeight' => true, + '__experimentalFontStyle' => true, + '__experimentalTextTransform' => true, + '__experimentalLetterSpacing' => true ) ), 'usesContext' => array( @@ -8420,8 +8917,27 @@ ), 'supports' => array( 'anchor' => true, + 'background' => array( + 'backgroundImage' => true, + 'backgroundSize' => true, + 'gradient' => true, + '__experimentalDefaultControls' => array( + 'backgroundImage' => true, + 'gradient' => true + ) + ), 'html' => false, 'align' => true, + 'color' => array( + 'background' => true, + 'link' => true, + 'text' => false, + '__experimentalDefaultControls' => array( + 'background' => true, + 'link' => true + ) + ), + 'shadow' => true, 'spacing' => array( 'margin' => true, 'padding' => true @@ -8512,6 +9028,11 @@ 'supports' => array( 'anchor' => true, 'html' => false, + 'background' => array( + 'backgroundImage' => true, + 'backgroundSize' => true, + 'gradient' => true + ), 'color' => array( 'gradients' => true, '__experimentalDefaultControls' => array( @@ -8519,12 +9040,14 @@ 'text' => true ) ), + 'shadow' => true, 'spacing' => array( 'padding' => true ), 'typography' => array( 'fontSize' => true, 'lineHeight' => true, + 'textAlign' => true, '__experimentalFontFamily' => true, '__experimentalFontWeight' => true, '__experimentalFontStyle' => true, @@ -8571,6 +9094,14 @@ 'full' ), 'html' => false, + 'background' => array( + 'backgroundImage' => true, + 'backgroundSize' => true, + 'gradient' => true, + '__experimentalDefaultControls' => array( + 'backgroundImage' => true + ) + ), 'color' => array( 'link' => true, '__experimentalDefaultControls' => array( @@ -8599,6 +9130,7 @@ 'interactivity' => array( 'clientNavigation' => true ), + 'shadow' => true, '__experimentalBorder' => array( 'radius' => true, 'color' => true, @@ -8648,6 +9180,15 @@ 'full' ), 'html' => false, + 'background' => array( + 'backgroundImage' => true, + 'backgroundSize' => true, + 'gradient' => true, + '__experimentalDefaultControls' => array( + 'backgroundImage' => true, + 'gradient' => true + ) + ), 'color' => array( 'gradients' => true, 'link' => true, @@ -8657,6 +9198,7 @@ 'link' => true ) ), + 'shadow' => true, 'spacing' => array( 'padding' => true ), @@ -8714,6 +9256,14 @@ 'full' ), 'layout' => true, + 'background' => array( + 'backgroundImage' => true, + 'backgroundSize' => true, + 'gradient' => true, + '__experimentalDefaultControls' => array( + 'backgroundImage' => true + ) + ), 'color' => array( 'gradients' => true, 'link' => true, @@ -8755,7 +9305,8 @@ 'color' => true, 'width' => true, 'style' => true - ) + ), + 'shadow' => true ), 'style' => 'wp-block-term-template', 'editorStyle' => 'wp-block-term-template-editor' @@ -8924,6 +9475,7 @@ 'fontSize' => true ) ), + 'shadow' => true, 'spacing' => array( 'margin' => true, 'padding' => true, @@ -9052,8 +9604,14 @@ ), 'interactivity' => array( 'clientNavigation' => true + ), + 'shadow' => array( + '__experimentalSkipSerialization' => true ) ), + 'selectors' => array( + 'shadow' => '.wp-block-video video' + ), 'editorStyle' => 'wp-block-video-editor', 'style' => 'wp-block-video' ), diff --git a/src/wp-includes/blocks/breadcrumbs.php b/src/wp-includes/blocks/breadcrumbs.php index b633a9bc62ac1..02c038dd057ea 100644 --- a/src/wp-includes/blocks/breadcrumbs.php +++ b/src/wp-includes/blocks/breadcrumbs.php @@ -188,7 +188,7 @@ function render_block_core_breadcrumbs( $attributes, $content, $block ) { $wrapper_attributes = get_block_wrapper_attributes( array( 'style' => '--separator: "' . $separator . '";', - 'aria-label' => __( 'Breadcrumbs' ), + 'aria-label' => _x( 'Breadcrumbs', 'area label' ), ) ); diff --git a/src/wp-includes/blocks/breadcrumbs/block.json b/src/wp-includes/blocks/breadcrumbs/block.json index 597e36c41ae50..eda68cbd66714 100644 --- a/src/wp-includes/blocks/breadcrumbs/block.json +++ b/src/wp-includes/blocks/breadcrumbs/block.json @@ -37,6 +37,9 @@ "margin": true, "padding": true }, + "background": { + "gradient": true + }, "color": { "gradients": true, "link": true, diff --git a/src/wp-includes/blocks/buttons/block.json b/src/wp-includes/blocks/buttons/block.json index 1a2f4d151c797..4927a9644837b 100644 --- a/src/wp-includes/blocks/buttons/block.json +++ b/src/wp-includes/blocks/buttons/block.json @@ -13,6 +13,15 @@ "align": [ "wide", "full" ], "html": false, "__experimentalExposeControlsToChildren": true, + "background": { + "backgroundImage": true, + "backgroundSize": true, + "gradient": true, + "__experimentalDefaultControls": { + "backgroundImage": true, + "gradient": true + } + }, "color": { "gradients": true, "text": false, diff --git a/src/wp-includes/blocks/calendar.php b/src/wp-includes/blocks/calendar.php index 44b56af25e466..e3870bb46adb5 100644 --- a/src/wp-includes/blocks/calendar.php +++ b/src/wp-includes/blocks/calendar.php @@ -63,7 +63,7 @@ function render_block_core_calendar( $attributes ) { $classnames .= ' has-link-color'; } // Apply color classes and styles to the calendar. - $calendar = str_replace( ' false ) ) ); $calendar = str_replace( 'class="wp-calendar-table', 'class="wp-calendar-table' . $classnames, $calendar ); $wrapper_attributes = get_block_wrapper_attributes(); diff --git a/src/wp-includes/blocks/categories/block.json b/src/wp-includes/blocks/categories/block.json index e9192495b7382..4a9bb599b6ac8 100644 --- a/src/wp-includes/blocks/categories/block.json +++ b/src/wp-includes/blocks/categories/block.json @@ -45,6 +45,15 @@ "supports": { "anchor": true, "align": true, + "background": { + "backgroundImage": true, + "backgroundSize": true, + "gradient": true, + "__experimentalDefaultControls": { + "backgroundImage": true, + "gradient": true + } + }, "html": false, "spacing": { "margin": true, @@ -57,6 +66,7 @@ "typography": { "fontSize": true, "lineHeight": true, + "textColumns": true, "__experimentalFontFamily": true, "__experimentalFontWeight": true, "__experimentalFontStyle": true, @@ -90,7 +100,8 @@ "width": true, "style": true } - } + }, + "shadow": true }, "editorStyle": "wp-block-categories-editor", "style": "wp-block-categories" diff --git a/src/wp-includes/blocks/code/block.json b/src/wp-includes/blocks/code/block.json index 547c370f2bc50..028a64620cac3 100644 --- a/src/wp-includes/blocks/code/block.json +++ b/src/wp-includes/blocks/code/block.json @@ -18,6 +18,15 @@ "supports": { "align": [ "wide" ], "anchor": true, + "background": { + "backgroundImage": true, + "backgroundSize": true, + "gradient": true, + "__experimentalDefaultControls": { + "backgroundImage": true, + "gradient": true + } + }, "typography": { "fontSize": true, "lineHeight": true, @@ -58,6 +67,7 @@ "text": true } }, + "shadow": true, "interactivity": { "clientNavigation": true } diff --git a/src/wp-includes/blocks/column/block.json b/src/wp-includes/blocks/column/block.json index e842baac05dcf..ebed319ce581b 100644 --- a/src/wp-includes/blocks/column/block.json +++ b/src/wp-includes/blocks/column/block.json @@ -24,6 +24,15 @@ "anchor": true, "reusable": false, "html": false, + "background": { + "backgroundImage": true, + "backgroundSize": true, + "gradient": true, + "__experimentalDefaultControls": { + "backgroundImage": true, + "gradient": true + } + }, "color": { "gradients": true, "heading": true, diff --git a/src/wp-includes/blocks/columns/block.json b/src/wp-includes/blocks/columns/block.json index 6d49a27e82eb0..dcd1193ca093e 100644 --- a/src/wp-includes/blocks/columns/block.json +++ b/src/wp-includes/blocks/columns/block.json @@ -34,6 +34,15 @@ "text": true } }, + "background": { + "backgroundImage": true, + "backgroundSize": true, + "gradient": true, + "__experimentalDefaultControls": { + "backgroundImage": true, + "gradient": true + } + }, "spacing": { "blockGap": { "__experimentalDefault": "2em", diff --git a/src/wp-includes/blocks/comment-author-name/block.json b/src/wp-includes/blocks/comment-author-name/block.json index 39210087e98b8..5c35619d7aff7 100644 --- a/src/wp-includes/blocks/comment-author-name/block.json +++ b/src/wp-includes/blocks/comment-author-name/block.json @@ -21,6 +21,9 @@ "supports": { "anchor": true, "html": false, + "background": { + "gradient": true + }, "spacing": { "margin": true, "padding": true diff --git a/src/wp-includes/blocks/comment-content/block.json b/src/wp-includes/blocks/comment-content/block.json index e64ddd27396d2..8c2b4014cb8db 100644 --- a/src/wp-includes/blocks/comment-content/block.json +++ b/src/wp-includes/blocks/comment-content/block.json @@ -10,8 +10,13 @@ "usesContext": [ "commentId" ], "supports": { "anchor": true, + "background": { + "gradient": true + }, "color": { "gradients": true, + "heading": true, + "button": true, "link": true, "__experimentalDefaultControls": { "background": true, diff --git a/src/wp-includes/blocks/comment-date/block.json b/src/wp-includes/blocks/comment-date/block.json index b58a1475efc7b..27a55e6c229b2 100644 --- a/src/wp-includes/blocks/comment-date/block.json +++ b/src/wp-includes/blocks/comment-date/block.json @@ -20,6 +20,9 @@ "supports": { "anchor": true, "html": false, + "background": { + "gradient": true + }, "color": { "gradients": true, "link": true, diff --git a/src/wp-includes/blocks/comment-edit-link/block.json b/src/wp-includes/blocks/comment-edit-link/block.json index f5d1c788741e0..70f8a7ce02861 100644 --- a/src/wp-includes/blocks/comment-edit-link/block.json +++ b/src/wp-includes/blocks/comment-edit-link/block.json @@ -17,6 +17,9 @@ "supports": { "anchor": true, "html": false, + "background": { + "gradient": true + }, "color": { "link": true, "gradients": true, diff --git a/src/wp-includes/blocks/comment-reply-link/block.json b/src/wp-includes/blocks/comment-reply-link/block.json index 38cd3f4b1337f..985c7e65cf8a3 100644 --- a/src/wp-includes/blocks/comment-reply-link/block.json +++ b/src/wp-includes/blocks/comment-reply-link/block.json @@ -10,6 +10,9 @@ "usesContext": [ "commentId" ], "supports": { "anchor": true, + "background": { + "gradient": true + }, "color": { "gradients": true, "link": true, diff --git a/src/wp-includes/blocks/comments-pagination-next/block.json b/src/wp-includes/blocks/comments-pagination-next/block.json index 34d568743dbb1..3b3c122a9084d 100644 --- a/src/wp-includes/blocks/comments-pagination-next/block.json +++ b/src/wp-includes/blocks/comments-pagination-next/block.json @@ -17,6 +17,9 @@ "anchor": true, "reusable": false, "html": false, + "background": { + "gradient": true + }, "color": { "gradients": true, "text": false, diff --git a/src/wp-includes/blocks/comments-pagination-numbers/block.json b/src/wp-includes/blocks/comments-pagination-numbers/block.json index a4cd4fd1850cb..7cae91046388a 100644 --- a/src/wp-includes/blocks/comments-pagination-numbers/block.json +++ b/src/wp-includes/blocks/comments-pagination-numbers/block.json @@ -12,6 +12,9 @@ "anchor": true, "reusable": false, "html": false, + "background": { + "gradient": true + }, "color": { "gradients": true, "text": false, diff --git a/src/wp-includes/blocks/comments-pagination-previous/block.json b/src/wp-includes/blocks/comments-pagination-previous/block.json index f71e89e4b283a..de141ba2bb553 100644 --- a/src/wp-includes/blocks/comments-pagination-previous/block.json +++ b/src/wp-includes/blocks/comments-pagination-previous/block.json @@ -17,6 +17,12 @@ "anchor": true, "reusable": false, "html": false, + "background": { + "gradient": true, + "__experimentalDefaultControls": { + "gradient": true + } + }, "color": { "gradients": true, "text": false, diff --git a/src/wp-includes/blocks/comments-pagination/block.json b/src/wp-includes/blocks/comments-pagination/block.json index 59b8d30ccc913..a2b7d9fe0b170 100644 --- a/src/wp-includes/blocks/comments-pagination/block.json +++ b/src/wp-includes/blocks/comments-pagination/block.json @@ -31,6 +31,9 @@ "align": true, "reusable": false, "html": false, + "background": { + "gradient": true + }, "color": { "gradients": true, "link": true, diff --git a/src/wp-includes/blocks/comments-title/block.json b/src/wp-includes/blocks/comments-title/block.json index bd7d82edeb78b..625d603c141f2 100644 --- a/src/wp-includes/blocks/comments-title/block.json +++ b/src/wp-includes/blocks/comments-title/block.json @@ -29,6 +29,9 @@ "anchor": true, "align": true, "html": false, + "background": { + "gradient": true + }, "__experimentalBorder": { "radius": true, "color": true, diff --git a/src/wp-includes/blocks/comments/block.json b/src/wp-includes/blocks/comments/block.json index 47f58ed5afe33..5d523e275b4bc 100644 --- a/src/wp-includes/blocks/comments/block.json +++ b/src/wp-includes/blocks/comments/block.json @@ -20,8 +20,18 @@ "anchor": true, "align": [ "wide", "full" ], "html": false, + "background": { + "backgroundImage": true, + "backgroundSize": true, + "gradient": true, + "__experimentalDefaultControls": { + "backgroundImage": true, + "gradient": true + } + }, "color": { "gradients": true, + "button": true, "heading": true, "link": true, "__experimentalDefaultControls": { diff --git a/src/wp-includes/blocks/details/block.json b/src/wp-includes/blocks/details/block.json index 7130700db2c88..f5a2a1a6c3edc 100644 --- a/src/wp-includes/blocks/details/block.json +++ b/src/wp-includes/blocks/details/block.json @@ -32,9 +32,20 @@ "__experimentalOnEnter": true, "align": [ "wide", "full" ], "anchor": true, + "background": { + "backgroundImage": true, + "backgroundSize": true, + "gradient": true, + "__experimentalDefaultControls": { + "backgroundImage": true, + "gradient": true + } + }, "color": { "gradients": true, "link": true, + "heading": true, + "button": true, "__experimentalDefaultControls": { "background": true, "text": true @@ -46,6 +57,7 @@ "style": true }, "html": false, + "shadow": true, "spacing": { "margin": true, "padding": true, diff --git a/src/wp-includes/blocks/file/block.json b/src/wp-includes/blocks/file/block.json index 2c5e888c2aff6..24eeba2b2c386 100644 --- a/src/wp-includes/blocks/file/block.json +++ b/src/wp-includes/blocks/file/block.json @@ -65,6 +65,15 @@ "supports": { "anchor": true, "align": true, + "background": { + "backgroundImage": true, + "backgroundSize": true, + "gradient": true, + "__experimentalDefaultControls": { + "backgroundImage": true, + "gradient": true + } + }, "spacing": { "margin": true, "padding": true diff --git a/src/wp-includes/blocks/footnotes/block.json b/src/wp-includes/blocks/footnotes/block.json index 1a3c2ee900171..393f7f702ab99 100644 --- a/src/wp-includes/blocks/footnotes/block.json +++ b/src/wp-includes/blocks/footnotes/block.json @@ -10,6 +10,15 @@ "usesContext": [ "postId", "postType" ], "supports": { "anchor": true, + "background": { + "backgroundImage": true, + "backgroundSize": true, + "gradient": true, + "__experimentalDefaultControls": { + "backgroundImage": true, + "gradient": true + } + }, "__experimentalBorder": { "radius": true, "color": true, @@ -35,6 +44,7 @@ "multiple": false, "reusable": false, "inserter": false, + "shadow": true, "spacing": { "margin": true, "padding": true, diff --git a/src/wp-includes/blocks/gallery.php b/src/wp-includes/blocks/gallery.php index 1a323e4fbb61c..5474503702a65 100644 --- a/src/wp-includes/blocks/gallery.php +++ b/src/wp-includes/blocks/gallery.php @@ -87,6 +87,83 @@ function block_core_gallery_get_column_gap_value( $gap, $fallback_gap ) { return '0' === $gap_column ? '0px' : $gap_column; } +/** + * Returns whether a value can be used as a Gallery aspect ratio. + * + * Aspect ratios are interpolated into a generated stylesheet instead of being + * set as an inline style, so only the numeric forms produced by aspect ratio + * presets (and `auto`) are accepted. A value from saved content that isn't one + * of those is ignored rather than emitted, so it can't close the rule early and + * inject declarations of its own. The editor applies the same restriction in + * `isValidGalleryAspectRatio()`. + * + * @since 7.1.0 + * + * @param mixed $value Value to check. + * @return bool Whether the value is a valid aspect ratio. + */ +function block_core_gallery_is_valid_aspect_ratio( $value ) { + return is_string( $value ) && 1 === preg_match( '#^(auto|\d+(\.\d+)?(\s*/\s*\d+(\.\d+)?)?)$#', trim( $value ) ); +} + +/** + * Returns Gallery-specific responsive aspect ratio rules for a viewport. + * + * Unlike the column and crop rules, these are not scoped to the Flex layout: + * the aspect ratio applies to the images in every Gallery layout. They also + * cover dynamic galleries, whose images are rendered by the Gallery rather than + * carrying their own block attributes. + * + * @since 7.1.0 + * + * @param string $selector Gallery block selector. + * @param mixed $viewport_style Viewport style data. + * @param string $media_query Viewport media query. + * @return array[] Gallery responsive aspect ratio rules. + */ +function block_core_gallery_get_responsive_aspect_ratio_style_rules( $selector, $viewport_style, $media_query ) { + if ( ! is_array( $viewport_style ) || ! is_string( $media_query ) ) { + return array(); + } + + $aspect_ratio = $viewport_style['aspectRatio'] ?? null; + if ( ! block_core_gallery_is_valid_aspect_ratio( $aspect_ratio ) ) { + return array(); + } + + $aspect_ratio = trim( $aspect_ratio ); + + /* + * The base aspect ratio is an inline style on each image, so these + * declarations have to be important to win for the viewport. + * + * Original cancels the base ratio, which means rolling the declaration out + * of the cascade rather than giving it a value. `auto` - and `initial`, + * `unset` and `revert`, which all compute to it - would override the + * `width`/`height` presentational hint that gives a lazy-loaded image its + * placeholder ratio, collapsing the image to zero height until it loads: + * the Featured Image bug fixed in #80386. `revert-layer` drops the + * declaration instead, so the image falls back to that hint while loading, + * to its natural ratio once loaded, and to any ratio a theme set in a lower + * cascade layer. `object-fit` is left as the base set it, so a cropped + * Gallery still crops. + */ + $declarations = 'auto' === $aspect_ratio + ? array( 'aspect-ratio' => 'revert-layer !important' ) + : array( + 'aspect-ratio' => "{$aspect_ratio} !important", + 'object-fit' => 'cover !important', + ); + + return array( + array( + 'selector' => "{$selector}.wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image) img", + 'declarations' => $declarations, + 'rules_group' => $media_query, + ), + ); +} + /** * Returns Gallery-specific responsive Flex rules for a viewport. * @@ -474,96 +551,133 @@ function block_core_gallery_render( $attributes, $content, $block ) { $processed_content = new WP_HTML_Tag_Processor( $content ); $processed_content->next_tag(); - if ( $is_flex_layout ) { - // Add a style tag for the --wp--style--unstable-gallery-gap var. The - // Gallery's custom Flex layout recalculates Image block widths based on - // the current gap so it can maintain the selected number of columns. - $style_attr = is_array( $attributes['style'] ?? null ) - ? $attributes['style'] - : array(); + $style_attr = is_array( $attributes['style'] ?? null ) + ? $attributes['style'] + : array(); + if ( + defined( 'IS_GUTENBERG_PLUGIN' ) && + IS_GUTENBERG_PLUGIN && + function_exists( 'gutenberg_resolve_style_state_aliases' ) + ) { + $style_attr = gutenberg_resolve_style_state_aliases( $style_attr, 'core/gallery' ); + } + + $global_settings = wp_get_global_settings(); + $viewport_settings = $global_settings['viewport'] ?? null; + $responsive_media_queries = array(); + foreach ( array( 'WP_Theme_JSON_Gutenberg', 'WP_Theme_JSON' ) as $theme_json_class_name ) { + if ( method_exists( $theme_json_class_name, 'get_viewport_media_queries' ) ) { + $responsive_media_queries = $theme_json_class_name::get_viewport_media_queries( $viewport_settings ); + break; + } + } + + // Columns and cropping are Flex-only, but the aspect ratio applies in every + // layout, so a Gallery with a viewport aspect ratio needs the per-instance + // stylesheet (and the class scoping it) even when it isn't a Flex Gallery. + $has_viewport_aspect_ratio = false; + foreach ( $responsive_media_queries as $breakpoint => $media_query ) { + $viewport_style = $style_attr[ $breakpoint ] ?? null; if ( - defined( 'IS_GUTENBERG_PLUGIN' ) && - IS_GUTENBERG_PLUGIN && - function_exists( 'gutenberg_resolve_style_state_aliases' ) + is_array( $viewport_style ) && + block_core_gallery_is_valid_aspect_ratio( $viewport_style['aspectRatio'] ?? null ) ) { - $style_attr = gutenberg_resolve_style_state_aliases( $style_attr, 'core/gallery' ); + $has_viewport_aspect_ratio = true; + break; } + } + + /* + * Only generate the gap styles — and, when nothing else needs it, the unique + * classname that exists solely to scope them — if the theme has not opted out + * of layout styles. The responsive aspect ratio rules are not layout styles, + * so they keep rendering either way. + */ + $should_generate_gap_styles = $is_flex_layout && ! current_theme_supports( 'disable-layout-styles' ); + if ( $should_generate_gap_styles || $has_viewport_aspect_ratio ) { $unique_gallery_classname = wp_unique_id( 'wp-block-gallery-' ); $processed_content->add_class( $unique_gallery_classname ); + $gallery_styles = array(); - // --gallery-block--gutter-size is deprecated. --wp--style--gallery-gap-default should be used by themes that want to set a default - // gap on the gallery. - $fallback_gap = 'var( --wp--style--gallery-gap-default, var( --gallery-block--gutter-size, var( --wp--style--block-gap, 0.5em ) ) )'; + if ( $should_generate_gap_styles ) { + // Add a style tag for the --wp--style--unstable-gallery-gap var. The + // Gallery's custom Flex layout recalculates Image block widths based on + // the current gap so it can maintain the selected number of columns. - if ( null === $global_styles ) { - $global_styles = function_exists( 'wp_get_global_styles' ) ? wp_get_global_styles() : array(); - } + // --gallery-block--gutter-size is deprecated. --wp--style--gallery-gap-default should be used by themes that want to set a default + // gap on the gallery. + $fallback_gap = 'var( --wp--style--gallery-gap-default, var( --gallery-block--gutter-size, var( --wp--style--block-gap, 0.5em ) ) )'; - $global_gallery_styles = $global_styles['blocks']['core/gallery'] ?? array(); - $global_gallery_gap = $global_gallery_styles['spacing']['blockGap'] ?? $fallback_gap; - $has_block_gap = is_array( $style_attr['spacing'] ?? null ) && array_key_exists( 'blockGap', $style_attr['spacing'] ); - // Prefer the block's own gap value, then Gallery global styles. Missing - // values fall back to the Gallery blockGap default. - $block_gap = $has_block_gap - ? $style_attr['spacing']['blockGap'] - : $global_gallery_gap; - $gap_column = block_core_gallery_get_column_gap_value( $block_gap, $fallback_gap ); - - // Set the CSS variable to the column value for Gallery's flex width calculations. - $gallery_styles = array( - array( + if ( null === $global_styles ) { + $global_styles = function_exists( 'wp_get_global_styles' ) ? wp_get_global_styles() : array(); + } + + $global_gallery_styles = $global_styles['blocks']['core/gallery'] ?? array(); + $global_gallery_gap = $global_gallery_styles['spacing']['blockGap'] ?? $fallback_gap; + $has_block_gap = is_array( $style_attr['spacing'] ?? null ) && array_key_exists( 'blockGap', $style_attr['spacing'] ); + // Prefer the block's own gap value, then Gallery global styles. Missing + // values fall back to the Gallery blockGap default. + $block_gap = $has_block_gap + ? $style_attr['spacing']['blockGap'] + : $global_gallery_gap; + $gap_column = block_core_gallery_get_column_gap_value( $block_gap, $fallback_gap ); + + // Set the CSS variable to the column value for Gallery's flex width calculations. + $gallery_styles[] = array( 'selector' => ".wp-block-gallery.{$unique_gallery_classname}", 'declarations' => array( '--wp--style--unstable-gallery-gap' => $gap_column, ), - ), - ); - - $global_settings = wp_get_global_settings(); - $viewport_settings = $global_settings['viewport'] ?? null; - $responsive_media_queries = array(); - foreach ( array( 'WP_Theme_JSON_Gutenberg', 'WP_Theme_JSON' ) as $theme_json_class_name ) { - if ( method_exists( $theme_json_class_name, 'get_viewport_media_queries' ) ) { - $responsive_media_queries = $theme_json_class_name::get_viewport_media_queries( $viewport_settings ); - break; - } + ); } foreach ( $responsive_media_queries as $breakpoint => $media_query ) { - $viewport_style = $style_attr[ $breakpoint ] ?? null; - $has_viewport_block_gap = is_array( $viewport_style ) && - is_array( $viewport_style['spacing'] ?? null ) && - array_key_exists( 'blockGap', $viewport_style['spacing'] ); - $has_global_viewport_block_gap = is_array( $global_gallery_styles[ $breakpoint ]['spacing'] ?? null ) && - array_key_exists( 'blockGap', $global_gallery_styles[ $breakpoint ]['spacing'] ); - - // Viewport-specific block values win. Gallery global viewport values - // only apply when the block has no base gap, so they do not override an instance value. - if ( $has_viewport_block_gap ) { - $viewport_gap = $viewport_style['spacing']['blockGap']; - } elseif ( ! $has_block_gap && $has_global_viewport_block_gap ) { - $viewport_gap = $global_gallery_styles[ $breakpoint ]['spacing']['blockGap']; - } else { - $viewport_gap = null; - } + $viewport_style = $style_attr[ $breakpoint ] ?? null; + + if ( $should_generate_gap_styles ) { + $has_viewport_block_gap = is_array( $viewport_style ) && + is_array( $viewport_style['spacing'] ?? null ) && + array_key_exists( 'blockGap', $viewport_style['spacing'] ); + $has_global_viewport_block_gap = is_array( $global_gallery_styles[ $breakpoint ]['spacing'] ?? null ) && + array_key_exists( 'blockGap', $global_gallery_styles[ $breakpoint ]['spacing'] ); + + // Viewport-specific block values win. Gallery global viewport values + // only apply when the block has no base gap, so they do not override an instance value. + if ( $has_viewport_block_gap ) { + $viewport_gap = $viewport_style['spacing']['blockGap']; + } elseif ( ! $has_block_gap && $has_global_viewport_block_gap ) { + $viewport_gap = $global_gallery_styles[ $breakpoint ]['spacing']['blockGap']; + } else { + $viewport_gap = null; + } - if ( null !== $viewport_gap ) { - $gallery_styles[] = array( - 'selector' => ".wp-block-gallery.{$unique_gallery_classname}", - 'declarations' => array( - '--wp--style--unstable-gallery-gap' => block_core_gallery_get_column_gap_value( - $viewport_gap, - $fallback_gap + if ( null !== $viewport_gap ) { + $gallery_styles[] = array( + 'selector' => ".wp-block-gallery.{$unique_gallery_classname}", + 'declarations' => array( + '--wp--style--unstable-gallery-gap' => block_core_gallery_get_column_gap_value( + $viewport_gap, + $fallback_gap + ), ), - ), - 'rules_group' => $media_query, + 'rules_group' => $media_query, + ); + } + + $gallery_styles = array_merge( + $gallery_styles, + block_core_gallery_get_responsive_flex_style_rules( + ".{$unique_gallery_classname}", + $viewport_style, + $media_query + ) ); } $gallery_styles = array_merge( $gallery_styles, - block_core_gallery_get_responsive_flex_style_rules( + block_core_gallery_get_responsive_aspect_ratio_style_rules( ".{$unique_gallery_classname}", $viewport_style, $media_query diff --git a/src/wp-includes/blocks/gallery/block.json b/src/wp-includes/blocks/gallery/block.json index 5f0ae512718ec..44158bb0fd0ad 100644 --- a/src/wp-includes/blocks/gallery/block.json +++ b/src/wp-includes/blocks/gallery/block.json @@ -127,6 +127,15 @@ "supports": { "anchor": true, "align": true, + "background": { + "backgroundImage": true, + "backgroundSize": true, + "gradient": true, + "__experimentalDefaultControls": { + "backgroundImage": true, + "gradient": true + } + }, "__experimentalBorder": { "radius": true, "color": true, diff --git a/src/wp-includes/blocks/group/block.json b/src/wp-includes/blocks/group/block.json index b848a0f7c1e91..37ff93cab562b 100644 --- a/src/wp-includes/blocks/group/block.json +++ b/src/wp-includes/blocks/group/block.json @@ -75,6 +75,7 @@ "typography": { "fontSize": true, "lineHeight": true, + "textColumns": true, "__experimentalFontFamily": true, "__experimentalFontWeight": true, "__experimentalFontStyle": true, diff --git a/src/wp-includes/blocks/heading/block.json b/src/wp-includes/blocks/heading/block.json index 7bc491e1658b1..4498f79781735 100644 --- a/src/wp-includes/blocks/heading/block.json +++ b/src/wp-includes/blocks/heading/block.json @@ -30,6 +30,15 @@ "anchor": true, "className": true, "splitting": true, + "background": { + "backgroundImage": true, + "backgroundSize": true, + "gradient": true, + "__experimentalDefaultControls": { + "backgroundImage": true, + "gradient": true + } + }, "__experimentalBorder": { "color": true, "radius": true, @@ -44,6 +53,7 @@ "text": true } }, + "shadow": true, "spacing": { "margin": true, "padding": true, @@ -63,6 +73,7 @@ "__experimentalTextTransform": true, "__experimentalTextDecoration": true, "__experimentalWritingMode": true, + "textShadow": true, "fitText": true, "__experimentalDefaultControls": { "fontSize": true diff --git a/src/wp-includes/blocks/home-link/block.json b/src/wp-includes/blocks/home-link/block.json index a2efb056469cd..036e967883164 100644 --- a/src/wp-includes/blocks/home-link/block.json +++ b/src/wp-includes/blocks/home-link/block.json @@ -33,6 +33,11 @@ "anchor": true, "reusable": false, "html": false, + "background": { + "backgroundImage": true, + "backgroundSize": true, + "gradient": true + }, "typography": { "fontSize": true, "lineHeight": true, @@ -46,6 +51,19 @@ "fontSize": true } }, + "shadow": true, + "__experimentalBorder": { + "color": true, + "radius": true, + "style": true, + "width": true, + "__experimentalDefaultControls": { + "color": false, + "radius": false, + "style": false, + "width": false + } + }, "interactivity": { "clientNavigation": true } diff --git a/src/wp-includes/blocks/icon.php b/src/wp-includes/blocks/icon.php index 749ea140b27b4..1b615c8a6dc96 100644 --- a/src/wp-includes/blocks/icon.php +++ b/src/wp-includes/blocks/icon.php @@ -19,6 +19,15 @@ function render_block_core_icon( $attributes ) { return; } + // Icons in non-public collections are not available in the editor, so do not render them either. + $registered_icon = WP_Icons_Registry::get_instance()->get_registered_icon( $attributes['icon'] ); + if ( null !== $registered_icon ) { + $icon_collection = WP_Icon_Collections_Registry::get_instance()->get_registered( $registered_icon['collection'] ); + if ( null !== $icon_collection && ! $icon_collection['public'] ) { + return; + } + } + // Text color and background color. $color_styles = array(); diff --git a/src/wp-includes/blocks/image.php b/src/wp-includes/blocks/image.php index dff0f19541794..aef905ef59a64 100644 --- a/src/wp-includes/blocks/image.php +++ b/src/wp-includes/blocks/image.php @@ -290,12 +290,12 @@ function block_core_image_render_lightbox( $block_content, array $block, WP_Bloc $body_content = $processor->get_updated_html(); // Adds a button alongside image in the body content. + // Extract the img tag using preg_match for structured access. $img = null; preg_match( '/]+>/', $body_content, $img ); - $button = - $img[0] - . '