Make WordPress Core


Ignore:
Timestamp:
03/16/2009 10:02:40 PM (16 years ago)
Author:
ryan
Message:

Separate default widgets from widgets API. Always load API. fixes #9349

File:
1 edited

Legend:

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

    r10757 r10795  
    26152615 */
    26162616function wp_maybe_load_widgets() {
    2617     if ( !function_exists( 'dynamic_sidebar' ) ) {
    2618         require_once( ABSPATH . WPINC . '/widgets.php' );
    2619         add_action( '_admin_menu', 'wp_widgets_add_menu' );
    2620     }
     2617    if ( ! apply_filters('load_default_widgets', true) )
     2618        return;
     2619    require_once( ABSPATH . WPINC . '/default-widgets.php' );
     2620    add_action( '_admin_menu', 'wp_widgets_add_menu' );
    26212621}
    26222622
Note: See TracChangeset for help on using the changeset viewer.