mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-07 09:49:04 +00:00
Fix number formatting in dashboard stats for numbers > 999. http://mosquito.wordpress.org/view.php?id=1074 Hat tip: dougal
git-svn-id: https://develop.svn.wordpress.org/trunk@2433 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -72,22 +72,24 @@ if (empty($plugins)) {
|
||||
<?php
|
||||
$style = '';
|
||||
foreach($plugins as $plugin_file => $plugin_data) {
|
||||
$style = ('class="alternate"' == $style) ? '' : 'class="alternate"';
|
||||
$style = ('class="alternate"' == $style|| 'class="alternate active"' == $style) ? '' : 'alternate';
|
||||
|
||||
if (!empty($current_plugins) && in_array($plugin_file, $current_plugins)) {
|
||||
$action = "<a href='plugins.php?action=deactivate&plugin=$plugin_file' title='".__('Deactivate this plugin')."' class='delete'>".__('Deactivate')."</a>";
|
||||
$plugin_data['Title'] = "<strong>{$plugin_data['Title']}</strong>";
|
||||
$style .= $style == 'alternate' ? ' active' : 'active';
|
||||
} else {
|
||||
$action = "<a href='plugins.php?action=activate&plugin=$plugin_file' title='".__('Activate this plugin')."' class='edit'>".__('Activate')."</a>";
|
||||
}
|
||||
$plugin_data['Description'] = wp_kses($plugin_data['Description'], array('a' => array('href' => array(),'title' => array()),'abbr' => array('title' => array()),'acronym' => array('title' => array()),'code' => array(),'em' => array(),'strong' => array()) ); ;
|
||||
if ($style != '') $style = 'class="' . $style . '"';
|
||||
echo "
|
||||
<tr $style>
|
||||
<td>{$plugin_data['Title']}</td>
|
||||
<td>{$plugin_data['Version']}</td>
|
||||
<td>{$plugin_data['Author']}</td>
|
||||
<td>{$plugin_data['Description']}</td>
|
||||
<td>$action</td>
|
||||
<td class=\"name\">{$plugin_data['Title']}</td>
|
||||
<td class=\"vers\">{$plugin_data['Version']}</td>
|
||||
<td class=\"auth\">{$plugin_data['Author']}</td>
|
||||
<td class=\"desc\">{$plugin_data['Description']}</td>
|
||||
<td class=\"togl\">$action</td>
|
||||
</tr>";
|
||||
}
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user