Make WordPress Core

Changeset 19003


Ignore:
Timestamp:
10/19/2011 02:51:48 PM (12 years ago)
Author:
nacin
Message:

Better padding and information on the plugins list on Dashboard/Updates. props otto42. fixes #17406.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/update-core.php

    r18520 r19003  
    1010require_once('./admin.php');
    1111
     12wp_enqueue_style( 'plugin-install' );
     13wp_enqueue_script( 'plugin-install' );
     14add_thickbox();
     15   
    1216if ( is_multisite() && ! is_network_admin() ) {
    1317    wp_redirect( network_admin_url( 'update-core.php' ) );
     
    247251            $upgrade_notice = '';
    248252        }
     253       
     254        $details_url = self_admin_url('plugin-install.php?tab=plugin-information&plugin=' . $plugin_data->update->slug . '&TB_iframe=true&width=640&height=662');
     255        $details_text = sprintf(__('View version %1$s details'), $plugin_data->update->new_version);
     256        $details = sprintf('<a href="%1$s" class="thickbox" title="%2$s">%3$s</a>.', esc_url($details_url), esc_attr($plugin_data->Name), $details_text);
     257       
    249258        echo "
    250259    <tr class='active'>
    251260        <th scope='row' class='check-column'><input type='checkbox' name='checked[]' value='" . esc_attr($plugin_file) . "' /></th>
    252         <td><strong>{$plugin_data->Name}</strong><br />" . sprintf(__('You have version %1$s installed. Update to %2$s.'), $plugin_data->Version, $plugin_data->update->new_version) . $compat . $upgrade_notice . "</td>
     261        <td><p><strong>{$plugin_data->Name}</strong><br />" . sprintf(__('You have version %1$s installed. Update to %2$s.'), $plugin_data->Version, $plugin_data->update->new_version) . ' ' . $details . $compat . $upgrade_notice . "</p></td>
    253262    </tr>";
    254263    }
     
    300309    <tr class='active'>
    301310        <th scope='row' class='check-column'><input type='checkbox' name='checked[]' value='" . esc_attr($stylesheet) . "' /></th>
    302         <td class='plugin-title'><img src='$screenshot' width='64' height='64' style='float:left; padding: 5px' /><strong>{$theme_data->Name}</strong>" .  sprintf(__('You have version %1$s installed. Update to %2$s.'), $theme_data->Version, $theme_data->update['new_version']) . "</td>
     311        <td class='plugin-title'><img src='$screenshot' width='64' height='64' style='float:left; padding: 0 5px 5px' /><strong>{$theme_data->Name}</strong>" .  sprintf(__('You have version %1$s installed. Update to %2$s.'), $theme_data->Version, $theme_data->update['new_version']) . "</td>
    303312    </tr>";
    304313    }
Note: See TracChangeset for help on using the changeset viewer.