WordPress.org

Make WordPress Core

Changeset 15349


Ignore:
Timestamp:
06/29/10 14:11:36 (4 years ago)
Author:
ryan
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.0/wp-includes/post.php

    r15269 r15349  
    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.