From f8dc7fe75794507ad556baaf45cd6358cda3afb9 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Mon, 6 Feb 2012 20:54:01 +0000 Subject: [PATCH] Hide theme details by default. Props helenyhou, DH-Shredder. fixes #19853 git-svn-id: https://develop.svn.wordpress.org/trunk@19840 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/includes/class-wp-themes-list-table.php | 8 ++++++-- wp-admin/includes/theme-install.php | 10 ++++++---- wp-admin/js/theme-preview.dev.js | 2 +- 3 files changed, 13 insertions(+), 7 deletions(-) diff --git a/wp-admin/includes/class-wp-themes-list-table.php b/wp-admin/includes/class-wp-themes-list-table.php index b4ec81c591..5cd90664cd 100644 --- a/wp-admin/includes/class-wp-themes-list-table.php +++ b/wp-admin/includes/class-wp-themes-list-table.php @@ -162,8 +162,11 @@ class WP_Themes_List_Table extends WP_List_Table {

-

+ +| +
+

%2$s. The stylesheet files are located in %3$s. %4$s uses templates from %5$s. Changes made to the templates will affect both themes.' ), $title, str_replace( WP_CONTENT_DIR, '', $template_dir ), str_replace( WP_CONTENT_DIR, '', $stylesheet_dir ), $title, $parent_theme ); ?>

@@ -173,8 +176,9 @@ class WP_Themes_List_Table extends WP_List_Table {

- +
+ name, $themes_allowedtags); + $author = wp_kses($theme->author, $themes_allowedtags); $desc = wp_kses($theme->description, $themes_allowedtags); //if ( strlen($desc) > 30 ) // $desc = substr($desc, 0, 15) . '...' . substr($desc, -15) . ''; @@ -153,14 +154,15 @@ function display_theme($theme, $actions = null, $show_details = true) { title=''> -

+

by %2$s' ), $name, $author ); ?>

-

- +|
+

version, $themes_allowedtags) ?>

-

author, $themes_allowedtags) ?>

last_updated) ) : ?>

last_updated)) ) ?>

requires) ) : ?> diff --git a/wp-admin/js/theme-preview.dev.js b/wp-admin/js/theme-preview.dev.js index 744278c266..5cf38bc2ea 100644 --- a/wp-admin/js/theme-preview.dev.js +++ b/wp-admin/js/theme-preview.dev.js @@ -55,7 +55,7 @@ jQuery(document).ready(function($) { } ); // Theme details - $('.theme-detail').click(function () { + $('#availablethemes').on('click', 'a.theme-detail', function (event) { $(this).siblings('.themedetaildiv').toggle(); return false; });