WordPress.org

Make WordPress Core

Ticket #14333: 14333.diff

File 14333.diff, 3.5 KB (added by scribu, 20 months ago)
  • wp-admin/css/wp-admin.css

    diff --git wp-admin/css/wp-admin.css wp-admin/css/wp-admin.css
    index a10f1ce..78d8a90 100644
    tr.inline-edit-row td, 
    26782678        margin-right: 0.5em 
    26792679} 
    26802680 
    2681 .inline-edit-col-right .input-text-wrap input.inline-edit-menu-order-input { 
    2682         width: 6em; 
    2683 } 
    2684  
    26852681/*      Styling */ 
    26862682.inline-edit-row h4 { 
    26872683        text-transform: uppercase; 
  • wp-admin/includes/class-wp-posts-list-table.php

    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 { 
    529529                                } 
    530530                                else { 
    531531                                        $attributes = 'class="post-title page-title column-title"' . $style; 
    532                                          
     532 
    533533                                        $pad = str_repeat( '— ', $level ); 
    534534?> 
    535535                        <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 &#8220;%s&#8221;' ), $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 { 
    869869        <?php 
    870870                        endif; // hierarchical 
    871871 
    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  
    881872                        if ( 'page' == $screen->post_type ) : 
    882873        ?> 
    883874 
  • wp-admin/includes/meta-boxes.php

    diff --git wp-admin/includes/meta-boxes.php wp-admin/includes/meta-boxes.php
    index b09e201..869dbc9 100644
    function page_attributes_meta_box($post) { 
    582582</select> 
    583583<?php 
    584584        } ?> 
    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> 
    587585<p><?php if ( 'page' == $post->post_type ) _e( 'Need help? Use the Help tab in the upper right of your screen.' ); ?></p> 
    588586<?php 
    589587} 
  • wp-admin/includes/template.php

    diff --git wp-admin/includes/template.php wp-admin/includes/template.php
    index bdc1212..e37db15 100644
    function get_inline_data($post) { 
    271271        if ( $post->post_type == 'page' ) 
    272272                echo '<div class="page_template">' . esc_html( get_post_meta( $post->ID, '_wp_page_template', true ) ) . '</div>'; 
    273273 
    274         if ( post_type_supports( $post->post_type, 'page-attributes' ) ) 
    275                 echo '<div class="menu_order">' . $post->menu_order . '</div>'; 
    276  
    277274        $taxonomy_names = get_object_taxonomies( $post->post_type ); 
    278275        foreach ( $taxonomy_names as $taxonomy_name) { 
    279276                $taxonomy = get_taxonomy( $taxonomy_name ); 
  • wp-admin/js/inline-edit-post.js

    diff --git wp-admin/js/inline-edit-post.js wp-admin/js/inline-edit-post.js
    index 4b0eb2e..21c5d2b 100644
    inlineEditPost = { 
    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', 'menu_order']; 
     132                fields = ['post_title', 'post_name', 'post_author', '_status', 'jj', 'mm', 'aa', 'hh', 'mn', 'ss', 'post_password', 'post_format']; 
    133133                if ( t.type == 'page' ) 
    134134                        fields.push('post_parent', 'page_template'); 
    135135