WordPress.org

Make WordPress Core

Changeset 9352


Ignore:
Timestamp:
10/26/08 06:33:33 (5 years ago)
Author:
ryan
Message:

Fix plugin activation error reporting. Props DD32. fixes #7671

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/plugins.php

    r9342 r9352  
    6060            error_reporting( E_ALL ^ E_NOTICE ); 
    6161            @ini_set('display_errors', true); //Ensure that Fatal errors are displayed. 
    62             $result = activate_plugin($plugin, false);  
    63             if ( is_wp_error( $result ) )  
    64                 wp_die($result); 
     62            include(WP_PLUGIN_DIR . '/' . $plugin); 
     63            do_action('activate_' . $plugin); 
    6564            exit; 
    6665            break; 
Note: See TracChangeset for help on using the changeset viewer.