WordPress.org

Make WordPress Core

Changeset 15348


Ignore:
Timestamp:
06/29/10 14:10:54 (4 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.