Make WordPress Core

Ticket #18615: 18615.patch

File 18615.patch, 1.8 KB (added by SergeyBiryukov, 12 years ago)
  • wp-admin/admin-header.php

     
    6262        thousandsSeparator = '<?php echo addslashes( $wp_locale->number_format['thousands_sep'] ); ?>',
    6363        decimalPoint = '<?php echo addslashes( $wp_locale->number_format['decimal_point'] ); ?>',
    6464        isRtl = <?php echo (int) is_rtl(); ?>;
     65        <?php if ( isset($current_screen->post_type) ) : ?>
     66                isHierarchicalDisplay = <?php echo is_post_type_hierarchical($current_screen->post_type) && 'menu_order title' == $wp_query->query['orderby'] ? 1 : 0; ?>;
     67        <?php endif; ?>
    6568       
    6669        function wp_set_width_class() {
    6770                var w = document.body.clientWidth, bc = document.body.className;
  • wp-admin/includes/class-wp-posts-list-table.php

     
    502502                        break;
    503503
    504504                        case 'title':
    505                                 if ( $this->hierarchical_display ) {
     505                                if ( $this->hierarchical_display || !empty( $_POST['hierarchical_display'] ) ) {
    506506                                        $attributes = 'class="post-title page-title column-title"' . $style;
    507507
    508508                                        if ( 0 == $level && (int) $post->post_parent > 0 ) {
  • wp-admin/js/inline-edit-post.dev.js

     
    231231                        post_type: typenow,
    232232                        post_ID: id,
    233233                        edit_date: 'true',
    234                         post_status: page
     234                        post_status: page,
     235                        hierarchical_display: isHierarchicalDisplay
    235236                };
    236237
    237238                fields = $('#edit-'+id+' :input').serialize();