diff --git src/wp-admin/includes/class-wp-posts-list-table.php src/wp-admin/includes/class-wp-posts-list-table.php
index f228805..c326200 100644
|
|
class WP_Posts_List_Table extends WP_List_Table { |
1497 | 1497 | if ( post_type_supports( $screen->post_type, 'page-attributes' ) ) : |
1498 | 1498 | |
1499 | 1499 | if ( $post_type_object->hierarchical ) : |
1500 | | ?> |
1501 | | <label> |
1502 | | <span class="title"><?php _e( 'Parent' ); ?></span> |
1503 | | <?php |
1504 | | $dropdown_args = array( |
1505 | | 'post_type' => $post_type_object->name, |
1506 | | 'selected' => $post->post_parent, |
1507 | | 'name' => 'post_parent', |
1508 | | 'show_option_none' => __( 'Main Page (no parent)' ), |
1509 | | 'option_none_value' => 0, |
1510 | | 'sort_column' => 'menu_order, post_title', |
1511 | | ); |
1512 | 1500 | |
1513 | | if ( $bulk ) |
1514 | | $dropdown_args['show_option_no_change'] = __( '— No Change —' ); |
| 1501 | $dropdown_args = array( |
| 1502 | 'post_type' => $post_type_object->name, |
| 1503 | 'selected' => $post->post_parent, |
| 1504 | 'name' => 'post_parent', |
| 1505 | 'show_option_none' => __( 'Main Page (no parent)' ), |
| 1506 | 'option_none_value' => 0, |
| 1507 | 'sort_column' => 'menu_order, post_title', |
| 1508 | ); |
1515 | 1509 | |
1516 | | /** |
1517 | | * Filters the arguments used to generate the Quick Edit page-parent drop-down. |
1518 | | * |
1519 | | * @since 2.7.0 |
1520 | | * |
1521 | | * @see wp_dropdown_pages() |
1522 | | * |
1523 | | * @param array $dropdown_args An array of arguments. |
1524 | | */ |
1525 | | $dropdown_args = apply_filters( 'quick_edit_dropdown_pages_args', $dropdown_args ); |
| 1510 | if ( $bulk ) |
| 1511 | $dropdown_args['show_option_no_change'] = __( '— No Change —' ); |
1526 | 1512 | |
1527 | | wp_dropdown_pages( $dropdown_args ); |
1528 | | ?> |
1529 | | </label> |
| 1513 | /** |
| 1514 | * Filters the arguments used to generate the Quick Edit page-parent drop-down. |
| 1515 | * |
| 1516 | * @since 2.7.0 |
| 1517 | * |
| 1518 | * @see wp_dropdown_pages() |
| 1519 | * |
| 1520 | * @param array $dropdown_args An array of arguments. |
| 1521 | */ |
| 1522 | $dropdown_args = apply_filters( 'quick_edit_dropdown_pages_args', $dropdown_args ); |
1530 | 1523 | |
1531 | | <?php |
| 1524 | $dropdown = wp_dropdown_pages( $dropdown_args ); |
| 1525 | |
| 1526 | if ( ! empty( $dropdown ) ) : |
| 1527 | ?> |
| 1528 | <label> |
| 1529 | <span class="title"><?php _e( 'Parent' ); ?></span> |
| 1530 | </label> |
| 1531 | <?php |
| 1532 | endif; // empty |
1532 | 1533 | endif; // hierarchical |
1533 | 1534 | |
1534 | 1535 | if ( !$bulk ) : ?> |