WordPress.org

Make WordPress Core

Ticket #19911: menu-order.patch

File menu-order.patch, 1.4 KB (added by nikolay.yordanov, 9 years ago)
  • wp-admin/includes/template.php

     
    257257        if ( $post->post_type == 'page' )
    258258                echo '<div class="page_template">' . esc_html( get_post_meta( $post->ID, '_wp_page_template', true ) ) . '</div>';
    259259
    260         if ( $post_type_object->hierarchical )
     260        if ( post_type_supports($post->post_type, 'page-attributes' ) )
    261261                echo '<div class="menu_order">' . $post->menu_order . '</div>';
    262262
    263263        $taxonomy_names = get_object_taxonomies( $post->post_type );
  • wp-admin/js/inline-edit-post.dev.js

     
    129129                if ( typeof(id) == 'object' )
    130130                        id = t.getId(id);
    131131
    132                 fields = ['post_title', 'post_name', 'post_author', '_status', 'jj', 'mm', 'aa', 'hh', 'mn', 'ss', 'post_password', 'post_format'];
     132                fields = ['post_title', 'post_name', 'post_author', '_status', 'jj', 'mm', 'aa', 'hh', 'mn', 'ss', 'post_password', 'post_format', 'menu_order'];
    133133                if ( t.type == 'page' )
    134                         fields.push('post_parent', 'menu_order', 'page_template');
     134                        fields.push('post_parent', 'page_template');
    135135
    136136                // add the new blank row
    137137                editRow = $('#inline-edit').clone(true);