- 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-theme-install-list-table.php
r28287 r28493 10 10 class WP_Theme_Install_List_Table extends WP_Themes_List_Table { 11 11 12 var$features = array();13 14 function ajax_user_can() {12 public $features = array(); 13 14 public function ajax_user_can() { 15 15 return current_user_can( 'install_themes' ); 16 16 } 17 17 18 function prepare_items() {18 public function prepare_items() { 19 19 include( ABSPATH . 'wp-admin/includes/theme-install.php' ); 20 20 … … 141 141 } 142 142 143 function no_items() {143 public function no_items() { 144 144 _e( 'No themes match your request.' ); 145 145 } 146 146 147 function get_views() {147 protected function get_views() { 148 148 global $tabs, $tab; 149 149 … … 158 158 } 159 159 160 function display() {160 public function display() { 161 161 wp_nonce_field( "fetch-list-" . get_class( $this ), '_ajax_fetch_list_nonce' ); 162 162 ?> … … 184 184 } 185 185 186 function display_rows() {186 protected function display_rows() { 187 187 $themes = $this->items; 188 188 foreach ( $themes as $theme ) { … … 215 215 * public 'download_link' => string 'http://wordpress.org/themes/download/magazine-basic.1.1.zip' 216 216 */ 217 function single_row( $theme ) {217 protected function single_row( $theme ) { 218 218 global $themes_allowedtags; 219 219 … … 295 295 * Prints the wrapper for the theme installer. 296 296 */ 297 function theme_installer() {297 public function theme_installer() { 298 298 ?> 299 299 <div id="theme-installer" class="wp-full-overlay expanded"> … … 324 324 * @param object $theme - A WordPress.org Theme API object. 325 325 */ 326 function theme_installer_single( $theme ) {326 public function theme_installer_single( $theme ) { 327 327 ?> 328 328 <div id="theme-installer" class="wp-full-overlay single-theme"> … … 342 342 * @param object $theme - A WordPress.org Theme API object. 343 343 */ 344 function install_theme_info( $theme ) {344 public function install_theme_info( $theme ) { 345 345 global $themes_allowedtags; 346 346 … … 409 409 * @uses $type Global; type of search. 410 410 */ 411 function _js_vars( $extra_args = array() ) {411 private function _js_vars( $extra_args = array() ) { 412 412 global $tab, $type; 413 413 parent::_js_vars( compact( 'tab', 'type' ) );
Note: See TracChangeset
for help on using the changeset viewer.