Ticket #1657: plugins-edit.diff
| File plugins-edit.diff, 2.1 KB (added by davidhouse, 7 years ago) |
|---|
-
wp-admin/plugins.php
77 77 <th><?php _e('Plugin'); ?></th> 78 78 <th><?php _e('Version'); ?></th> 79 79 <th><?php _e('Description'); ?></th> 80 <th ><?php _e('Action'); ?></th>80 <th colspan="2"><?php _e('Action'); ?></th> 81 81 </tr> 82 82 <?php 83 83 $style = ''; … … 85 85 $style = ('class="alternate"' == $style|| 'class="alternate active"' == $style) ? '' : 'alternate'; 86 86 87 87 if (!empty($current_plugins) && in_array($plugin_file, $current_plugins)) { 88 $ action= "<a href='plugins.php?action=deactivate&plugin=$plugin_file' title='".__('Deactivate this plugin')."' class='delete'>".__('Deactivate')."</a>";88 $toggle = "<a href='plugins.php?action=deactivate&plugin=$plugin_file' title='".__('Deactivate this plugin')."' class='delete'>".__('Deactivate')."</a>"; 89 89 $plugin_data['Title'] = "<strong>{$plugin_data['Title']}</strong>"; 90 90 $style .= $style == 'alternate' ? ' active' : 'active'; 91 91 } else { 92 $ action= "<a href='plugins.php?action=activate&plugin=$plugin_file' title='".__('Activate this plugin')."' class='edit'>".__('Activate')."</a>";92 $toggle = "<a href='plugins.php?action=activate&plugin=$plugin_file' title='".__('Activate this plugin')."' class='edit'>".__('Activate')."</a>"; 93 93 } 94 94 $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()) ); ; 95 95 if ($style != '') $style = 'class="' . $style . '"'; 96 $edit = "<a href='plugin-editor.php?file=$plugin_file' title='".__('Open this file in the Plugin Editor')."' class='edit'>".__('Edit')."</a>"; 96 97 echo " 97 98 <tr $style> 98 99 <td class='name'>{$plugin_data['Title']}</td> 99 100 <td class='vers'>{$plugin_data['Version']}</td> 100 101 <td class='desc'>{$plugin_data['Description']} <cite>By {$plugin_data['Author']}.</cite></td> 101 <td class='togl'>$action</td> 102 <td class='togl'>$toggle</td> 103 <td>$edit</td> 102 104 </tr>"; 103 105 } 104 106 ?>
