Ticket #15269: 15269.4.patch
File 15269.4.patch, 4.5 KB (added by , 14 years ago) |
---|
-
wp-admin/includes/class-wp-ms-themes-list-table.php
9 9 class WP_MS_Themes_List_Table extends WP_List_Table { 10 10 11 11 function WP_MS_Themes_List_Table() { 12 global $status, $page ;12 global $status, $page, $current_screen; 13 13 14 14 $default_status = get_user_option( 'themes_last_view' ); 15 15 if ( empty( $default_status ) ) … … 23 23 $page = $this->get_pagenum(); 24 24 25 25 parent::WP_List_Table( array( 26 'screen' => 'themes',26 'screen' => $current_screen, 27 27 'plural' => 'plugins', // @todo replace with themes and add css 28 28 ) ); 29 29 } … … 96 96 uasort( $this->items, array( &$this, '_order_callback' ) ); 97 97 } 98 98 99 $themes_per_page = $this->get_items_per_page( 'themes_ per_page', 999);99 $themes_per_page = $this->get_items_per_page( 'themes_network_per_page' ); 100 100 101 101 $start = ( $page - 1 ) * $themes_per_page; 102 102 -
wp-admin/includes/misc.php
343 343 344 344 switch ( $map_option ) { 345 345 case 'edit_per_page': 346 case 'sites_network_per_page':347 346 case 'users_per_page': 348 case 'users_network_per_page':349 347 case 'edit_comments_per_page': 350 348 case 'upload_per_page': 351 349 case 'edit_tags_per_page': 352 350 case 'plugins_per_page': 351 // Network admin 352 case 'sites_network_per_page': 353 case 'users_network_per_page': 354 case 'plugins_network_per_page': 355 case 'themes_network_per_page': 353 356 $value = (int) $value; 354 357 if ( $value < 1 || $value > 999 ) 355 358 return; -
wp-admin/includes/class-wp-plugins-list-table.php
9 9 class WP_Plugins_List_Table extends WP_List_Table { 10 10 11 11 function WP_Plugins_List_Table() { 12 global $status, $page ;12 global $status, $page, $current_screen; 13 13 14 14 $default_status = get_user_option( 'plugins_last_view' ); 15 15 if ( empty( $default_status ) ) … … 23 23 $page = $this->get_pagenum(); 24 24 25 25 parent::WP_List_Table( array( 26 'screen' => 'plugins',26 'screen' => $current_screen, 27 27 'plural' => 'plugins', 28 28 ) ); 29 29 } … … 43 43 } 44 44 45 45 function prepare_items() { 46 global $status, $plugins, $totals, $page, $orderby, $order, $s ;46 global $status, $plugins, $totals, $page, $orderby, $order, $s, $current_screen; 47 47 48 48 wp_reset_vars( array( 'orderby', 'order', 's' ) ); 49 49 … … 129 129 uasort( $this->items, array( &$this, '_order_callback' ) ); 130 130 } 131 131 132 $plugins_per_page = $this->get_items_per_page( 'plugins_per_page', 999);132 $plugins_per_page = $this->get_items_per_page( str_replace( '-', '_', "{$current_screen->id}_per_page" ) ); 133 133 134 134 $start = ( $page - 1 ) * $plugins_per_page; 135 135 -
wp-admin/network/themes.php
66 66 $wp_list_table->prepare_items(); 67 67 add_thickbox(); 68 68 69 add_screen_option( 'per_page', array('label' => _x( 'Themes', 'themes per page (screen options)' ) , 'default' => 999) );69 add_screen_option( 'per_page', array('label' => _x( 'Themes', 'themes per page (screen options)' )) ); 70 70 71 71 add_contextual_help($current_screen, 72 72 '<p>' . __('This screen enables and disables the inclusion of themes available to choose in the Appearance menu for each site. It does not activate or deactivate which theme a site is currently using.') . '</p>' . -
wp-admin/plugins.php
296 296 wp_enqueue_script('plugin-install'); 297 297 add_thickbox(); 298 298 299 add_screen_option( 'per_page', array('label' => _x( 'Plugins', 'plugins per page (screen options)' ) , 'default' => 999) );299 add_screen_option( 'per_page', array('label' => _x( 'Plugins', 'plugins per page (screen options)' )) ); 300 300 301 301 add_contextual_help($current_screen, 302 302 '<p>' . __('Plugins extend and expand the functionality of WordPress. Once a plugin is installed, you may activate it or deactivate it here.') . '</p>' .