diff --git wp-admin/css/wp-admin.css wp-admin/css/wp-admin.css
index a10f1ce..78d8a90 100644
|
|
|
tr.inline-edit-row td,
|
| 2678 | 2678 | margin-right: 0.5em |
| 2679 | 2679 | } |
| 2680 | 2680 | |
| 2681 | | .inline-edit-col-right .input-text-wrap input.inline-edit-menu-order-input { |
| 2682 | | width: 6em; |
| 2683 | | } |
| 2684 | | |
| 2685 | 2681 | /* Styling */ |
| 2686 | 2682 | .inline-edit-row h4 { |
| 2687 | 2683 | text-transform: uppercase; |
diff --git wp-admin/includes/class-wp-posts-list-table.php wp-admin/includes/class-wp-posts-list-table.php
index f3f10b0..87bf0d2 100644
|
|
|
class WP_Posts_List_Table extends WP_List_Table {
|
| 529 | 529 | } |
| 530 | 530 | else { |
| 531 | 531 | $attributes = 'class="post-title page-title column-title"' . $style; |
| 532 | | |
| | 532 | |
| 533 | 533 | $pad = str_repeat( '— ', $level ); |
| 534 | 534 | ?> |
| 535 | 535 | <td <?php echo $attributes ?>><strong><?php if ( $can_edit_post && $post->post_status != 'trash' ) { ?><a class="row-title" href="<?php echo $edit_link; ?>" title="<?php echo esc_attr( sprintf( __( 'Edit “%s”' ), $title ) ); ?>"><?php echo $pad; echo $title ?></a><?php } else { echo $pad; echo $title; }; _post_states( $post ); ?></strong> |
| … |
… |
class WP_Posts_List_Table extends WP_List_Table {
|
| 869 | 869 | <?php |
| 870 | 870 | endif; // hierarchical |
| 871 | 871 | |
| 872 | | if ( !$bulk ) : ?> |
| 873 | | |
| 874 | | <label> |
| 875 | | <span class="title"><?php _e( 'Order' ); ?></span> |
| 876 | | <span class="input-text-wrap"><input type="text" name="menu_order" class="inline-edit-menu-order-input" value="<?php echo $post->menu_order ?>" /></span> |
| 877 | | </label> |
| 878 | | |
| 879 | | <?php endif; // !$bulk |
| 880 | | |
| 881 | 872 | if ( 'page' == $screen->post_type ) : |
| 882 | 873 | ?> |
| 883 | 874 | |
diff --git wp-admin/includes/meta-boxes.php wp-admin/includes/meta-boxes.php
index b09e201..869dbc9 100644
|
|
|
function page_attributes_meta_box($post) {
|
| 582 | 582 | </select> |
| 583 | 583 | <?php |
| 584 | 584 | } ?> |
| 585 | | <p><strong><?php _e('Order') ?></strong></p> |
| 586 | | <p><label class="screen-reader-text" for="menu_order"><?php _e('Order') ?></label><input name="menu_order" type="text" size="4" id="menu_order" value="<?php echo esc_attr($post->menu_order) ?>" /></p> |
| 587 | 585 | <p><?php if ( 'page' == $post->post_type ) _e( 'Need help? Use the Help tab in the upper right of your screen.' ); ?></p> |
| 588 | 586 | <?php |
| 589 | 587 | } |
diff --git wp-admin/includes/template.php wp-admin/includes/template.php
index bdc1212..e37db15 100644
|
|
|
function get_inline_data($post) {
|
| 271 | 271 | if ( $post->post_type == 'page' ) |
| 272 | 272 | echo '<div class="page_template">' . esc_html( get_post_meta( $post->ID, '_wp_page_template', true ) ) . '</div>'; |
| 273 | 273 | |
| 274 | | if ( post_type_supports( $post->post_type, 'page-attributes' ) ) |
| 275 | | echo '<div class="menu_order">' . $post->menu_order . '</div>'; |
| 276 | | |
| 277 | 274 | $taxonomy_names = get_object_taxonomies( $post->post_type ); |
| 278 | 275 | foreach ( $taxonomy_names as $taxonomy_name) { |
| 279 | 276 | $taxonomy = get_taxonomy( $taxonomy_name ); |
diff --git wp-admin/js/inline-edit-post.js wp-admin/js/inline-edit-post.js
index 4b0eb2e..21c5d2b 100644
|
|
|
inlineEditPost = {
|
| 129 | 129 | if ( typeof(id) == 'object' ) |
| 130 | 130 | id = t.getId(id); |
| 131 | 131 | |
| 132 | | fields = ['post_title', 'post_name', 'post_author', '_status', 'jj', 'mm', 'aa', 'hh', 'mn', 'ss', 'post_password', 'post_format', 'menu_order']; |
| | 132 | fields = ['post_title', 'post_name', 'post_author', '_status', 'jj', 'mm', 'aa', 'hh', 'mn', 'ss', 'post_password', 'post_format']; |
| 133 | 133 | if ( t.type == 'page' ) |
| 134 | 134 | fields.push('post_parent', 'page_template'); |
| 135 | 135 | |