WordPress.org

Make WordPress Core

Opened 15 months ago

Closed 14 months ago

Last modified 14 months ago

#50755 closed enhancement (fixed)

Change post type labels for Reusable Blocks in Block Editor.

Reported by: desaiuditd Owned by: desrosj
Milestone: 5.6 Priority: normal
Severity: normal Version: 5.0
Component: Editor Keywords: has-patch commit
Focuses: Cc:

Description

Related pull request in Gutenberg that applies this change - https://github.com/WordPress/gutenberg/pull/17311

Context:
Above PR changes label for the Document settings tab in the sidebar in block editor. Instead of generic "Document" label, it will show the singular name label for the post type.

Currently, the label for reusable block is just "Block" which will conflict with the block settings tab in the sidebar and both will read "Block".

This might get confusing to users.

Proposal:
Similar to the PR in Gutenberg, we should change the labels for Reusable Block custom post type. So that it is distinguishable from the Block settings tab. "Reusable Block" is proposed as as label.

Attachments (5)

Change History (10)

#2 @peterwilsoncc
15 months ago

  • Milestone changed from Awaiting Review to 5.6

PR looks good to me, putting this on the 5.6 milestone for now as it seems likely the block-editor PR will be in by then.

#3 @desrosj
14 months ago

  • Keywords commit added; dev-feedback 2nd-opinion needs-testing needs-copy-review removed
  • Owner set to desrosj
  • Status changed from new to assigned
  • Version set to 5.0

Thanks @desaiuditd!

Looks like this has been around since the concept of reusable blocks was first merged into core in [43849] (and later frontported to trunk in [44215]).

#4 @desrosj
14 months ago

  • Resolution set to fixed
  • Status changed from assigned to closed

In 48829:

Editor: Update the post type labels for the reusable blocks post type.

Previously, the labels for the reusable block post type were just “block”. The document settings tab in the block editor has been changed to use the post type label specified instead to be more specific. Changing the reusable block post type labels to “reusable block” prevents two “Block” tabs from showing in the editor.

Props desaiuditd, peterwilsoncc.
Fixes #50755.

#5 @SergeyBiryukov
14 months ago

In 48846:

Tests: Update wp-api-generated.js to reflect the new "Reusable Blocks" post type label.

Follow-up to [48829].

See #50755.

Note: See TracTickets for help on using tickets.