Changeset 20141
- Timestamp:
- 03/07/2012 06:29:36 PM (13 years ago)
- Location:
- trunk/wp-admin/includes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/class-wp-theme-install-list-table.php
r20140 r20141 149 149 function display_rows() { 150 150 $themes = $this->items; 151 $theme_names = array_keys( $themes ); 152 153 foreach ( $theme_names as $theme_name ) { 151 foreach ( $themes as $theme ) { 154 152 ?> 155 153 <div class="available-theme installable-theme"><?php 156 if ( isset( $themes[$theme_name] ) ) 157 display_theme( $themes[$theme_name] ); 154 $this->single_row( $theme ); 158 155 ?></div> 159 156 <?php } // end foreach $theme_names … … 161 158 $this->theme_installer(); 162 159 } 163 164 165 160 166 161 /* -
trunk/wp-admin/includes/theme-install.php
r20140 r20141 128 128 add_action('install_themes_upload', 'install_themes_upload', 10, 1); 129 129 130 /* 130 /** 131 131 * Prints a theme on the Install Themes pages. 132 132 * 133 * @ param object $theme An object that contains theme data returned by the WordPress.org API.133 * @deprecated 3.4.0 134 134 */ 135 135 function display_theme( $theme ) { 136 _deprecated_function( __FUNCTION__, '3.4' ); 136 137 global $wp_list_table; 137 138 138 return $wp_list_table->single_row( $theme ); 139 139 }
Note: See TracChangeset
for help on using the changeset viewer.