Documentation-Issue-Tracker icon indicating copy to clipboard operation
Documentation-Issue-Tracker copied to clipboard

register_taxonomy - "null" in documentation for arguments > parent_item_colon

Open rtpHarry opened this issue 9 months ago • 1 comments

Image

Issue Description

I raised this in https://github.com/Crocoblock/suggestions/issues/8084 but it was closed, deferring to the official wording.

But it doesn't make sense, and seems like a clear typo.

URL of the Page with the Issue

https://developer.wordpress.org/reference/functions/register_taxonomy/

Section of Page with the issue

https://developer.wordpress.org/reference/functions/register_taxonomy/#arguments

Why is this a problem?

The wording doesn't make sense starting at the word null:

‘parent_item_colon’ – The same as parent_item, but with colon : in the end null, __( 'Parent Category:' )

Suggested Fix

Based on the lines before / after, it looks like it should say:

‘parent_item_colon’ – The same as parent_item, but with colon : in the end. Default is null or __( 'Parent Category:' )

rtpHarry avatar Mar 27 '25 12:03 rtpHarry

Heads up @WordPress/docs-issues-coordinators, we have a new issue open. Time to use 'em labels.

github-actions[bot] avatar Mar 27 '25 12:03 github-actions[bot]