Index: wp-admin/includes/class-wp-theme-install-list-table.php =================================================================== --- wp-admin/includes/class-wp-theme-install-list-table.php (revision 20059) +++ wp-admin/includes/class-wp-theme-install-list-table.php (working copy) @@ -22,7 +22,7 @@ function prepare_items() { include( ABSPATH . 'wp-admin/includes/theme-install.php' ); - global $tabs, $tab, $paged, $type, $term, $theme_field_defaults; + global $tabs, $tab, $paged, $type, $term; wp_reset_vars( array( 'tab' ) ); @@ -162,12 +162,8 @@ $theme_names = array_keys( $themes ); foreach ( $theme_names as $theme_name ) { - $class = array( 'available-theme' ); - ?> -
- true, 'sections' => false, 'tested' => true, 'requires' => true, - 'rating' => true, 'downloaded' => true, 'downloadlink' => true, 'last_updated' => true, 'homepage' => true, - 'tags' => true, 'num_ratings' => true + 'rating' => true, 'downloaded' => true, 'downloadlink' => false, 'last_updated' => true, 'homepage' => true, + 'tags' => false, 'num_ratings' => true, 'screenshot_count' => true ); /** @@ -133,9 +133,17 @@ if ( empty($theme) ) return; + $class = array( 'available-theme' ); + $name = wp_kses($theme->name, $themes_allowedtags); $author = wp_kses($theme->author, $themes_allowedtags); $desc = wp_kses($theme->description, $themes_allowedtags); + $screenshot = $theme->screenshot_url; + $screenshot_count = $theme->screenshot_count; + + if ( $screenshot_count > 1 ) + $class[] = 'has-screenshots'; + //if ( strlen($desc) > 30 ) // $desc = substr($desc, 0, 15) . '...' . substr($desc, -15) . ''; @@ -151,10 +159,13 @@ $actions = implode ( ' | ', $actions ); ?> + + string 'tinkerpriest' (length=12) public 'preview_url' => string 'http://wp-themes.com/?magazine-basic' (length=36) public 'screenshot_url' => string 'http://wp-themes.com/wp-content/themes/magazine-basic/screenshot.png' (length=68) + public 'screenshot_count' => int 1 public 'rating' => float 80 public 'num_ratings' => int 1 public 'homepage' => string 'http://wordpress.org/extend/themes/magazine-basic' (length=49) public 'description' => string 'A basic magazine style layout with a fully customizable layout through a backend interface. Designed by c.bavota of Tinker Priest Media.' (length=214) - public 'download_link' => string 'http://wordpress.org/extend/themes/download/magazine-basic.1.1.zip' (length=66) */ } Index: wp-admin/includes/class-wp-themes-list-table.php =================================================================== --- wp-admin/includes/class-wp-themes-list-table.php (revision 20059) +++ wp-admin/includes/class-wp-themes-list-table.php (working copy) @@ -118,20 +118,23 @@ $themes = $this->items; foreach ( $themes as $theme ) { - echo '