- Timestamp:
- 05/19/2014 01:16:16 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-plugins-list-table.php
r27507 r28493 10 10 class WP_Plugins_List_Table extends WP_List_Table { 11 11 12 function __construct( $args = array() ) {12 public function __construct( $args = array() ) { 13 13 global $status, $page; 14 14 … … 28 28 } 29 29 30 function get_table_classes() {30 protected function get_table_classes() { 31 31 return array( 'widefat', $this->_args['plural'] ); 32 32 } 33 33 34 function ajax_user_can() {34 public function ajax_user_can() { 35 35 return current_user_can('activate_plugins'); 36 36 } 37 37 38 function prepare_items() {38 public function prepare_items() { 39 39 global $status, $plugins, $totals, $page, $orderby, $order, $s; 40 40 … … 173 173 } 174 174 175 function _search_callback( $plugin ) {175 public function _search_callback( $plugin ) { 176 176 static $term; 177 177 if ( is_null( $term ) ) … … 187 187 } 188 188 189 function _order_callback( $plugin_a, $plugin_b ) {189 public function _order_callback( $plugin_a, $plugin_b ) { 190 190 global $orderby, $order; 191 191 … … 202 202 } 203 203 204 function no_items() {204 public function no_items() { 205 205 global $plugins; 206 206 … … 211 211 } 212 212 213 function get_columns() {213 protected function get_columns() { 214 214 global $status; 215 215 … … 221 221 } 222 222 223 function get_sortable_columns() {223 protected function get_sortable_columns() { 224 224 return array(); 225 225 } 226 226 227 function get_views() {227 protected function get_views() { 228 228 global $totals, $status; 229 229 … … 269 269 } 270 270 271 function get_bulk_actions() {271 protected function get_bulk_actions() { 272 272 global $status; 273 273 … … 290 290 } 291 291 292 function bulk_actions() {292 public function bulk_actions() { 293 293 global $status; 294 294 … … 299 299 } 300 300 301 function extra_tablenav( $which ) {301 protected function extra_tablenav( $which ) { 302 302 global $status; 303 303 … … 317 317 } 318 318 319 function current_action() {319 public function current_action() { 320 320 if ( isset($_POST['clear-recent-list']) ) 321 321 return 'clear-recent-list'; … … 324 324 } 325 325 326 function display_rows() {326 protected function display_rows() { 327 327 global $status; 328 328 … … 334 334 } 335 335 336 function single_row( $item ) {336 protected function single_row( $item ) { 337 337 global $status, $page, $s, $totals; 338 338
Note: See TracChangeset
for help on using the changeset viewer.