mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
Separate default widgets from widgets API. Always load API. fixes #9349
git-svn-id: https://develop.svn.wordpress.org/trunk@10795 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -2614,10 +2614,10 @@ function wp_parse_args( $args, $defaults = '' ) {
|
||||
* @uses add_action() Calls '_admin_menu' hook with 'wp_widgets_add_menu' value.
|
||||
*/
|
||||
function wp_maybe_load_widgets() {
|
||||
if ( !function_exists( 'dynamic_sidebar' ) ) {
|
||||
require_once( ABSPATH . WPINC . '/widgets.php' );
|
||||
add_action( '_admin_menu', 'wp_widgets_add_menu' );
|
||||
}
|
||||
if ( ! apply_filters('load_default_widgets', true) )
|
||||
return;
|
||||
require_once( ABSPATH . WPINC . '/default-widgets.php' );
|
||||
add_action( '_admin_menu', 'wp_widgets_add_menu' );
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user