Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suggest picking a category on the pre-publish panel, only works for English #41955

Closed
grappler opened this issue Jun 25, 2022 · 0 comments · Fixed by #41956
Closed

Suggest picking a category on the pre-publish panel, only works for English #41955

grappler opened this issue Jun 25, 2022 · 0 comments · Fixed by #41956
Assignees
Labels
Good First Issue An issue that's suitable for someone looking to contribute for the first time

Comments

@grappler
Copy link
Member

Description

The suggestion to pick a category on the pre-publish panel only works if the category "Uncategorized" exists. This is not the case for example for German installations. The default category in German is "Allgemein". I expect this is the same for other languages.

In WordPress it is also possible to change the default category, by hard-coding the default category this is not considered.

A simple solution would be to check the option default_category: get_option( 'default_category' )

Introduced in #37703

Step-by-step reproduction instructions

  1. Set up a WordPress installation with German as the default language
  2. Publish a post with the category "Allgemein"
  3. The pre-publish suggestion is missing

Screenshots, screen recording, code snippet

No response

Environment info

No response

Please confirm that you have searched existing issues in the repo.

Yes

Please confirm that you have tested with all plugins deactivated except Gutenberg.

Yes

@github-actions github-actions bot added the [Status] In Progress Tracking issues with work in progress label Jun 25, 2022
@mtias mtias added the Good First Issue An issue that's suitable for someone looking to contribute for the first time label Jun 25, 2022
@priethor priethor removed the [Status] In Progress Tracking issues with work in progress label May 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Good First Issue An issue that's suitable for someone looking to contribute for the first time
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants