Make WordPress Core

Changeset 19929


Ignore:
Timestamp:
02/15/2012 05:19:59 PM (13 years ago)
Author:
duck_
Message:

Display menu_order value in quick edit for non-hierarchical post types. Props nikolay.yordanov. Fixes #19911, see #18352.

Location:
trunk/wp-admin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/template.php

    r19871 r19929  
    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
  • trunk/wp-admin/js/inline-edit-post.dev.js

    r19853 r19929  
    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
Note: See TracChangeset for help on using the changeset viewer.