close
Skip to content

Hide empty categories and tags panel in prepublish panel#69465

Closed
code-with-mehedi wants to merge 1 commit intoWordPress:trunkfrom
code-with-mehedi:hide-empty-categories-tags-panel
Closed

Hide empty categories and tags panel in prepublish panel#69465
code-with-mehedi wants to merge 1 commit intoWordPress:trunkfrom
code-with-mehedi:hide-empty-categories-tags-panel

Conversation

@code-with-mehedi
Copy link

What?

#69452

Hide the categories and tags panel in the prepublish panel if there are no tags or categories.

Testing Instructions

Go to User Preferences in the WordPress editor.
Enable Pre-Publish Checks if not already enabled.
2. Test with Tags and Extra Categories
Create a new draft post and click Publish.
The Pre-Publish Panel should suggest adding categories and tags if none are selected.
3. Test with Only "Uncategorized" and No Tags
Create a new draft post and click Publish.
The Pre-Publish Panel should not show category or tag suggestions.
4. Verify Expected Behavior
Ensure the panel behaves consistently across tests.
Confirm that publishing works without issues.
Report any unexpected behavior with steps to reproduce.

Screenshots or screencast

See, the tags panel is not showing, but the category is visible by default, and there is an uncategorized category.
image

@github-actions
Copy link

github-actions bot commented Mar 6, 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.

Unlinked Accounts

The following contributors have not linked their GitHub and WordPress.org accounts: @code-with-mehedi.

Contributors, please read how to link your accounts to ensure your work is properly credited in WordPress releases.

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

Unlinked contributors: code-with-mehedi.


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

@github-actions github-actions bot added the First-time Contributor Pull request opened by a first-time contributor to Gutenberg repository label Mar 6, 2025
@github-actions
Copy link

github-actions bot commented Mar 6, 2025

👋 Thanks for your first Pull Request and for helping build the future of Gutenberg and WordPress, @code-with-mehedi! In case you missed it, we'd love to have you join us in our Slack community.

If you want to learn more about WordPress development in general, check out the Core Handbook full of helpful information.

@Mamaduka
Copy link
Member

Mamaduka commented Mar 6, 2025

Closing as duplicate of #69453.

@Mamaduka Mamaduka closed this Mar 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

First-time Contributor Pull request opened by a first-time contributor to Gutenberg repository

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants