Skip to content

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

@grappler

Description

@grappler

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

Metadata

Metadata

Assignees

Labels

Good First IssueAn issue that's suitable for someone looking to contribute for the first time

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions