From 259c8e7f2f94dfbe8957e3053841e4ecb083ec80 Mon Sep 17 00:00:00 2001 From: Aki Hamano <54422211+t-hamano@users.noreply.github.com> Date: Sun, 11 Jun 2023 20:32:45 +0900 Subject: [PATCH] Remove anchor support from dynamic blocks (#51288) * Remove anchor support from dynamic blocks * Remove unnecessary codes --- .../block-api/block-supports.md | 4 +- docs/reference-guides/core-blocks.md | 106 +++++++++--------- lib/block-supports/anchor.php | 67 ----------- lib/load.php | 1 - .../block-library/src/archives/block.json | 1 - packages/block-library/src/avatar/block.json | 1 - .../block-library/src/calendar/block.json | 1 - .../block-library/src/categories/block.json | 1 - .../src/comment-author-avatar/block.json | 1 - .../src/comment-author-name/block.json | 1 - .../src/comment-content/block.json | 1 - .../block-library/src/comment-date/block.json | 1 - .../src/comment-edit-link/block.json | 1 - .../src/comment-reply-link/block.json | 1 - .../src/comment-template/block.json | 1 - .../src/comments-pagination-next/block.json | 1 - .../comments-pagination-numbers/block.json | 1 - .../comments-pagination-previous/block.json | 1 - .../src/comments-pagination/block.json | 1 - .../block-library/src/comments/block.json | 1 - .../block-library/src/home-link/block.json | 1 - .../src/latest-comments/block.json | 1 - .../block-library/src/latest-posts/block.json | 1 - .../block-library/src/loginout/block.json | 1 - .../block-library/src/navigation/block.json | 1 - .../block-library/src/page-list/block.json | 1 - .../src/post-author-biography/block.json | 1 - .../src/post-author-name/block.json | 1 - .../block-library/src/post-author/block.json | 1 - .../src/post-comments-count/block.json | 1 - .../src/post-comments-form/block.json | 1 - .../src/post-comments-link/block.json | 1 - .../block-library/src/post-content/block.json | 1 - .../block-library/src/post-date/block.json | 1 - .../block-library/src/post-excerpt/block.json | 1 - .../src/post-featured-image/block.json | 1 - .../src/post-navigation-link/block.json | 1 - .../src/post-template/block.json | 1 - .../block-library/src/post-terms/block.json | 1 - .../block-library/src/post-title/block.json | 1 - .../src/query-no-results/block.json | 1 - .../src/query-pagination-next/block.json | 1 - .../src/query-pagination-numbers/block.json | 1 - .../src/query-pagination-previous/block.json | 1 - .../src/query-pagination/block.json | 1 - .../block-library/src/query-title/block.json | 1 - packages/block-library/src/query/block.json | 1 - .../block-library/src/read-more/block.json | 1 - packages/block-library/src/rss/block.json | 1 - packages/block-library/src/search/block.json | 1 - .../block-library/src/site-logo/block.json | 1 - .../block-library/src/site-tagline/block.json | 1 - .../block-library/src/site-title/block.json | 1 - .../block-library/src/social-link/block.json | 1 - .../block-library/src/tag-cloud/block.json | 1 - .../src/template-part/block.json | 1 - .../src/term-description/block.json | 1 - 57 files changed, 55 insertions(+), 176 deletions(-) delete mode 100644 lib/block-supports/anchor.php diff --git a/docs/reference-guides/block-api/block-supports.md b/docs/reference-guides/block-api/block-supports.md index 683e4f134d9877..7e68e18eb14bf8 100644 --- a/docs/reference-guides/block-api/block-supports.md +++ b/docs/reference-guides/block-api/block-supports.md @@ -48,7 +48,7 @@ function render_block() { - Type: `boolean` - Default value: `false` -Anchors let you link directly to a specific block on a page. This property adds a field to define an id for the block and a button to copy the direct link. +Anchors let you link directly to a specific block on a page. This property adds a field to define an id for the block and a button to copy the direct link. _Important: It doesn't work with dynamic blocks yet._ ```js // Declare support for anchor links. @@ -232,7 +232,7 @@ When the block declares support for `color.background`, the attributes definitio _**Note:** Deprecated since WordPress 6.3._ -This property has been replaced by [`filter.duotone`](#filter-duotone). +This property has been replaced by [`filter.duotone`](#filter-duotone). ### color.gradients diff --git a/docs/reference-guides/core-blocks.md b/docs/reference-guides/core-blocks.md index 5199ce7c7b8cc9..3bb44274996a8c 100644 --- a/docs/reference-guides/core-blocks.md +++ b/docs/reference-guides/core-blocks.md @@ -15,7 +15,7 @@ Display a date archive of your posts. ([Source](https://github.com/WordPress/gut - **Name:** core/archives - **Category:** widgets -- **Supports:** align, anchor, spacing (margin, padding), typography (fontSize, lineHeight), ~~html~~ +- **Supports:** align, spacing (margin, padding), typography (fontSize, lineHeight), ~~html~~ - **Attributes:** displayAsDropdown, showLabel, showPostCounts, type ## Audio @@ -33,7 +33,7 @@ Add a user’s avatar. ([Source](https://github.com/WordPress/gutenberg/tree/tru - **Name:** core/avatar - **Category:** theme -- **Supports:** align, anchor, color (~~background~~, ~~text~~), spacing (margin, padding), ~~alignWide~~, ~~html~~ +- **Supports:** align, color (~~background~~, ~~text~~), spacing (margin, padding), ~~alignWide~~, ~~html~~ - **Attributes:** isLink, linkTarget, size, userId ## Reusable block @@ -70,7 +70,7 @@ A calendar of your site’s posts. ([Source](https://github.com/WordPress/gutenb - **Name:** core/calendar - **Category:** widgets -- **Supports:** align, anchor, color (background, link, text), typography (fontSize, lineHeight) +- **Supports:** align, color (background, link, text), typography (fontSize, lineHeight) - **Attributes:** month, year ## Categories List @@ -79,7 +79,7 @@ Display a list of all categories. ([Source](https://github.com/WordPress/gutenbe - **Name:** core/categories - **Category:** widgets -- **Supports:** align, anchor, spacing (margin, padding), typography (fontSize, lineHeight), ~~html~~ +- **Supports:** align, spacing (margin, padding), typography (fontSize, lineHeight), ~~html~~ - **Attributes:** displayAsDropdown, showEmpty, showHierarchy, showOnlyTopLevel, showPostCounts ## Code @@ -117,7 +117,7 @@ This block is deprecated. Please use the Avatar block instead. ([Source](https:/ - **Name:** core/comment-author-avatar - **Experimental:** fse - **Category:** theme -- **Supports:** anchor, color (background, ~~text~~), spacing (margin, padding), ~~html~~, ~~inserter~~ +- **Supports:** color (background, ~~text~~), spacing (margin, padding), ~~html~~, ~~inserter~~ - **Attributes:** height, width ## Comment Author Name @@ -126,7 +126,7 @@ Displays the name of the author of the comment. ([Source](https://github.com/Wor - **Name:** core/comment-author-name - **Category:** theme -- **Supports:** anchor, color (background, gradients, link, text), spacing (margin, padding), typography (fontSize, lineHeight), ~~html~~ +- **Supports:** color (background, gradients, link, text), spacing (margin, padding), typography (fontSize, lineHeight), ~~html~~ - **Attributes:** isLink, linkTarget, textAlign ## Comment Content @@ -135,7 +135,7 @@ Displays the contents of a comment. ([Source](https://github.com/WordPress/guten - **Name:** core/comment-content - **Category:** theme -- **Supports:** anchor, color (background, gradients, link, text), spacing (padding), typography (fontSize, lineHeight), ~~html~~ +- **Supports:** color (background, gradients, link, text), spacing (padding), typography (fontSize, lineHeight), ~~html~~ - **Attributes:** textAlign ## Comment Date @@ -144,7 +144,7 @@ Displays the date on which the comment was posted. ([Source](https://github.com/ - **Name:** core/comment-date - **Category:** theme -- **Supports:** anchor, color (background, gradients, link, text), spacing (margin, padding), typography (fontSize, lineHeight), ~~html~~ +- **Supports:** color (background, gradients, link, text), spacing (margin, padding), typography (fontSize, lineHeight), ~~html~~ - **Attributes:** format, isLink ## Comment Edit Link @@ -153,7 +153,7 @@ Displays a link to edit the comment in the WordPress Dashboard. This link is onl - **Name:** core/comment-edit-link - **Category:** theme -- **Supports:** anchor, color (background, gradients, link, ~~text~~), spacing (margin, padding), typography (fontSize, lineHeight), ~~html~~ +- **Supports:** color (background, gradients, link, ~~text~~), spacing (margin, padding), typography (fontSize, lineHeight), ~~html~~ - **Attributes:** linkTarget, textAlign ## Comment Reply Link @@ -162,7 +162,7 @@ Displays a link to reply to a comment. ([Source](https://github.com/WordPress/gu - **Name:** core/comment-reply-link - **Category:** theme -- **Supports:** anchor, color (background, gradients, link, ~~text~~), spacing (margin, padding), typography (fontSize, lineHeight), ~~html~~ +- **Supports:** color (background, gradients, link, ~~text~~), spacing (margin, padding), typography (fontSize, lineHeight), ~~html~~ - **Attributes:** textAlign ## Comment Template @@ -172,7 +172,7 @@ Contains the block elements used to display a comment, like the title, date, aut - **Name:** core/comment-template - **Category:** design - **Parent:** core/comments -- **Supports:** align, anchor, spacing (margin, padding), typography (fontSize, lineHeight), ~~html~~, ~~reusable~~ +- **Supports:** align, spacing (margin, padding), typography (fontSize, lineHeight), ~~html~~, ~~reusable~~ - **Attributes:** ## Comments @@ -181,7 +181,7 @@ An advanced block that allows displaying post comments using different visual co - **Name:** core/comments - **Category:** theme -- **Supports:** align (full, wide), anchor, color (background, gradients, link, text), spacing (margin, padding), typography (fontSize, lineHeight), ~~html~~ +- **Supports:** align (full, wide), color (background, gradients, link, text), spacing (margin, padding), typography (fontSize, lineHeight), ~~html~~ - **Attributes:** legacy, tagName ## Comments Pagination @@ -191,7 +191,7 @@ Displays a paginated navigation to next/previous set of comments, when applicabl - **Name:** core/comments-pagination - **Category:** theme - **Parent:** core/comments -- **Supports:** align, anchor, color (background, gradients, link, text), typography (fontSize, lineHeight), ~~html~~, ~~reusable~~ +- **Supports:** align, color (background, gradients, link, text), typography (fontSize, lineHeight), ~~html~~, ~~reusable~~ - **Attributes:** paginationArrow ## Comments Next Page @@ -201,7 +201,7 @@ Displays the next comment's page link. ([Source](https://github.com/WordPress/gu - **Name:** core/comments-pagination-next - **Category:** theme - **Parent:** core/comments-pagination -- **Supports:** anchor, color (background, gradients, ~~text~~), typography (fontSize, lineHeight), ~~html~~, ~~reusable~~ +- **Supports:** color (background, gradients, ~~text~~), typography (fontSize, lineHeight), ~~html~~, ~~reusable~~ - **Attributes:** label ## Comments Page Numbers @@ -211,7 +211,7 @@ Displays a list of page numbers for comments pagination. ([Source](https://githu - **Name:** core/comments-pagination-numbers - **Category:** theme - **Parent:** core/comments-pagination -- **Supports:** anchor, color (background, gradients, ~~text~~), typography (fontSize, lineHeight), ~~html~~, ~~reusable~~ +- **Supports:** color (background, gradients, ~~text~~), typography (fontSize, lineHeight), ~~html~~, ~~reusable~~ - **Attributes:** ## Comments Previous Page @@ -221,7 +221,7 @@ Displays the previous comment's page link. ([Source](https://github.com/WordPres - **Name:** core/comments-pagination-previous - **Category:** theme - **Parent:** core/comments-pagination -- **Supports:** anchor, color (background, gradients, ~~text~~), typography (fontSize, lineHeight), ~~html~~, ~~reusable~~ +- **Supports:** color (background, gradients, ~~text~~), typography (fontSize, lineHeight), ~~html~~, ~~reusable~~ - **Attributes:** label ## Comments Title @@ -312,7 +312,7 @@ Create a link that always points to the homepage of the site. Usually not necess - **Name:** core/home-link - **Category:** design - **Parent:** core/navigation -- **Supports:** anchor, typography (fontSize, lineHeight), ~~html~~, ~~reusable~~ +- **Supports:** typography (fontSize, lineHeight), ~~html~~, ~~reusable~~ - **Attributes:** label ## Custom HTML @@ -339,7 +339,7 @@ Display a list of your most recent comments. ([Source](https://github.com/WordPr - **Name:** core/latest-comments - **Category:** widgets -- **Supports:** align, anchor, spacing (margin, padding), typography (fontSize, lineHeight), ~~html~~ +- **Supports:** align, spacing (margin, padding), typography (fontSize, lineHeight), ~~html~~ - **Attributes:** commentsToShow, displayAvatar, displayDate, displayExcerpt ## Latest Posts @@ -348,7 +348,7 @@ Display a list of your most recent posts. ([Source](https://github.com/WordPress - **Name:** core/latest-posts - **Category:** widgets -- **Supports:** align, anchor, color (background, gradients, link, text), spacing (margin, padding), typography (fontSize, lineHeight), ~~html~~ +- **Supports:** align, color (background, gradients, link, text), spacing (margin, padding), typography (fontSize, lineHeight), ~~html~~ - **Attributes:** addLinkToFeaturedImage, categories, columns, displayAuthor, displayFeaturedImage, displayPostContent, displayPostContentRadio, displayPostDate, excerptLength, featuredImageAlign, featuredImageSizeHeight, featuredImageSizeSlug, featuredImageSizeWidth, order, orderBy, postLayout, postsToShow, selectedAuthor ## List @@ -376,7 +376,7 @@ Show login & logout links. ([Source](https://github.com/WordPress/gutenberg/tree - **Name:** core/loginout - **Category:** theme -- **Supports:** anchor, className, typography (fontSize, lineHeight) +- **Supports:** className, typography (fontSize, lineHeight) - **Attributes:** displayLoginAsForm, redirectToCurrent ## Media & Text @@ -412,7 +412,7 @@ A collection of blocks that allow visitors to get around your site. ([Source](ht - **Name:** core/navigation - **Category:** theme -- **Supports:** align (full, wide), anchor, inserter, spacing (blockGap, units), typography (fontSize, lineHeight), ~~html~~ +- **Supports:** align (full, wide), inserter, spacing (blockGap, units), typography (fontSize, lineHeight), ~~html~~ - **Attributes:** __unstableLocation, backgroundColor, customBackgroundColor, customOverlayBackgroundColor, customOverlayTextColor, customTextColor, hasIcon, icon, maxNestingLevel, openSubmenusOnClick, overlayBackgroundColor, overlayMenu, overlayTextColor, ref, rgbBackgroundColor, rgbTextColor, showSubmenuIcon, templateLock, textColor ## Custom Link @@ -451,7 +451,7 @@ Display a list of all pages. ([Source](https://github.com/WordPress/gutenberg/tr - **Name:** core/page-list - **Category:** widgets -- **Supports:** anchor, typography (fontSize, lineHeight), ~~html~~, ~~reusable~~ +- **Supports:** typography (fontSize, lineHeight), ~~html~~, ~~reusable~~ - **Attributes:** isNested, parentPageID ## Page List Item @@ -488,7 +488,7 @@ Display post author details such as name, avatar, and bio. ([Source](https://git - **Name:** core/post-author - **Category:** theme -- **Supports:** anchor, color (background, gradients, link, text), spacing (margin, padding), typography (fontSize, lineHeight), ~~html~~ +- **Supports:** color (background, gradients, link, text), spacing (margin, padding), typography (fontSize, lineHeight), ~~html~~ - **Attributes:** avatarSize, byline, isLink, linkTarget, showAvatar, showBio, textAlign ## Post Author Biography @@ -497,7 +497,7 @@ The author biography. ([Source](https://github.com/WordPress/gutenberg/tree/trun - **Name:** core/post-author-biography - **Category:** theme -- **Supports:** anchor, color (background, gradients, link, text), spacing (margin, padding), typography (fontSize, lineHeight) +- **Supports:** color (background, gradients, link, text), spacing (margin, padding), typography (fontSize, lineHeight) - **Attributes:** textAlign ## Post Author Name @@ -506,7 +506,7 @@ The author name. ([Source](https://github.com/WordPress/gutenberg/tree/trunk/pac - **Name:** core/post-author-name - **Category:** theme -- **Supports:** anchor, color (background, gradients, link, text), spacing (margin, padding), typography (fontSize, lineHeight), ~~html~~ +- **Supports:** color (background, gradients, link, text), spacing (margin, padding), typography (fontSize, lineHeight), ~~html~~ - **Attributes:** isLink, linkTarget, textAlign ## Post Comment (deprecated) @@ -526,7 +526,7 @@ Display a post's comments count. ([Source](https://github.com/WordPress/gutenber - **Name:** core/post-comments-count - **Experimental:** fse - **Category:** theme -- **Supports:** anchor, color (background, gradients, text), spacing (margin, padding), typography (fontSize, lineHeight), ~~html~~ +- **Supports:** color (background, gradients, text), spacing (margin, padding), typography (fontSize, lineHeight), ~~html~~ - **Attributes:** textAlign ## Post Comments Form @@ -535,7 +535,7 @@ Display a post's comments form. ([Source](https://github.com/WordPress/gutenberg - **Name:** core/post-comments-form - **Category:** theme -- **Supports:** anchor, color (background, gradients, link, text), spacing (margin, padding), typography (fontSize, lineHeight), ~~html~~ +- **Supports:** color (background, gradients, link, text), spacing (margin, padding), typography (fontSize, lineHeight), ~~html~~ - **Attributes:** textAlign ## Post Comments Link @@ -545,7 +545,7 @@ Displays the link to the current post comments. ([Source](https://github.com/Wor - **Name:** core/post-comments-link - **Experimental:** fse - **Category:** theme -- **Supports:** anchor, color (background, link, ~~text~~), spacing (margin, padding), typography (fontSize, lineHeight), ~~html~~ +- **Supports:** color (background, link, ~~text~~), spacing (margin, padding), typography (fontSize, lineHeight), ~~html~~ - **Attributes:** textAlign ## Post Content @@ -554,7 +554,7 @@ Displays the contents of a post or page. ([Source](https://github.com/WordPress/ - **Name:** core/post-content - **Category:** theme -- **Supports:** align (full, wide), anchor, dimensions (minHeight), typography (fontSize, lineHeight), ~~html~~ +- **Supports:** align (full, wide), dimensions (minHeight), typography (fontSize, lineHeight), ~~html~~ - **Attributes:** ## Post Date @@ -563,7 +563,7 @@ Add the date of this post. ([Source](https://github.com/WordPress/gutenberg/tree - **Name:** core/post-date - **Category:** theme -- **Supports:** anchor, color (background, gradients, link, text), spacing (margin, padding), typography (fontSize, lineHeight), ~~html~~ +- **Supports:** color (background, gradients, link, text), spacing (margin, padding), typography (fontSize, lineHeight), ~~html~~ - **Attributes:** displayType, format, isLink, textAlign ## Excerpt @@ -572,7 +572,7 @@ Display the excerpt. ([Source](https://github.com/WordPress/gutenberg/tree/trunk - **Name:** core/post-excerpt - **Category:** theme -- **Supports:** anchor, color (background, gradients, link, text), spacing (margin, padding), typography (fontSize, lineHeight), ~~html~~ +- **Supports:** color (background, gradients, link, text), spacing (margin, padding), typography (fontSize, lineHeight), ~~html~~ - **Attributes:** excerptLength, moreText, showMoreOnNewLine, textAlign ## Post Featured Image @@ -581,7 +581,7 @@ Display a post's featured image. ([Source](https://github.com/WordPress/gutenber - **Name:** core/post-featured-image - **Category:** theme -- **Supports:** align (center, full, left, right, wide), anchor, color (~~background~~, ~~text~~), spacing (margin, padding), ~~html~~ +- **Supports:** align (center, full, left, right, wide), color (~~background~~, ~~text~~), spacing (margin, padding), ~~html~~ - **Attributes:** aspectRatio, customGradient, customOverlayColor, dimRatio, gradient, height, isLink, linkTarget, overlayColor, rel, scale, sizeSlug, width ## Post Navigation Link @@ -590,7 +590,7 @@ Displays the next or previous post link that is adjacent to the current post. ([ - **Name:** core/post-navigation-link - **Category:** theme -- **Supports:** anchor, color (background, link, text), typography (fontSize, lineHeight), ~~html~~, ~~reusable~~ +- **Supports:** color (background, link, text), typography (fontSize, lineHeight), ~~html~~, ~~reusable~~ - **Attributes:** arrow, label, linkLabel, showTitle, textAlign, type ## Post Template @@ -600,7 +600,7 @@ Contains the block elements used to render a post, like the title, date, feature - **Name:** core/post-template - **Category:** theme - **Parent:** core/query -- **Supports:** align (full, wide), anchor, color (background, gradients, link, text), spacing (blockGap), typography (fontSize, lineHeight), ~~html~~, ~~reusable~~ +- **Supports:** align (full, wide), color (background, gradients, link, text), spacing (blockGap), typography (fontSize, lineHeight), ~~html~~, ~~reusable~~ - **Attributes:** ## Post Terms @@ -609,7 +609,7 @@ Post terms. ([Source](https://github.com/WordPress/gutenberg/tree/trunk/packages - **Name:** core/post-terms - **Category:** theme -- **Supports:** anchor, color (background, gradients, link, text), spacing (margin, padding), typography (fontSize, lineHeight), ~~html~~ +- **Supports:** color (background, gradients, link, text), spacing (margin, padding), typography (fontSize, lineHeight), ~~html~~ - **Attributes:** prefix, separator, suffix, term, textAlign ## Time To Read @@ -628,7 +628,7 @@ Displays the title of a post, page, or any other content-type. ([Source](https:/ - **Name:** core/post-title - **Category:** theme -- **Supports:** align (full, wide), anchor, color (background, gradients, link, text), spacing (margin, padding), typography (fontSize, lineHeight), ~~html~~ +- **Supports:** align (full, wide), color (background, gradients, link, text), spacing (margin, padding), typography (fontSize, lineHeight), ~~html~~ - **Attributes:** isLink, level, linkTarget, rel, textAlign ## Preformatted @@ -655,7 +655,7 @@ An advanced block that allows displaying post types based on different query par - **Name:** core/query - **Category:** theme -- **Supports:** align (full, wide), anchor, ~~html~~ +- **Supports:** align (full, wide), ~~html~~ - **Attributes:** namespace, query, queryId, tagName ## No results @@ -665,7 +665,7 @@ Contains the block elements used to render content when no query results are fou - **Name:** core/query-no-results - **Category:** theme - **Parent:** core/query -- **Supports:** align, anchor, color (background, gradients, link, text), typography (fontSize, lineHeight), ~~html~~, ~~reusable~~ +- **Supports:** align, color (background, gradients, link, text), typography (fontSize, lineHeight), ~~html~~, ~~reusable~~ - **Attributes:** ## Pagination @@ -675,7 +675,7 @@ Displays a paginated navigation to next/previous set of posts, when applicable. - **Name:** core/query-pagination - **Category:** theme - **Parent:** core/query -- **Supports:** align, anchor, color (background, gradients, link, text), typography (fontSize, lineHeight), ~~html~~, ~~reusable~~ +- **Supports:** align, color (background, gradients, link, text), typography (fontSize, lineHeight), ~~html~~, ~~reusable~~ - **Attributes:** paginationArrow, showLabel ## Next Page @@ -685,7 +685,7 @@ Displays the next posts page link. ([Source](https://github.com/WordPress/gutenb - **Name:** core/query-pagination-next - **Category:** theme - **Parent:** core/query-pagination -- **Supports:** anchor, color (background, gradients, ~~text~~), typography (fontSize, lineHeight), ~~html~~, ~~reusable~~ +- **Supports:** color (background, gradients, ~~text~~), typography (fontSize, lineHeight), ~~html~~, ~~reusable~~ - **Attributes:** label ## Page Numbers @@ -695,7 +695,7 @@ Displays a list of page numbers for pagination ([Source](https://github.com/Word - **Name:** core/query-pagination-numbers - **Category:** theme - **Parent:** core/query-pagination -- **Supports:** anchor, color (background, gradients, ~~text~~), typography (fontSize, lineHeight), ~~html~~, ~~reusable~~ +- **Supports:** color (background, gradients, ~~text~~), typography (fontSize, lineHeight), ~~html~~, ~~reusable~~ - **Attributes:** ## Previous Page @@ -705,7 +705,7 @@ Displays the previous posts page link. ([Source](https://github.com/WordPress/gu - **Name:** core/query-pagination-previous - **Category:** theme - **Parent:** core/query-pagination -- **Supports:** anchor, color (background, gradients, ~~text~~), typography (fontSize, lineHeight), ~~html~~, ~~reusable~~ +- **Supports:** color (background, gradients, ~~text~~), typography (fontSize, lineHeight), ~~html~~, ~~reusable~~ - **Attributes:** label ## Query Title @@ -714,7 +714,7 @@ Display the query title. ([Source](https://github.com/WordPress/gutenberg/tree/t - **Name:** core/query-title - **Category:** theme -- **Supports:** align (full, wide), anchor, color (background, gradients, text), spacing (margin, padding), typography (fontSize, lineHeight), ~~html~~ +- **Supports:** align (full, wide), color (background, gradients, text), spacing (margin, padding), typography (fontSize, lineHeight), ~~html~~ - **Attributes:** level, showPrefix, showSearchTerm, textAlign, type ## Quote @@ -732,7 +732,7 @@ Displays the link of a post, page, or any other content-type. ([Source](https:// - **Name:** core/read-more - **Category:** theme -- **Supports:** anchor, color (background, gradients, text), spacing (margin, padding), typography (fontSize, lineHeight), ~~html~~ +- **Supports:** color (background, gradients, text), spacing (margin, padding), typography (fontSize, lineHeight), ~~html~~ - **Attributes:** content, linkTarget ## RSS @@ -741,7 +741,7 @@ Display entries from any RSS or Atom feed. ([Source](https://github.com/WordPres - **Name:** core/rss - **Category:** widgets -- **Supports:** align, anchor, ~~html~~ +- **Supports:** align, ~~html~~ - **Attributes:** blockLayout, columns, displayAuthor, displayDate, displayExcerpt, excerptLength, feedURL, itemsToShow ## Search @@ -750,7 +750,7 @@ Help visitors find your content. ([Source](https://github.com/WordPress/gutenber - **Name:** core/search - **Category:** widgets -- **Supports:** align (center, left, right), anchor, color (background, gradients, text), typography (fontSize, lineHeight), ~~html~~ +- **Supports:** align (center, left, right), color (background, gradients, text), typography (fontSize, lineHeight), ~~html~~ - **Attributes:** buttonBehavior, buttonPosition, buttonText, buttonUseIcon, isSearchFieldHidden, label, placeholder, query, showLabel, width, widthUnit ## Separator @@ -777,7 +777,7 @@ Display an image to represent this site. Update this block and the changes apply - **Name:** core/site-logo - **Category:** theme -- **Supports:** align, anchor, color (~~background~~, ~~text~~), spacing (margin, padding), ~~alignWide~~, ~~html~~ +- **Supports:** align, color (~~background~~, ~~text~~), spacing (margin, padding), ~~alignWide~~, ~~html~~ - **Attributes:** isLink, linkTarget, shouldSyncIcon, width ## Site Tagline @@ -786,7 +786,7 @@ Describe in a few words what the site is about. The tagline can be used in searc - **Name:** core/site-tagline - **Category:** theme -- **Supports:** align (full, wide), anchor, color (background, gradients, text), spacing (margin, padding), typography (fontSize, lineHeight), ~~html~~ +- **Supports:** align (full, wide), color (background, gradients, text), spacing (margin, padding), typography (fontSize, lineHeight), ~~html~~ - **Attributes:** textAlign ## Site Title @@ -795,7 +795,7 @@ Displays the name of this site. Update the block, and the changes apply everywhe - **Name:** core/site-title - **Category:** theme -- **Supports:** align (full, wide), anchor, color (background, gradients, link, text), spacing (margin, padding), typography (fontSize, lineHeight), ~~html~~ +- **Supports:** align (full, wide), color (background, gradients, link, text), spacing (margin, padding), typography (fontSize, lineHeight), ~~html~~ - **Attributes:** isLink, level, linkTarget, textAlign ## Social Icon @@ -805,7 +805,7 @@ Display an icon linking to a social media profile or site. ([Source](https://git - **Name:** core/social-link - **Category:** widgets - **Parent:** core/social-links -- **Supports:** anchor, ~~html~~, ~~reusable~~ +- **Supports:** ~~html~~, ~~reusable~~ - **Attributes:** label, rel, service, url ## Social Icons @@ -851,7 +851,7 @@ A cloud of your most used tags. ([Source](https://github.com/WordPress/gutenberg - **Name:** core/tag-cloud - **Category:** widgets -- **Supports:** align, anchor, spacing (margin, padding), typography (lineHeight), ~~html~~ +- **Supports:** align, spacing (margin, padding), typography (lineHeight), ~~html~~ - **Attributes:** largestFontSize, numberOfTags, showTagCounts, smallestFontSize, taxonomy ## Template Part @@ -860,7 +860,7 @@ Edit the different global regions of your site, like the header, footer, sidebar - **Name:** core/template-part - **Category:** theme -- **Supports:** align, anchor, ~~html~~, ~~reusable~~ +- **Supports:** align, ~~html~~, ~~reusable~~ - **Attributes:** area, slug, tagName, theme ## Term Description @@ -869,7 +869,7 @@ Display the description of categories, tags and custom taxonomies when viewing a - **Name:** core/term-description - **Category:** theme -- **Supports:** align (full, wide), anchor, color (background, link, text), spacing (margin, padding), typography (fontSize, lineHeight), ~~html~~ +- **Supports:** align (full, wide), color (background, link, text), spacing (margin, padding), typography (fontSize, lineHeight), ~~html~~ - **Attributes:** textAlign ## Text Columns (deprecated) diff --git a/lib/block-supports/anchor.php b/lib/block-supports/anchor.php deleted file mode 100644 index 8f704a5019b365..00000000000000 --- a/lib/block-supports/anchor.php +++ /dev/null @@ -1,67 +0,0 @@ -supports, array( 'anchor' ), true ); - if ( ! $has_anchor_support ) { - return; - } - - if ( ! $block_type->attributes ) { - $block_type->attributes = array(); - } - - if ( ! array_key_exists( 'anchor', $block_type->attributes ) ) { - $block_type->attributes['anchor'] = array( - 'type' => 'string', - ); - } -} - -/** - * Add the anchor to the output. - * - * @param WP_Block_Type $block_type Block Type. - * @param array $block_attributes Block attributes. - * - * @return array Block anchor. - */ -function gutenberg_apply_anchor_support( $block_type, $block_attributes ) { - if ( ! $block_attributes ) { - return array(); - } - - if ( wp_should_skip_block_supports_serialization( $block_type, 'anchor' ) ) { - return array(); - } - - $has_anchor_support = _wp_array_get( $block_type->supports, array( 'anchor' ), true ); - if ( ! $has_anchor_support ) { - return array(); - } - - $has_anchor = array_key_exists( 'anchor', $block_attributes ); - if ( ! $has_anchor ) { - return array(); - } - - return array( 'id' => $block_attributes['anchor'] ); -} - -// Register the block support. -WP_Block_Supports::get_instance()->register( - 'anchor', - array( - 'register_attribute' => 'gutenberg_register_anchor_support', - 'apply' => 'gutenberg_apply_anchor_support', - ) -); diff --git a/lib/load.php b/lib/load.php index b0ed333185ef6a..3dc3f422268251 100644 --- a/lib/load.php +++ b/lib/load.php @@ -164,6 +164,5 @@ function gutenberg_is_experiment_enabled( $name ) { require __DIR__ . '/block-supports/spacing.php'; require __DIR__ . '/block-supports/dimensions.php'; require __DIR__ . '/block-supports/duotone.php'; -require __DIR__ . '/block-supports/anchor.php'; require __DIR__ . '/block-supports/shadow.php'; require __DIR__ . '/block-supports/behaviors.php'; diff --git a/packages/block-library/src/archives/block.json b/packages/block-library/src/archives/block.json index ec0d926281d2e2..4d30b5344d2a68 100644 --- a/packages/block-library/src/archives/block.json +++ b/packages/block-library/src/archives/block.json @@ -26,7 +26,6 @@ }, "supports": { "align": true, - "anchor": true, "html": false, "spacing": { "margin": true, diff --git a/packages/block-library/src/avatar/block.json b/packages/block-library/src/avatar/block.json index b39a9bedc82cf0..652a9a04cdebe5 100644 --- a/packages/block-library/src/avatar/block.json +++ b/packages/block-library/src/avatar/block.json @@ -25,7 +25,6 @@ }, "usesContext": [ "postType", "postId", "commentId" ], "supports": { - "anchor": true, "html": false, "align": true, "alignWide": false, diff --git a/packages/block-library/src/calendar/block.json b/packages/block-library/src/calendar/block.json index c74003cc8ba655..974d47ff8ec2ca 100644 --- a/packages/block-library/src/calendar/block.json +++ b/packages/block-library/src/calendar/block.json @@ -17,7 +17,6 @@ }, "supports": { "align": true, - "anchor": true, "color": { "link": true, "__experimentalSkipSerialization": [ "text", "background" ], diff --git a/packages/block-library/src/categories/block.json b/packages/block-library/src/categories/block.json index 9ad4be3a96fd3a..e0d77ff5696ec5 100644 --- a/packages/block-library/src/categories/block.json +++ b/packages/block-library/src/categories/block.json @@ -30,7 +30,6 @@ }, "supports": { "align": true, - "anchor": true, "html": false, "spacing": { "margin": true, diff --git a/packages/block-library/src/comment-author-avatar/block.json b/packages/block-library/src/comment-author-avatar/block.json index b0c8c322410d22..050d87c3b4634a 100644 --- a/packages/block-library/src/comment-author-avatar/block.json +++ b/packages/block-library/src/comment-author-avatar/block.json @@ -20,7 +20,6 @@ }, "usesContext": [ "commentId" ], "supports": { - "anchor": true, "html": false, "inserter": false, "__experimentalBorder": { diff --git a/packages/block-library/src/comment-author-name/block.json b/packages/block-library/src/comment-author-name/block.json index 8b8f972218928b..93350779fc8bd2 100644 --- a/packages/block-library/src/comment-author-name/block.json +++ b/packages/block-library/src/comment-author-name/block.json @@ -22,7 +22,6 @@ }, "usesContext": [ "commentId" ], "supports": { - "anchor": true, "html": false, "spacing": { "margin": true, diff --git a/packages/block-library/src/comment-content/block.json b/packages/block-library/src/comment-content/block.json index a7cce6bd58f4f4..9ac4b5453365bb 100644 --- a/packages/block-library/src/comment-content/block.json +++ b/packages/block-library/src/comment-content/block.json @@ -14,7 +14,6 @@ } }, "supports": { - "anchor": true, "color": { "gradients": true, "link": true, diff --git a/packages/block-library/src/comment-date/block.json b/packages/block-library/src/comment-date/block.json index 16af1f2c2ca95d..7e4776c68ff2fa 100644 --- a/packages/block-library/src/comment-date/block.json +++ b/packages/block-library/src/comment-date/block.json @@ -18,7 +18,6 @@ }, "usesContext": [ "commentId" ], "supports": { - "anchor": true, "html": false, "color": { "gradients": true, diff --git a/packages/block-library/src/comment-edit-link/block.json b/packages/block-library/src/comment-edit-link/block.json index e9a74429ec6e32..505305f60987ac 100644 --- a/packages/block-library/src/comment-edit-link/block.json +++ b/packages/block-library/src/comment-edit-link/block.json @@ -18,7 +18,6 @@ } }, "supports": { - "anchor": true, "html": false, "color": { "link": true, diff --git a/packages/block-library/src/comment-reply-link/block.json b/packages/block-library/src/comment-reply-link/block.json index 2f23a2b87a2d00..c10129412145c8 100644 --- a/packages/block-library/src/comment-reply-link/block.json +++ b/packages/block-library/src/comment-reply-link/block.json @@ -14,7 +14,6 @@ } }, "supports": { - "anchor": true, "color": { "gradients": true, "link": true, diff --git a/packages/block-library/src/comment-template/block.json b/packages/block-library/src/comment-template/block.json index 2e51e06b7e3575..7b9bfc5e0340fd 100644 --- a/packages/block-library/src/comment-template/block.json +++ b/packages/block-library/src/comment-template/block.json @@ -10,7 +10,6 @@ "usesContext": [ "postId" ], "supports": { "align": true, - "anchor": true, "html": false, "reusable": false, "spacing": { diff --git a/packages/block-library/src/comments-pagination-next/block.json b/packages/block-library/src/comments-pagination-next/block.json index d0137546182ee6..d619865ebd6f5e 100644 --- a/packages/block-library/src/comments-pagination-next/block.json +++ b/packages/block-library/src/comments-pagination-next/block.json @@ -14,7 +14,6 @@ }, "usesContext": [ "postId", "comments/paginationArrow" ], "supports": { - "anchor": true, "reusable": false, "html": false, "color": { diff --git a/packages/block-library/src/comments-pagination-numbers/block.json b/packages/block-library/src/comments-pagination-numbers/block.json index 9118f2fd79ca2e..fcebb52763870e 100644 --- a/packages/block-library/src/comments-pagination-numbers/block.json +++ b/packages/block-library/src/comments-pagination-numbers/block.json @@ -9,7 +9,6 @@ "textdomain": "default", "usesContext": [ "postId" ], "supports": { - "anchor": true, "reusable": false, "html": false, "color": { diff --git a/packages/block-library/src/comments-pagination-previous/block.json b/packages/block-library/src/comments-pagination-previous/block.json index 255bd2b271a172..2dab1e9dd73674 100644 --- a/packages/block-library/src/comments-pagination-previous/block.json +++ b/packages/block-library/src/comments-pagination-previous/block.json @@ -14,7 +14,6 @@ }, "usesContext": [ "postId", "comments/paginationArrow" ], "supports": { - "anchor": true, "reusable": false, "html": false, "color": { diff --git a/packages/block-library/src/comments-pagination/block.json b/packages/block-library/src/comments-pagination/block.json index cd9f60f8c74638..e50fad3dee3c97 100644 --- a/packages/block-library/src/comments-pagination/block.json +++ b/packages/block-library/src/comments-pagination/block.json @@ -17,7 +17,6 @@ "comments/paginationArrow": "paginationArrow" }, "supports": { - "anchor": true, "align": true, "reusable": false, "html": false, diff --git a/packages/block-library/src/comments/block.json b/packages/block-library/src/comments/block.json index 06d6c28e5ad2ce..4bfe4bb9017862 100644 --- a/packages/block-library/src/comments/block.json +++ b/packages/block-library/src/comments/block.json @@ -18,7 +18,6 @@ }, "supports": { "align": [ "wide", "full" ], - "anchor": true, "html": false, "color": { "gradients": true, diff --git a/packages/block-library/src/home-link/block.json b/packages/block-library/src/home-link/block.json index 0929dee8aaa4c1..a9827b7718b9be 100644 --- a/packages/block-library/src/home-link/block.json +++ b/packages/block-library/src/home-link/block.json @@ -22,7 +22,6 @@ "style" ], "supports": { - "anchor": true, "reusable": false, "html": false, "typography": { diff --git a/packages/block-library/src/latest-comments/block.json b/packages/block-library/src/latest-comments/block.json index b7a91ebf137463..0b213e9b7903a4 100644 --- a/packages/block-library/src/latest-comments/block.json +++ b/packages/block-library/src/latest-comments/block.json @@ -29,7 +29,6 @@ }, "supports": { "align": true, - "anchor": true, "html": false, "spacing": { "margin": true, diff --git a/packages/block-library/src/latest-posts/block.json b/packages/block-library/src/latest-posts/block.json index 56cdc7af460874..f36164614dd506 100644 --- a/packages/block-library/src/latest-posts/block.json +++ b/packages/block-library/src/latest-posts/block.json @@ -84,7 +84,6 @@ }, "supports": { "align": true, - "anchor": true, "html": false, "color": { "gradients": true, diff --git a/packages/block-library/src/loginout/block.json b/packages/block-library/src/loginout/block.json index b2a91da8eda671..3593961c09cfdc 100644 --- a/packages/block-library/src/loginout/block.json +++ b/packages/block-library/src/loginout/block.json @@ -18,7 +18,6 @@ } }, "supports": { - "anchor": true, "className": true, "typography": { "fontSize": true, diff --git a/packages/block-library/src/navigation/block.json b/packages/block-library/src/navigation/block.json index 7aab5432f0df1a..9c9c0de9014cbd 100644 --- a/packages/block-library/src/navigation/block.json +++ b/packages/block-library/src/navigation/block.json @@ -91,7 +91,6 @@ }, "supports": { "align": [ "wide", "full" ], - "anchor": true, "html": false, "inserter": true, "typography": { diff --git a/packages/block-library/src/page-list/block.json b/packages/block-library/src/page-list/block.json index 17e05b6062bd6a..7f4f2ce86c425f 100644 --- a/packages/block-library/src/page-list/block.json +++ b/packages/block-library/src/page-list/block.json @@ -33,7 +33,6 @@ "openSubmenusOnClick" ], "supports": { - "anchor": true, "reusable": false, "html": false, "typography": { diff --git a/packages/block-library/src/post-author-biography/block.json b/packages/block-library/src/post-author-biography/block.json index 1d13ed57278cde..6964da19696b7a 100644 --- a/packages/block-library/src/post-author-biography/block.json +++ b/packages/block-library/src/post-author-biography/block.json @@ -13,7 +13,6 @@ }, "usesContext": [ "postType", "postId" ], "supports": { - "anchor": true, "spacing": { "margin": true, "padding": true diff --git a/packages/block-library/src/post-author-name/block.json b/packages/block-library/src/post-author-name/block.json index 48eeeaaa27573d..3acb8c19bf62d2 100644 --- a/packages/block-library/src/post-author-name/block.json +++ b/packages/block-library/src/post-author-name/block.json @@ -21,7 +21,6 @@ }, "usesContext": [ "postType", "postId" ], "supports": { - "anchor": true, "html": false, "spacing": { "margin": true, diff --git a/packages/block-library/src/post-author/block.json b/packages/block-library/src/post-author/block.json index 60ff2bf03a922d..ada3a77803f118 100644 --- a/packages/block-library/src/post-author/block.json +++ b/packages/block-library/src/post-author/block.json @@ -35,7 +35,6 @@ }, "usesContext": [ "postType", "postId", "queryId" ], "supports": { - "anchor": true, "html": false, "spacing": { "margin": true, diff --git a/packages/block-library/src/post-comments-count/block.json b/packages/block-library/src/post-comments-count/block.json index eab63a2db6c834..5bf8329625bca8 100644 --- a/packages/block-library/src/post-comments-count/block.json +++ b/packages/block-library/src/post-comments-count/block.json @@ -14,7 +14,6 @@ }, "usesContext": [ "postId" ], "supports": { - "anchor": true, "html": false, "color": { "gradients": true, diff --git a/packages/block-library/src/post-comments-form/block.json b/packages/block-library/src/post-comments-form/block.json index 8edac723636854..62f92b7581c9e7 100644 --- a/packages/block-library/src/post-comments-form/block.json +++ b/packages/block-library/src/post-comments-form/block.json @@ -13,7 +13,6 @@ }, "usesContext": [ "postId", "postType" ], "supports": { - "anchor": true, "html": false, "color": { "gradients": true, diff --git a/packages/block-library/src/post-comments-link/block.json b/packages/block-library/src/post-comments-link/block.json index 438c1ac5c5d91a..3f51134f31e8cc 100644 --- a/packages/block-library/src/post-comments-link/block.json +++ b/packages/block-library/src/post-comments-link/block.json @@ -14,7 +14,6 @@ } }, "supports": { - "anchor": true, "html": false, "color": { "link": true, diff --git a/packages/block-library/src/post-content/block.json b/packages/block-library/src/post-content/block.json index 9f010f04b92923..a6364dd1e1c709 100644 --- a/packages/block-library/src/post-content/block.json +++ b/packages/block-library/src/post-content/block.json @@ -8,7 +8,6 @@ "textdomain": "default", "usesContext": [ "postId", "postType", "queryId" ], "supports": { - "anchor": true, "align": [ "wide", "full" ], "html": false, "__experimentalLayout": true, diff --git a/packages/block-library/src/post-date/block.json b/packages/block-library/src/post-date/block.json index 96a328f88d8721..ed87259c3b2285 100644 --- a/packages/block-library/src/post-date/block.json +++ b/packages/block-library/src/post-date/block.json @@ -24,7 +24,6 @@ }, "usesContext": [ "postId", "postType", "queryId" ], "supports": { - "anchor": true, "html": false, "color": { "gradients": true, diff --git a/packages/block-library/src/post-excerpt/block.json b/packages/block-library/src/post-excerpt/block.json index 60743a127100bf..33b7818ebed9f2 100644 --- a/packages/block-library/src/post-excerpt/block.json +++ b/packages/block-library/src/post-excerpt/block.json @@ -24,7 +24,6 @@ }, "usesContext": [ "postId", "postType", "queryId" ], "supports": { - "anchor": true, "html": false, "color": { "gradients": true, diff --git a/packages/block-library/src/post-featured-image/block.json b/packages/block-library/src/post-featured-image/block.json index 3fb40476380a93..aa6428cad0c3aa 100644 --- a/packages/block-library/src/post-featured-image/block.json +++ b/packages/block-library/src/post-featured-image/block.json @@ -56,7 +56,6 @@ "usesContext": [ "postId", "postType", "queryId" ], "supports": { "align": [ "left", "right", "center", "wide", "full" ], - "anchor": true, "color": { "__experimentalDuotone": "img, .wp-block-post-featured-image__placeholder, .components-placeholder__illustration, .components-placeholder::before", "text": false, diff --git a/packages/block-library/src/post-navigation-link/block.json b/packages/block-library/src/post-navigation-link/block.json index 08ac1ba0f47fcc..4e7df560c69b33 100644 --- a/packages/block-library/src/post-navigation-link/block.json +++ b/packages/block-library/src/post-navigation-link/block.json @@ -31,7 +31,6 @@ } }, "supports": { - "anchor": true, "reusable": false, "html": false, "color": { diff --git a/packages/block-library/src/post-template/block.json b/packages/block-library/src/post-template/block.json index 210e9ccdfb5a6e..d382a4f687e770 100644 --- a/packages/block-library/src/post-template/block.json +++ b/packages/block-library/src/post-template/block.json @@ -19,7 +19,6 @@ "reusable": false, "html": false, "align": [ "wide", "full" ], - "anchor": true, "__experimentalLayout": true, "color": { "gradients": true, diff --git a/packages/block-library/src/post-terms/block.json b/packages/block-library/src/post-terms/block.json index 99cddb19c2bc13..0da7fb02f8134f 100644 --- a/packages/block-library/src/post-terms/block.json +++ b/packages/block-library/src/post-terms/block.json @@ -28,7 +28,6 @@ }, "usesContext": [ "postId", "postType" ], "supports": { - "anchor": true, "html": false, "color": { "gradients": true, diff --git a/packages/block-library/src/post-title/block.json b/packages/block-library/src/post-title/block.json index fc008ee77d3c19..eda5332f240223 100644 --- a/packages/block-library/src/post-title/block.json +++ b/packages/block-library/src/post-title/block.json @@ -31,7 +31,6 @@ }, "supports": { "align": [ "wide", "full" ], - "anchor": true, "html": false, "color": { "gradients": true, diff --git a/packages/block-library/src/query-no-results/block.json b/packages/block-library/src/query-no-results/block.json index 680ea08171f4b3..32088752bb0606 100644 --- a/packages/block-library/src/query-no-results/block.json +++ b/packages/block-library/src/query-no-results/block.json @@ -9,7 +9,6 @@ "textdomain": "default", "usesContext": [ "queryId", "query" ], "supports": { - "anchor": true, "align": true, "reusable": false, "html": false, diff --git a/packages/block-library/src/query-pagination-next/block.json b/packages/block-library/src/query-pagination-next/block.json index 1818ce258778f6..60d44d7ca17b54 100644 --- a/packages/block-library/src/query-pagination-next/block.json +++ b/packages/block-library/src/query-pagination-next/block.json @@ -14,7 +14,6 @@ }, "usesContext": [ "queryId", "query", "paginationArrow", "showLabel" ], "supports": { - "anchor": true, "reusable": false, "html": false, "color": { diff --git a/packages/block-library/src/query-pagination-numbers/block.json b/packages/block-library/src/query-pagination-numbers/block.json index 3696cfe172b26b..a6263ec1312795 100644 --- a/packages/block-library/src/query-pagination-numbers/block.json +++ b/packages/block-library/src/query-pagination-numbers/block.json @@ -9,7 +9,6 @@ "textdomain": "default", "usesContext": [ "queryId", "query" ], "supports": { - "anchor": true, "reusable": false, "html": false, "color": { diff --git a/packages/block-library/src/query-pagination-previous/block.json b/packages/block-library/src/query-pagination-previous/block.json index 17dbc44016f75e..d13442f831c972 100644 --- a/packages/block-library/src/query-pagination-previous/block.json +++ b/packages/block-library/src/query-pagination-previous/block.json @@ -14,7 +14,6 @@ }, "usesContext": [ "queryId", "query", "paginationArrow", "showLabel" ], "supports": { - "anchor": true, "reusable": false, "html": false, "color": { diff --git a/packages/block-library/src/query-pagination/block.json b/packages/block-library/src/query-pagination/block.json index 81cdb661f8457b..fcd6e7eec5eb14 100644 --- a/packages/block-library/src/query-pagination/block.json +++ b/packages/block-library/src/query-pagination/block.json @@ -23,7 +23,6 @@ "showLabel": "showLabel" }, "supports": { - "anchor": true, "align": true, "reusable": false, "html": false, diff --git a/packages/block-library/src/query-title/block.json b/packages/block-library/src/query-title/block.json index 0036cd6c485cad..2db349e55db90a 100644 --- a/packages/block-library/src/query-title/block.json +++ b/packages/block-library/src/query-title/block.json @@ -27,7 +27,6 @@ } }, "supports": { - "anchor": true, "align": [ "wide", "full" ], "html": false, "color": { diff --git a/packages/block-library/src/query/block.json b/packages/block-library/src/query/block.json index f71178f00de706..ff0d06710df0aa 100644 --- a/packages/block-library/src/query/block.json +++ b/packages/block-library/src/query/block.json @@ -43,7 +43,6 @@ }, "supports": { "align": [ "wide", "full" ], - "anchor": true, "html": false, "__experimentalLayout": true }, diff --git a/packages/block-library/src/read-more/block.json b/packages/block-library/src/read-more/block.json index b7c29d860db10d..d3386a49d66b82 100644 --- a/packages/block-library/src/read-more/block.json +++ b/packages/block-library/src/read-more/block.json @@ -17,7 +17,6 @@ }, "usesContext": [ "postId" ], "supports": { - "anchor": true, "html": false, "color": { "gradients": true, diff --git a/packages/block-library/src/rss/block.json b/packages/block-library/src/rss/block.json index 4ba98236125e82..2535eda5946fbd 100644 --- a/packages/block-library/src/rss/block.json +++ b/packages/block-library/src/rss/block.json @@ -43,7 +43,6 @@ }, "supports": { "align": true, - "anchor": true, "html": false }, "editorStyle": "wp-block-rss-editor", diff --git a/packages/block-library/src/search/block.json b/packages/block-library/src/search/block.json index 8bc94f6004ed9c..1a23590699af4e 100644 --- a/packages/block-library/src/search/block.json +++ b/packages/block-library/src/search/block.json @@ -54,7 +54,6 @@ }, "supports": { "align": [ "left", "center", "right" ], - "anchor": true, "color": { "gradients": true, "__experimentalSkipSerialization": true, diff --git a/packages/block-library/src/site-logo/block.json b/packages/block-library/src/site-logo/block.json index 33a5216d767be6..747f1ab94a9c3b 100644 --- a/packages/block-library/src/site-logo/block.json +++ b/packages/block-library/src/site-logo/block.json @@ -31,7 +31,6 @@ }, "supports": { "html": false, - "anchor": true, "align": true, "alignWide": false, "color": { diff --git a/packages/block-library/src/site-tagline/block.json b/packages/block-library/src/site-tagline/block.json index 9f77584dfd0af5..7382c084ee6426 100644 --- a/packages/block-library/src/site-tagline/block.json +++ b/packages/block-library/src/site-tagline/block.json @@ -14,7 +14,6 @@ }, "example": {}, "supports": { - "anchor": true, "align": [ "wide", "full" ], "html": false, "color": { diff --git a/packages/block-library/src/site-title/block.json b/packages/block-library/src/site-title/block.json index 63eaf1cc7f69a8..2c37258acb3ebb 100644 --- a/packages/block-library/src/site-title/block.json +++ b/packages/block-library/src/site-title/block.json @@ -27,7 +27,6 @@ "viewportWidth": 500 }, "supports": { - "anchor": true, "align": [ "wide", "full" ], "html": false, "color": { diff --git a/packages/block-library/src/social-link/block.json b/packages/block-library/src/social-link/block.json index 16d99303156e26..50e95efedb630c 100644 --- a/packages/block-library/src/social-link/block.json +++ b/packages/block-library/src/social-link/block.json @@ -30,7 +30,6 @@ "iconBackgroundColorValue" ], "supports": { - "anchor": true, "reusable": false, "html": false }, diff --git a/packages/block-library/src/tag-cloud/block.json b/packages/block-library/src/tag-cloud/block.json index 82ec96417b30e4..9481dc945666ad 100644 --- a/packages/block-library/src/tag-cloud/block.json +++ b/packages/block-library/src/tag-cloud/block.json @@ -36,7 +36,6 @@ ], "supports": { "html": false, - "anchor": true, "align": true, "spacing": { "margin": true, diff --git a/packages/block-library/src/template-part/block.json b/packages/block-library/src/template-part/block.json index 711c8dd44269d2..9fe431150ae392 100644 --- a/packages/block-library/src/template-part/block.json +++ b/packages/block-library/src/template-part/block.json @@ -21,7 +21,6 @@ } }, "supports": { - "anchor": true, "align": true, "html": false, "reusable": false diff --git a/packages/block-library/src/term-description/block.json b/packages/block-library/src/term-description/block.json index f736194500df50..fc91a4aff4c484 100644 --- a/packages/block-library/src/term-description/block.json +++ b/packages/block-library/src/term-description/block.json @@ -12,7 +12,6 @@ } }, "supports": { - "anchor": true, "align": [ "wide", "full" ], "html": false, "color": {