Ticket #4169: new-loading-widgets.diff
File new-loading-widgets.diff, 1.5 KB (added by , 18 years ago) |
---|
-
wp-includes/default-filters.php
174 174 add_action('mce_options', '_mce_set_direction'); 175 175 add_action('init', 'smilies_init', 5); 176 176 177 add_action( 'plugins_loaded', 'wp_ load_widgets', 0 );177 add_action( 'plugins_loaded', 'wp_maybe_load_widgets', 0 ); 178 178 179 179 ?> 180 No newline at end of file -
wp-includes/widgets.php
1 1 <?php 2 2 3 /*4 Check if another widget plugin is active. If this is so,5 then bail out.6 */7 8 if ( function_exists( 'dynamic_sidebar' ) ) {9 return;10 }11 12 3 /* Global Variables */ 13 4 14 5 global $wp_registered_sidebars, $wp_registered_widgets, $wp_registered_widget_controls, $wp_registered_widget_styles, $wp_registered_widget_defaults; -
wp-includes/functions.php
1502 1502 endif; 1503 1503 } 1504 1504 1505 function wp_load_widgets() { 1506 require_once ABSPATH . WPINC . '/widgets.php'; 1505 function wp_maybe_load_widgets() { 1506 if ( !function_exists( 'dynamic_sidebar' ) ) { 1507 require_once ABSPATH . WPINC . '/widgets.php'; 1508 } 1507 1509 } 1508 1510 1509 1511 ?> 1512 No newline at end of file