| 1 | Index: wp-admin/includes/class-wp-posts-list-table.php |
|---|
| 2 | =================================================================== |
|---|
| 3 | --- wp-admin/includes/class-wp-posts-list-table.php (revision 18519) |
|---|
| 4 | +++ wp-admin/includes/class-wp-posts-list-table.php (working copy) |
|---|
| 5 | @@ -842,7 +842,6 @@ |
|---|
| 6 | ?> |
|---|
| 7 | |
|---|
| 8 | <?php if ( $post_type_object->hierarchical ) : ?> |
|---|
| 9 | - |
|---|
| 10 | <label> |
|---|
| 11 | <span class="title"><?php _e( 'Parent' ); ?></span> |
|---|
| 12 | <?php |
|---|
| 13 | @@ -853,6 +852,7 @@ |
|---|
| 14 | wp_dropdown_pages( $dropdown_args ); |
|---|
| 15 | ?> |
|---|
| 16 | </label> |
|---|
| 17 | + <?php endif; // $post_type_object->hierarchical ?> |
|---|
| 18 | |
|---|
| 19 | <?php if ( post_type_supports( $screen->post_type, 'page-attributes' ) ) : |
|---|
| 20 | if ( !$bulk ) : ?> |
|---|
| 21 | @@ -863,6 +863,7 @@ |
|---|
| 22 | </label> |
|---|
| 23 | |
|---|
| 24 | <?php endif; // !$bulk ?> |
|---|
| 25 | + <?php if ( $screen->post_type == 'page' ) : ?> |
|---|
| 26 | |
|---|
| 27 | <label> |
|---|
| 28 | <span class="title"><?php _e( 'Template' ); ?></span> |
|---|
| 29 | @@ -875,9 +876,8 @@ |
|---|
| 30 | </select> |
|---|
| 31 | </label> |
|---|
| 32 | |
|---|
| 33 | - <?php |
|---|
| 34 | - endif; // post_type_supports page-attributes |
|---|
| 35 | - endif; // $post_type_object->hierarchical ?> |
|---|
| 36 | + <?php endif; // post_type == page ?> |
|---|
| 37 | + <?php endif; // post_type_supports page-attributes ?> |
|---|
| 38 | |
|---|
| 39 | <?php if ( count( $flat_taxonomies ) && !$bulk ) : ?> |
|---|
| 40 | |
|---|