Make WordPress Core

Ticket #6308: 6308.diff

File 6308.diff, 915 bytes (added by DD32, 17 years ago)
  • wp-settings.php

     
    462462require (ABSPATH . WPINC . '/vars.php');
    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}
    469469
    470470if ( get_option('active_plugins') && !defined('WP_INSTALLING') ) {
    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}
    479480