Opened 5 years ago
Closed 5 years ago
#49180 closed defect (bug) (fixed)
Wrong documentation for register_post_status() parameters
Reported by: | audrasjb | Owned by: | SergeyBiryukov |
---|---|---|---|
Milestone: | 5.4 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Posts, Post Types | Keywords: | has-patch |
Focuses: | docs | Cc: |
Description
I think I found some documentation mistakes in register_post_status()
parameters.
https://developer.wordpress.org/reference/functions/register_post_status/
show_in_admin_all_list
: Default is value of $internal.
Looks like it's the opposite:
https://core.trac.wordpress.org/browser/tags/5.3/src/wp-includes/post.php#L1087
show_in_admin_status_list
: Default is value of $internal.
Looks like it's the opposite as well:
https://core.trac.wordpress.org/browser/tags/5.3/src/wp-includes/post.php#L1091
Attachments (1)
Change History (5)
Note: See
TracTickets for help on using
tickets.
Docs: Correct @param description for
register_post_status()