Make WordPress Core

Ticket #8868: 8868.diff

File 8868.diff, 1.7 KB (added by DD32, 18 years ago)
  • wp-admin/includes/plugin-install.php

     
    155155                                                                'name' => $tag['name'],
    156156                                                                'id' => sanitize_title_with_dashes($tag['name']),
    157157                                                                'count' => $tag['count'] );
     158        echo '<p>';
    158159        echo wp_generate_tag_cloud($tags, array( 'single_text' => __('%d plugin'), 'multiple_text' => __('%d plugins') ) );
     160        echo '</p><br class="clear" />';
    159161}
    160162
    161163/**
     
    505507        </div>
    506508        <div id="section-holder" class="wrap">
    507509        <?php
    508                 if ( version_compare($GLOBALS['wp_version'], $api->tested, '>') )
     510                if ( !empty($api->tested) && version_compare( substr($GLOBALS['wp_version'], 0, strlen($api->tested)), $api->tested, '>') )
    509511                        echo '<div class="updated"><p>' . __('<strong>Warning:</strong> This plugin has <strong>not been tested</strong> with your current version of WordPress.') . '</p></div>';
    510                 else if ( version_compare($GLOBALS['wp_version'], $api->requires, '<') )
    511                         echo '<div class="updated"><p>' . __('<strong>Warning:</strong> This plugin has not been marked as <strong>compatible</strong> with your version of WordPress.') . '</p></div>';
     512
     513                else if ( !empty($api->requires) && version_compare( substr($GLOBALS['wp_version'], 0, strlen($api->requires)), $api->requires, '<') )
     514                        echo '<div class="updated"><p>' . __('<strong>Warning:</strong> This plugin has <strong>not been marked as compatible</strong> with your version of WordPress.') . '</p></div>';
     515
    512516                foreach ( (array)$api->sections as $section_name => $content ) {
    513517                        $title = $section_name;
    514518                        $title[0] = strtoupper($title[0]);