WordPress.org

Make WordPress Core

Opened 4 years ago

Closed 4 years ago

#16213 closed defect (bug) (fixed)

hierarchical_display is the incorrect check for whether a post type is hierarchical

Reported by: nacin Owned by:
Milestone: 3.1 Priority: normal
Severity: normal Version:
Component: Posts, Post Types Keywords:
Focuses: Cc:

Description

In list tables, we're occasionally checking hierarchical_display, rather than whether the post type is hierarchical, which results in wrong actions being fired.

Change History (2)

comment:1 @nacin4 years ago

Looks like it's just one spot.

comment:2 @nacin4 years ago

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

(In [17278]) Use is_post_type_hierarchical() instead of hierarchical_display. fixes #16213.

Note: See TracTickets for help on using tickets.