Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Rename support to just “renaming”
  • Loading branch information
getdave committed Oct 10, 2023
commit d1509a79819b8ae43bd53136bb330e02946537fa
8 changes: 4 additions & 4 deletions docs/reference-guides/core-blocks.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ Create and save content to reuse across your site. Update the pattern, and the c

- **Name:** core/block
- **Category:** reusable
- **Supports:** ~~blockRenaming~~, ~~customClassName~~, ~~html~~, ~~inserter~~
- **Supports:** ~~customClassName~~, ~~html~~, ~~inserter~~, ~~renaming~~
- **Attributes:** ref

## Button
Expand Down Expand Up @@ -459,7 +459,7 @@ A collection of blocks that allow visitors to get around your site. ([Source](ht

- **Name:** core/navigation
- **Category:** theme
- **Supports:** align (full, wide), ariaLabel, inserter, interactivity, layout (allowSizingOnChildren, default, ~~allowInheriting~~, ~~allowSwitching~~, ~~allowVerticalAlignment~~), spacing (blockGap, units), typography (fontSize, lineHeight), ~~blockRenaming~~, ~~html~~
- **Supports:** align (full, wide), ariaLabel, inserter, interactivity, layout (allowSizingOnChildren, default, ~~allowInheriting~~, ~~allowSwitching~~, ~~allowVerticalAlignment~~), spacing (blockGap, units), typography (fontSize, lineHeight), ~~html~~, ~~renaming~~
- **Attributes:** __unstableLocation, backgroundColor, customBackgroundColor, customOverlayBackgroundColor, customOverlayTextColor, customTextColor, hasIcon, icon, maxNestingLevel, openSubmenusOnClick, overlayBackgroundColor, overlayMenu, overlayTextColor, ref, rgbBackgroundColor, rgbTextColor, showSubmenuIcon, templateLock, textColor

## Custom Link
Expand Down Expand Up @@ -526,7 +526,7 @@ Show a block pattern. ([Source](https://github.com/WordPress/gutenberg/tree/trun

- **Name:** core/pattern
- **Category:** theme
- **Supports:** ~~blockRenaming~~, ~~html~~, ~~inserter~~
- **Supports:** ~~html~~, ~~inserter~~, ~~renaming~~
- **Attributes:** slug

## Author
Expand Down Expand Up @@ -907,7 +907,7 @@ Edit the different global regions of your site, like the header, footer, sidebar

- **Name:** core/template-part
- **Category:** theme
- **Supports:** align, ~~blockRenaming~~, ~~html~~, ~~reusable~~
- **Supports:** align, ~~html~~, ~~renaming~~, ~~reusable~~
- **Attributes:** area, slug, tagName, theme

## Term Description
Expand Down
6 changes: 1 addition & 5 deletions packages/block-editor/src/hooks/block-rename-ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -191,11 +191,7 @@ export const withBlockRenameControl = createHigherOrderComponent(
( BlockEdit ) => ( props ) => {
const { clientId, name, attributes, setAttributes } = props;

const supportsBlockNaming = hasBlockSupport(
name,
'blockRenaming',
true
);
const supportsBlockNaming = hasBlockSupport( name, 'renaming', true );

return (
<>
Expand Down
2 changes: 1 addition & 1 deletion packages/block-editor/src/hooks/block-renaming.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export function addLabelCallback( settings ) {

const supportsBlockNaming = hasBlockSupport(
settings,
'blockRenaming',
'renaming',
true // default value
);

Expand Down
2 changes: 1 addition & 1 deletion packages/block-library/src/block/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@
"customClassName": false,
"html": false,
"inserter": false,
"blockRenaming": false
"renaming": false
}
}
2 changes: 1 addition & 1 deletion packages/block-library/src/navigation/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@
}
},
"interactivity": true,
"blockRenaming": false
"renaming": false
},
"viewScript": "file:./view.min.js",
"editorStyle": "wp-block-navigation-editor",
Expand Down
2 changes: 1 addition & 1 deletion packages/block-library/src/pattern/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"supports": {
"html": false,
"inserter": false,
"blockRenaming": false
"renaming": false
},
"textdomain": "default",
"attributes": {
Expand Down
2 changes: 1 addition & 1 deletion packages/block-library/src/template-part/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"align": true,
"html": false,
"reusable": false,
"blockRenaming": false
"renaming": false
},
"editorStyle": "wp-block-template-part-editor"
}