Make WordPress Core

Ticket #34988: 34988.2.patch

File 34988.2.patch, 1.1 KB (added by swissspidy, 9 years ago)
  • src/wp-admin/edit-tags.php

    diff --git src/wp-admin/edit-tags.php src/wp-admin/edit-tags.php
    index 6ff9e37..5c1130f 100644
    if ( 'post' != $post_type ) { 
    5252        $submenu_file = "edit-tags.php?taxonomy=$taxonomy";
    5353}
    5454
    55 add_screen_option( 'per_page', array( 'default' => 20, 'option' => 'edit_' . $tax->name . '_per_page' ) );
     55if( 'edit' !== $wp_list_table->current_action() ) {
     56        add_screen_option( 'per_page', array( 'default' => 20, 'option' => 'edit_' . $tax->name . '_per_page' ) );
     57}
    5658
    5759get_current_screen()->set_screen_reader_content( array(
    5860        'heading_pagination' => $tax->labels->items_list_navigation,
  • src/wp-admin/includes/class-wp-terms-list-table.php

    diff --git src/wp-admin/includes/class-wp-terms-list-table.php src/wp-admin/includes/class-wp-terms-list-table.php
    index 765b1a3..ee82bda 100644
    class WP_Terms_List_Table extends WP_List_Table { 
    185185                        $columns['posts'] = _x( 'Count', 'Number/count of items' );
    186186                }
    187187
     188                if ( 'edit' === $this->current_action() ) {
     189                        return array();
     190                }
     191
    188192                return $columns;
    189193        }
    190194