[wp-trac] [WordPress Trac] #49180: Wrong documentation for register_post_status() parameters

WordPress Trac noreply at wordpress.org
Sun Jan 12 21:28:17 UTC 2020


#49180: Wrong documentation for register_post_status() parameters
-------------------------------+-----------------------------
 Reporter:  audrasjb           |      Owner:  (none)
     Type:  defect (bug)       |     Status:  new
 Priority:  normal             |  Milestone:  Awaiting Review
Component:  Posts, Post Types  |    Version:
 Severity:  normal             |   Keywords:  needs-patch
  Focuses:  docs               |
-------------------------------+-----------------------------
 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

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/49180>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list