Opened 7 years ago
Closed 7 years ago
#49180 closed defect (bug) (fixed)
Wrong documentation for register_post_status() parameters
| Reported by: | audrasjb | Owned by: | SergeyBiryukov |
|---|---|---|---|
| Priority: | normal | Milestone: | 5.4 |
| Component: | Posts, Post Types | Version: | |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: | docs |
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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Docs: Correct @param description for
register_post_status()