- 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-themes-list-table.php
r27507 r28493 11 11 12 12 protected $search_terms = array(); 13 var$features = array();14 15 function __construct( $args = array() ) {13 public $features = array(); 14 15 public function __construct( $args = array() ) { 16 16 parent::__construct( array( 17 17 'ajax' => true, … … 20 20 } 21 21 22 function ajax_user_can() {22 public function ajax_user_can() { 23 23 // Do not check edit_theme_options here. AJAX calls for available themes require switch_themes. 24 24 return current_user_can( 'switch_themes' ); 25 25 } 26 26 27 function prepare_items() {27 public function prepare_items() { 28 28 $themes = wp_get_themes( array( 'allowed' => true ) ); 29 29 … … 58 58 } 59 59 60 function no_items() {60 public function no_items() { 61 61 if ( $this->search_terms || $this->features ) { 62 62 _e( 'No items found.' ); … … 86 86 } 87 87 88 function tablenav( $which = 'top' ) {88 public function tablenav( $which = 'top' ) { 89 89 if ( $this->get_pagination_arg( 'total_pages' ) <= 1 ) 90 90 return; … … 98 98 } 99 99 100 function display() {100 public function display() { 101 101 wp_nonce_field( "fetch-list-" . get_class( $this ), '_ajax_fetch_list_nonce' ); 102 102 ?> … … 111 111 } 112 112 113 function get_columns() {113 protected function get_columns() { 114 114 return array(); 115 115 } 116 116 117 function display_rows_or_placeholder() {117 protected function display_rows_or_placeholder() { 118 118 if ( $this->has_items() ) { 119 119 $this->display_rows(); … … 125 125 } 126 126 127 function display_rows() {127 protected function display_rows() { 128 128 $themes = $this->items; 129 129 … … 209 209 } 210 210 211 function search_theme( $theme ) {211 public function search_theme( $theme ) { 212 212 // Search the features 213 213 foreach ( $this->features as $word ) { … … 250 250 * @uses _pagination_args['total_pages'] 251 251 */ 252 function _js_vars( $extra_args = array() ) {252 private function _js_vars( $extra_args = array() ) { 253 253 $search_string = isset( $_REQUEST['s'] ) ? esc_attr( wp_unslash( $_REQUEST['s'] ) ) : ''; 254 254
Note: See TracChangeset
for help on using the changeset viewer.