[wp-trac] [WordPress Trac] #14079: wp_unique_post_slug does not work properly for hierarchical custom posts types
WordPress Trac
wp-trac at lists.automattic.com
Fri Jun 25 06:23:26 UTC 2010
#14079: wp_unique_post_slug does not work properly for hierarchical custom posts
types
--------------------------+-------------------------------------------------
Reporter: chowmein | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 3.0.1
Component: Post Types | Version:
Severity: normal | Keywords:
--------------------------+-------------------------------------------------
Changes (by nacin):
* milestone: Unassigned => 3.0.1
Comment:
{{{
$hierarchical_post_types = apply_filters(
'hierarchical_post_types', array( 'page' ) );
}}}
Should become:
{{{
$hierarchical_post_types = get_post_types( 'hierarchical', true );
}}}
If we don't want to completely remove the filter, we should array_merge
them.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/14079#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list