WordPress.org

Make WordPress Core

Ticket #14135: 14135.7.diff

File 14135.7.diff, 1.6 KB (added by sorich87, 9 years ago)

Removes 'edit_posts_per_page'

  • wp-admin/includes/class-wp-posts-list-table.php

     
    9494                $total_items = $this->hierarchical_display ? $wp_query->post_count : $wp_query->found_posts;
    9595
    9696                $per_page = $this->get_items_per_page( 'edit_' . $post_type . '_per_page' );
    97                 $per_page = apply_filters( 'edit_posts_per_page', $per_page, $post_type );
    9897
    9998                if ( $this->hierarchical_display )
    10099                        $total_pages = ceil( $total_items / $per_page );
  • wp-admin/includes/post.php

     
    910910                $posts_per_page = 20;
    911911
    912912        $posts_per_page = apply_filters( $per_page, $posts_per_page );
    913         $posts_per_page = apply_filters( 'edit_posts_per_page', $posts_per_page, $post_type );
    914913
    915914        $query = compact('post_type', 'post_status', 'perm', 'order', 'orderby', 'posts_per_page');
    916915
     
    12071206        $lock = explode( ':', $lock );
    12081207        $time = $lock[0];
    12091208        $user = isset( $lock[1] ) ? $lock[1] : get_post_meta( $post->ID, '_edit_last', true );
    1210        
     1209
    12111210        $time_window = apply_filters( 'wp_check_post_lock_window', AUTOSAVE_INTERVAL * 2 );
    12121211
    12131212        if ( $time && $time > time() - $time_window && $user != get_current_user_id() )
     
    16871686        <div id="preloaded-dialogs" style="display:none;">
    16881687<?php   do_action('tiny_mce_preload_dialogs'); ?>
    16891688        </div>
    1690 <?php }
    1691  No newline at end of file
     1689<?php }