From 4b729c6cbaf99e811ded6b3282447417e8b70b2c Mon Sep 17 00:00:00 2001 From: ryan Date: Tue, 10 Mar 2009 18:31:55 +0000 Subject: [PATCH] Cleanup plugin compatibility messages. Props DD32. fixes #8868 git-svn-id: http://svn.automattic.com/wordpress/trunk@10759 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/plugin-install.php | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/wp-admin/includes/plugin-install.php b/wp-admin/includes/plugin-install.php index 1aa91ed228..22c8380329 100644 --- a/wp-admin/includes/plugin-install.php +++ b/wp-admin/includes/plugin-install.php @@ -155,7 +155,9 @@ function install_dashboard() { 'name' => $tag['name'], 'id' => sanitize_title_with_dashes($tag['name']), 'count' => $tag['count'] ); + echo '

'; echo wp_generate_tag_cloud($tags, array( 'single_text' => __('%d plugin'), 'multiple_text' => __('%d plugins') ) ); + echo '


'; } /** @@ -505,10 +507,12 @@ function install_plugin_information() {
tested, '>') ) + if ( !empty($api->tested) && version_compare( substr($GLOBALS['wp_version'], 0, strlen($api->tested)), $api->tested, '>') ) echo '

' . __('Warning: This plugin has not been tested with your current version of WordPress.') . '

'; - else if ( version_compare($GLOBALS['wp_version'], $api->requires, '<') ) - echo '

' . __('Warning: This plugin has not been marked as compatible with your version of WordPress.') . '

'; + + else if ( !empty($api->requires) && version_compare( substr($GLOBALS['wp_version'], 0, strlen($api->requires)), $api->requires, '<') ) + echo '

' . __('Warning: This plugin has not been marked as compatible with your version of WordPress.') . '

'; + foreach ( (array)$api->sections as $section_name => $content ) { $title = $section_name; $title[0] = strtoupper($title[0]);