Make WordPress Core


Ignore:
Timestamp:
02/22/2009 08:30:12 AM (15 years ago)
Author:
westi
Message:

Unset once we have included all the plugins to keep things tidy. Fixes #6308 props DD32.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-settings.php

    r10584 r10624  
    463463
    464464// Check for hacks file if the option is enabled
    465 if (get_option('hack_file')) {
    466     if (file_exists(ABSPATH . 'my-hacks.php'))
     465if ( get_option('hack_file') ) {
     466    if ( file_exists(ABSPATH . 'my-hacks.php') )
    467467        require(ABSPATH . 'my-hacks.php');
    468468}
     
    471471    $current_plugins = get_option('active_plugins');
    472472    if ( is_array($current_plugins) ) {
    473         foreach ($current_plugins as $plugin) {
     473        foreach ( $current_plugins as $plugin ) {
    474474            if ( '' != $plugin && 0 == validate_file($plugin) && file_exists(WP_PLUGIN_DIR . '/' . $plugin) )
    475475                include_once(WP_PLUGIN_DIR . '/' . $plugin);
    476476        }
     477        unset($plugin);
    477478    }
    478479}
Note: See TracChangeset for help on using the changeset viewer.