#52836 closed defect (bug) (fixed)
Docs: indentation error on `register_post_type` function DocBlock parameters
Reported by: | audrasjb | Owned by: | SergeyBiryukov |
---|---|---|---|
Milestone: | 5.8 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Posts, Post Types | Keywords: | has-patch has-screenshots |
Focuses: | docs | Cc: |
Description
There is a minor indentation issue in some register_post_type
function’s DocBlock params.
https://developer.wordpress.org/reference/functions/register_post_type/
The issue exists for the $delete_with_user
and the $template_lock
. Indeed, it's better to avoid dashes when items should not be presented as a bullet list.
See screenshot below.
Attachments (3)
Change History (7)
Note: See
TracTickets for help on using
tickets.
Thanks for the patch!
It looks like the
publicly_queryable
parameter uses an asterisk for list items and does not have this problem, see 52836.png. So I think we can use an asterisk here too for better readability.