WordPress.org

Make WordPress Core


Ignore:
Timestamp:
02/04/2010 06:50:36 PM (11 years ago)
Author:
ryan
Message:

Sitewide plugins cleanup. Props nacin. see #11644

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/load.php

    r12930 r12947  
    404404function wp_load_plugins() {
    405405    $plugins = array();
    406 
    407     // Check for hacks file if the option is enabled
    408     if ( get_option( 'hack_file' ) && file_exists( ABSPATH . 'my-hacks.php' ) )
    409             $plugins[] = ABSPATH . 'my-hacks.php';
    410 
    411     $active_plugins = (array) apply_filters( 'active_plugins', get_option( 'active_plugins', array() ) );
     406    $active_plugins = (array) get_option( 'active_plugins', array() );
    412407
    413408    // Get active network plugins
     
    420415    }
    421416
     417    // Check for hacks file if the option is enabled
     418    if ( get_option( 'hack_file' ) && file_exists( ABSPATH . 'my-hacks.php' ) ) {
     419        _deprecated_file( 'my-hacks.php', '1.5' );
     420        array_unshift( $plugins, ABSPATH . 'my-hacks.php' );
     421    }
     422
    422423    if ( empty( $active_plugins ) || defined( 'WP_INSTALLING' ) )
    423424        return $plugins;
Note: See TracChangeset for help on using the changeset viewer.