WordPress.org

Make WordPress Core


Ignore:
Timestamp:
06/29/2010 02:10:54 PM (10 years ago)
Author:
ryan
Message:

Use get_post_types() to create list of hierarchical post types. fixes #14079 for 3.1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/post.php

    r15269 r15348  
    25322532        $feeds = array();
    25332533
    2534     $hierarchical_post_types = apply_filters( 'hierarchical_post_types', array( 'page' ) );
     2534    $hierarchical_post_types = get_post_types( array('hierarchical' => true) );
    25352535    if ( 'attachment' == $post_type ) {
    25362536        // Attachment slugs must be unique across all types.
Note: See TracChangeset for help on using the changeset viewer.