Changeset 12947 for trunk/wp-includes/load.php
- Timestamp:
- 02/04/2010 06:50:36 PM (16 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/load.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/load.php
r12930 r12947 404 404 function wp_load_plugins() { 405 405 $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() ); 412 407 413 408 // Get active network plugins … … 420 415 } 421 416 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 422 423 if ( empty( $active_plugins ) || defined( 'WP_INSTALLING' ) ) 423 424 return $plugins;
Note: See TracChangeset
for help on using the changeset viewer.