Skip to content

Conversation

@SirLouen
Copy link
Member

@SirLouen SirLouen commented Nov 7, 2025

What?

Closes #73090

Checking for title supports in the DocumentBar component in order to provide the predef (no title supported) as expected.

Why?

We need to maintain consistency with Core #45516 which will be displaying this title (no title supported) when no titles are supported by the post type.

How?

We fetch the supports from the given post type, and then we check if the title is supported or not. Conditionally we will select one title or another among the existing options.

Testing Instructions

  1. Create a new post type without adding title to supports
  2. Ideally, use Core's PR 9597
  3. Create a new post from this new post type
  4. In the Document Bar, we will see (no title supported)

Screenshots or screencast

Before After
image image

@SirLouen SirLouen requested a review from t-hamano November 7, 2025 16:08
@github-actions
Copy link

github-actions bot commented Nov 7, 2025

The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the props-bot label.

If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.

Co-authored-by: SirLouen <[email protected]>

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

@SirLouen SirLouen self-assigned this Nov 7, 2025
@SirLouen SirLouen added the [Type] Bug An existing feature does not function as intended label Nov 7, 2025
@t-hamano t-hamano added the General Interface Parts of the UI which don't fall neatly under other labels. label Nov 10, 2025
@SirLouen
Copy link
Member Author

Closing this as I have closed #73090

@SirLouen SirLouen closed this Nov 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

General Interface Parts of the UI which don't fall neatly under other labels. [Type] Bug An existing feature does not function as intended

Projects

None yet

Development

Successfully merging this pull request may close these issues.

(no title supported) When title in Post Type is not supported

2 participants