wp-content/plugins directory. Once a plugin is installed, you may activate it or deactivate it here. If something goes wrong with a plugin and you can’t use WordPress, delete that plugin from the wp-content/plugins
directory and it will be automatically deactivated.'); ?>
read()) !== false) {
if ( !preg_match('|^\.+$|', $file) && preg_match('|\.php$|', $file) )
$plugin_files[] = $file;
}
}
if ( get_settings('active_plugins') )
$current_plugins = get_settings('active_plugins');
if (!$plugins_dir || !$plugin_files) {
_e("
Couldn't open plugins directory or there are no plugins available.
"); // TODO: make more helpful
} else {
?>
|
|
|
|
|
{$plugin_name[1]}");
}
if ('' == $author_uri) {
$author = $author_name[1];
} else {
$author = __("{$author_name[1]}");
}
$style = ('class="alternate"' == $style) ? '' : 'class="alternate"';
if (!empty($current_plugins) && in_array($plugin_file, $current_plugins)) {
$action = __("Deactivate");
$plugin = __("$plugin");
} else {
$action = __("Activate");
}
echo "
$plugin |
$version |
$author |
$description |
$action |
";
}
?>