WordPress.org

Make WordPress Core

Opened 9 months ago

Closed 9 months ago

Last modified 9 months 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 Owned by: 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 9 months ago.

Download all attachments as: .zip

Change History (5)

#1 @birgire
9 months ago

  • Keywords has-patch added

#2 @SergeyBiryukov
9 months ago

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

#3 @SergeyBiryukov
9 months 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
9 months ago

thanks @SergeyBiryukov, wow that was quick ;-)

Note: See TracTickets for help on using tickets.