Skip to content

Commit

Permalink
Fix irrelevant error message on plugin activation again. Props andy. …
Browse files Browse the repository at this point in the history
…Fixes #15062 for the 3.0 branch. see #7671.

git-svn-id: https://develop.svn.wordpress.org/branches/3.0@15745 602fd350-edb4-49c9-b593-d223f7449a82
  • Loading branch information
nacin committed Oct 7, 2010
1 parent 4759dd5 commit 4865c45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wp-admin/includes/plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -483,6 +483,7 @@ function activate_plugin( $plugin, $redirect = '', $network_wide = false) {
ob_start();
include(WP_PLUGIN_DIR . '/' . $plugin);
do_action( 'activate_plugin', trim( $plugin) );
do_action( 'activate_' . trim( $plugin ) );
if ( $network_wide ) {
$current[$plugin] = time();
update_site_option( 'active_sitewide_plugins', $current );
Expand All @@ -491,7 +492,6 @@ function activate_plugin( $plugin, $redirect = '', $network_wide = false) {
sort($current);
update_option('active_plugins', $current);
}
do_action( 'activate_' . trim( $plugin ) );
do_action( 'activated_plugin', trim( $plugin) );
if ( ob_get_length() > 0 ) {
$output = ob_get_clean();
Expand Down

0 comments on commit 4865c45

Please sign in to comment.