mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-07 10:40:11 +00:00
Display menu_order value in quick edit for non-hierarchical post types. Props nikolay.yordanov. Fixes #19911, see #18352.
git-svn-id: https://develop.svn.wordpress.org/trunk@19929 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -257,7 +257,7 @@ function get_inline_data($post) {
|
||||
if ( $post->post_type == 'page' )
|
||||
echo '<div class="page_template">' . esc_html( get_post_meta( $post->ID, '_wp_page_template', true ) ) . '</div>';
|
||||
|
||||
if ( $post_type_object->hierarchical )
|
||||
if ( post_type_supports( $post->post_type, 'page-attributes' ) )
|
||||
echo '<div class="menu_order">' . $post->menu_order . '</div>';
|
||||
|
||||
$taxonomy_names = get_object_taxonomies( $post->post_type );
|
||||
|
||||
@@ -129,9 +129,9 @@ inlineEditPost = {
|
||||
if ( typeof(id) == 'object' )
|
||||
id = t.getId(id);
|
||||
|
||||
fields = ['post_title', 'post_name', 'post_author', '_status', 'jj', 'mm', 'aa', 'hh', 'mn', 'ss', 'post_password', 'post_format'];
|
||||
fields = ['post_title', 'post_name', 'post_author', '_status', 'jj', 'mm', 'aa', 'hh', 'mn', 'ss', 'post_password', 'post_format', 'menu_order'];
|
||||
if ( t.type == 'page' )
|
||||
fields.push('post_parent', 'menu_order', 'page_template');
|
||||
fields.push('post_parent', 'page_template');
|
||||
|
||||
// add the new blank row
|
||||
editRow = $('#inline-edit').clone(true);
|
||||
|
||||
Reference in New Issue
Block a user