- 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-ms-themes-list-table.php
r27090 r28493 10 10 class WP_MS_Themes_List_Table extends WP_List_Table { 11 11 12 var$site_id;13 var$is_site_themes;14 15 function __construct( $args = array() ) {12 public $site_id; 13 public $is_site_themes; 14 15 public function __construct( $args = array() ) { 16 16 global $status, $page; 17 17 … … 33 33 } 34 34 35 function get_table_classes() {35 protected function get_table_classes() { 36 36 return array( 'widefat', 'plugins' ); // todo: remove and add CSS for .themes 37 37 } 38 38 39 function ajax_user_can() {39 public function ajax_user_can() { 40 40 if ( $this->is_site_themes ) 41 41 return current_user_can( 'manage_sites' ); … … 44 44 } 45 45 46 function prepare_items() {46 public function prepare_items() { 47 47 global $status, $totals, $page, $orderby, $order, $s; 48 48 … … 132 132 } 133 133 134 function _search_callback( $theme ) {134 public function _search_callback( $theme ) { 135 135 static $term; 136 136 if ( is_null( $term ) ) … … 153 153 154 154 // Not used by any core columns. 155 function _order_callback( $theme_a, $theme_b ) {155 public function _order_callback( $theme_a, $theme_b ) { 156 156 global $orderby, $order; 157 157 … … 168 168 } 169 169 170 function no_items() {170 public function no_items() { 171 171 if ( ! $this->has_items ) 172 172 _e( 'No themes found.' ); … … 175 175 } 176 176 177 function get_columns() {177 protected function get_columns() { 178 178 global $status; 179 179 … … 185 185 } 186 186 187 function get_sortable_columns() {187 protected function get_sortable_columns() { 188 188 return array( 189 189 'name' => 'name', … … 191 191 } 192 192 193 function get_views() {193 protected function get_views() { 194 194 global $totals, $status; 195 195 … … 234 234 } 235 235 236 function get_bulk_actions() {236 protected function get_bulk_actions() { 237 237 global $status; 238 238 … … 251 251 } 252 252 253 function display_rows() {253 protected function display_rows() { 254 254 foreach ( $this->items as $theme ) 255 255 $this->single_row( $theme ); 256 256 } 257 257 258 function single_row( $theme ) {258 protected function single_row( $theme ) { 259 259 global $status, $page, $s, $totals; 260 260
Note: See TracChangeset
for help on using the changeset viewer.