Make WordPress Core

Ticket #10973: 10973.showactive.diff

File 10973.showactive.diff, 766 bytes (added by sivel, 16 years ago)

Differentiate between active and inactive plugins

  • wp-admin/update-core.php

     
    160160        <tbody class="plugins">
    161161<?php
    162162        foreach ( (array) $plugins as $plugin_file => $plugin_data) {
     163                $status = is_plugin_active($plugin_file) ? 'active' : 'inactive';
    163164                echo "
    164         <tr class='active'>
     165        <tr class='$status'>
    165166                <th scope='row' class='check-column'><input type='checkbox' name='checked[]' value='" . esc_attr($plugin_file) . "' /></th>
    166167                <td class='plugin-title'><strong>{$plugin_data->Name}</strong>" . sprintf(__('You are running version %1$s. Upgrade to %2$s.'), $plugin_data->Version, $plugin_data->update->new_version) . "</td>
    167168        </tr>";