Make WordPress Core

Changeset 18527


Ignore:
Timestamp:
08/11/2011 03:02:01 AM (15 years ago)
Author:
nacin
Message:

Properly handle display of Order, Template, and Parent page attributes in Quick/Bulk Edit. props duck_, fixes #18352.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/class-wp-posts-list-table.php

    r18234 r18527  
    840840                if ( post_type_supports( $screen->post_type, 'author' ) && $bulk )
    841841                        echo $authors_dropdown;
    842         ?>
    843 
    844         <?php if ( $post_type_object->hierarchical ) : ?>
    845 
     842
     843                if ( post_type_supports( $screen->post_type, 'page-attributes' ) ) :
     844
     845                        if ( $post_type_object->hierarchical ) :
     846                ?>
    846847                        <label>
    847848                                <span class="title"><?php _e( 'Parent' ); ?></span>
     
    855856                        </label>
    856857
    857         <?php if ( post_type_supports( $screen->post_type, 'page-attributes' ) ) :
     858        <?php
     859                        endif; // hierarchical
     860       
    858861                        if ( !$bulk ) : ?>
    859862
     
    863866                        </label>
    864867
    865         <?php   endif; // !$bulk ?>
     868        <?php   endif; // !$bulk
     869
     870                        if ( 'page' == $screen->post_type ) :
     871        ?>
    866872
    867873                        <label>
     
    877883
    878884        <?php
    879                 endif; // post_type_supports page-attributes
    880         endif; // $post_type_object->hierarchical ?>
     885                        endif; // page post_type
     886                endif; // page-attributes
     887        ?>
    881888
    882889        <?php if ( count( $flat_taxonomies ) && !$bulk ) : ?>
Note: See TracChangeset for help on using the changeset viewer.