From 088aff86990b8198674b0ae8c7b9c477ad023131 Mon Sep 17 00:00:00 2001 From: ryan Date: Tue, 29 Jun 2010 14:10:54 +0000 Subject: [PATCH] Use get_post_types() to create list of hierarchical post types. fixes #14079 for 3.1 git-svn-id: http://svn.automattic.com/wordpress/trunk@15348 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/post.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/post.php b/wp-includes/post.php index 61743c213..00d7ac6f5 100644 --- a/wp-includes/post.php +++ b/wp-includes/post.php @@ -2531,7 +2531,7 @@ function wp_unique_post_slug( $slug, $post_ID, $post_status, $post_type, $post_p if ( ! is_array( $feeds ) ) $feeds = array(); - $hierarchical_post_types = apply_filters( 'hierarchical_post_types', array( 'page' ) ); + $hierarchical_post_types = get_post_types( array('hierarchical' => true) ); if ( 'attachment' == $post_type ) { // Attachment slugs must be unique across all types. $check_sql = "SELECT post_name FROM $wpdb->posts WHERE post_name = %s AND ID != %d LIMIT 1";