From 73148914c29ad837e9ceb6b83fb6f5e3f5c993a8 Mon Sep 17 00:00:00 2001 From: ryan Date: Fri, 14 Nov 2008 17:07:24 +0000 Subject: [PATCH] Plugin installer updates from DD32. fixes #7908 git-svn-id: http://svn.automattic.com/wordpress/trunk@9682 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/css/plugin-install.css | 11 +++++++++++ wp-admin/includes/plugin-install.php | 4 +++- wp-includes/script-loader.php | 2 +- 3 files changed, 15 insertions(+), 2 deletions(-) diff --git a/wp-admin/css/plugin-install.css b/wp-admin/css/plugin-install.css index 82aa31e1d8..2441840bbb 100644 --- a/wp-admin/css/plugin-install.css +++ b/wp-admin/css/plugin-install.css @@ -122,6 +122,13 @@ div.star img { padding: 10px; } +#plugin-information .section ul, +#plugin-information .section ol { + margin-left: 16px; + list-style-type: square; + list-style-image: none; +} + #plugin-information #section-screenshots li img { vertical-align: text-top; } @@ -135,4 +142,8 @@ div.star img { #plugin-information .updated, #plugin-information pre { margin-right: 215px; +} + +#plugin-information pre { + padding: 7px; } \ No newline at end of file diff --git a/wp-admin/includes/plugin-install.php b/wp-admin/includes/plugin-install.php index 2246f17a1d..36377bda64 100644 --- a/wp-admin/includes/plugin-install.php +++ b/wp-admin/includes/plugin-install.php @@ -383,7 +383,9 @@ function install_plugin_information() { $plugins_allowedtags = array('a' => array('href' => array(), 'title' => array(), 'target' => array()), 'abbr' => array('title' => array()), 'acronym' => array('title' => array()), 'code' => array(), 'pre' => array(), 'em' => array(), 'strong' => array(), - 'div' => array(), 'p' => array(), 'ul' => array(), 'ol' => array(), 'li' => array()); + 'div' => array(), 'p' => array(), 'ul' => array(), 'ol' => array(), 'li' => array(), + 'h1' => array(), 'h2' => array(), 'h3' => array(), 'h4' => array(), 'h5' => array(), 'h6' => array(), + 'img' => array('src' => array(), 'class' => array(), 'alt' => array())); //Sanitize HTML foreach ( (array)$api->sections as $section_name => $content ) $api->sections[$section_name] = wp_kses($content, $plugins_allowedtags); diff --git a/wp-includes/script-loader.php b/wp-includes/script-loader.php index 95cabd2144..90db9ac156 100644 --- a/wp-includes/script-loader.php +++ b/wp-includes/script-loader.php @@ -322,7 +322,7 @@ function wp_default_styles( &$styles ) { $styles->add_data( 'press-this-ie', 'conditional', 'gte IE 6' ); $styles->add( 'thickbox', '/wp-includes/js/thickbox/thickbox.css', array(), '20080613' ); $styles->add( 'login', '/wp-admin/css/login.css' ); - $styles->add( 'plugin-install', '/wp-admin/css/plugin-install.css' ); + $styles->add( 'plugin-install', '/wp-admin/css/plugin-install.css', array(), '20081114' ); $styles->add( 'farbtastic', '/wp-admin/css/farbtastic.css', array(), '1.2' ); foreach ( $rtl_styles as $rtl_style )