Make WordPress Core

Opened 8 years ago

Closed 8 years ago

Last modified 8 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:

Description

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

Attachments (1)

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

Download all attachments as: .zip

Change History (5)

#1 @birgire
8 years ago

  • Keywords has-patch added

#2 @SergeyBiryukov
8 years ago

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

#3 @SergeyBiryukov
8 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
8 years ago

thanks @SergeyBiryukov, wow that was quick ;-)

Note: See TracTickets for help on using tickets.