Make WordPress Core

Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#41730 closed defect (bug) (fixed)

Fix documentation: The default for the view_mode_post_types filter is non-hierarchical post types, not hierarchical

Reported by: birgire's profile birgire Owned by: sergeybiryukov's profile SergeyBiryukov
Milestone: 4.9 Priority: normal
Severity: normal Version: 4.4
Component: Administration Keywords: has-patch
Focuses: docs Cc:


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:

Attachments (1)

class-wp-screen.diff (661 bytes) - added by birgire 7 years ago.

Download all attachments as: .zip

Change History (5)

#1 @birgire
7 years ago

  • Keywords has-patch added

#2 @SergeyBiryukov
7 years ago

  • Component changed from General to Administration
  • Milestone changed from Awaiting Review to 4.9

#3 @SergeyBiryukov
7 years ago

  • Owner set to SergeyBiryukov
  • Resolution set to fixed
  • Status changed from new to closed

In 41317:

Docs: Correct description for view_mode_post_types filter added in [35357].

Props birgire.
Fixes #41730.

#4 @birgire
7 years ago

thanks @SergeyBiryukov, wow that was quick ;-)

Note: See TracTickets for help on using tickets.