Make WordPress Core

Opened 14 years ago

Closed 14 years ago

#16000 closed defect (bug) (fixed)

'manage_pages_custom_column' actions no longer called for hierarchical post types

Reported by: mrwok's profile mrwok Owned by:
Milestone: 3.1 Priority: normal
Severity: normal Version: 3.1
Component: Administration Keywords: has-patch needs-testing
Focuses: Cc:

Description (last modified by duck_)

I have a CUSTOM POST TYPE with hierarchical property set to true.

My custom taxonomies fields associated with my custom post type don't display with manage_pages_custom_column, but they do with manage_posts_custom_column on the admin edit page for the custom post type i created.

It should be the other way around, should it not?

When you use register_post_type() and set to hierarchical property to true,then you use manage_pages_custom_column, and not manage_post_custom_column, right?

It was working before i installed WP 3.1 RC1

Not sure if this is a ubiquitous error or just on my test setup.

Just a possible heads up...

Attachments (1)

16000.diff (594 bytes) - added by duck_ 14 years ago.

Download all attachments as: .zip

Change History (3)

#1 @duck_
14 years ago

  • Description modified (diff)
  • Keywords has-patch needs-testing added; hierarchical removed
  • Milestone changed from Awaiting Review to 3.1
  • Summary changed from 3.1-RC1 to 'manage_pages_custom_column' actions no longer called for hierarchical post types

Disappeared since the check is for post type being 'page' and not hierarchical. Patch attached, untested.

You should probably use manage_{$post->post_type}_posts_custom_column unless the taxonomy is registered to more than one post type.

@duck_
14 years ago

#2 @ryan
14 years ago

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

(In [17160]) Issue manage_pages_custom_column for hierarchical post types. Props mrwok, duck_. fixes #16000

Note: See TracTickets for help on using tickets.