Changeset 11966 for trunk/wp-admin/includes/plugin.php
- Timestamp:
- 09/24/2009 04:15:37 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/plugin.php
r11930 r11966 273 273 */ 274 274 function is_plugin_active($plugin) { 275 return in_array( $plugin, get_option('active_plugins'));275 return in_array( $plugin, apply_filters( 'active_plugins', get_option( 'active_plugins' ) ) ); 276 276 } 277 277 … … 348 348 if ( ! $silent ) 349 349 do_action( 'deactivate_plugin', trim( $plugin ) ); 350 array_splice($current, array_search( $plugin, $current), 1 ); // Fixed Array-fu! 350 351 $key = array_search( $plugin, (array) $current ); 352 353 if ( false !== $key ) 354 array_splice( $current, $key, 1 ); 355 351 356 //Used by Plugin updater to internally deactivate plugin, however, not to notify plugins of the fact to prevent plugin output. 352 357 if ( ! $silent ) { … … 485 490 486 491 function validate_active_plugins() { 487 $check_plugins = get_option('active_plugins');492 $check_plugins = apply_filters( 'active_plugins', get_option('active_plugins') ); 488 493 489 494 // Sanity check. If the active plugin list is not an array, make it an
Note: See TracChangeset
for help on using the changeset viewer.