Changeset 5363
- Timestamp:
- 05/01/2007 01:58:18 AM (19 years ago)
- Files:
-
- 6 edited
-
branches/2.2/wp-includes/default-filters.php (modified) (1 diff)
-
branches/2.2/wp-includes/functions.php (modified) (1 diff)
-
branches/2.2/wp-includes/widgets.php (modified) (1 diff)
-
trunk/wp-includes/default-filters.php (modified) (1 diff)
-
trunk/wp-includes/functions.php (modified) (1 diff)
-
trunk/wp-includes/widgets.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2/wp-includes/default-filters.php
r5360 r5363 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 ?> -
branches/2.2/wp-includes/functions.php
r5360 r5363 1469 1469 } 1470 1470 1471 function wp_load_widgets() { 1472 require_once ABSPATH . WPINC . '/widgets.php'; 1471 function wp_maybe_load_widgets() { 1472 if ( !function_exists( 'dynamic_sidebar' ) ) { 1473 require_once ABSPATH . WPINC . '/widgets.php'; 1474 } 1473 1475 } 1474 1476 -
branches/2.2/wp-includes/widgets.php
r5360 r5363 1 1 <?php 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_sidebars' ) ) {9 return;10 }11 2 12 3 /* Global Variables */ -
trunk/wp-includes/default-filters.php
r5360 r5363 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 ?> -
trunk/wp-includes/functions.php
r5360 r5363 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 -
trunk/wp-includes/widgets.php
r5362 r5363 1 1 <?php 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 2 12 3 /* Global Variables */
Note: See TracChangeset
for help on using the changeset viewer.