[wp-trac] [WordPress Trac] #16000: 'manage_pages_custom_column' actions no longer called for hierarchical post types (was: 3.1-RC1)
WordPress Trac
wp-trac at lists.automattic.com
Mon Dec 27 22:51:30 UTC 2010
#16000: 'manage_pages_custom_column' actions no longer called for hierarchical post
types
-------------------------------------+------------------
Reporter: mrwok | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 3.1
Component: Administration | Version: 3.1
Severity: normal | Resolution:
Keywords: has-patch needs-testing |
-------------------------------------+------------------
Changes (by duck_):
* keywords: hierarchical => has-patch needs-testing
* milestone: Awaiting Review => 3.1
Old description:
> 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...
New description:
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...
--
Comment:
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.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/16000#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list