[wp-trac] [WordPress Trac] #41730: Fix documentation: The default for the view_mode_post_types filter is non-hierarchical post types, not hierarchical

WordPress Trac noreply at wordpress.org
Fri Aug 25 19:20:59 UTC 2017


#41730: Fix documentation: The default for the view_mode_post_types filter is non-
hierarchical post types, not hierarchical
--------------------------+-----------------------------
 Reporter:  birgire       |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:  4.4
 Severity:  normal        |   Keywords:
  Focuses:  docs          |
--------------------------+-----------------------------
 The documentation for the {{{view_mode_post_types}}} filter says:

 {{{
 Default hierarchical post types with show_ui on
 }}}


 but it should be:

 {{{
 Default non-hierarchical post types with show_ui on.
 }}}


 because the default is:

 {{{
 $view_mode_post_types = get_post_types( array( 'hierarchical' => false,
 'show_ui' => true ) );

 }}}

 We can see it here:

 https://github.com/WordPress/WordPress/blob/bbb8d48086b7d10908f4fda673585ee122f2851d
 /wp-admin/includes/class-wp-screen.php#L1200

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


More information about the wp-trac mailing list