Make WordPress Core


Ignore:
Timestamp:
05/01/2007 01:58:18 AM (18 years ago)
Author:
rob1n
Message:

New way of loading widgets that works with PHP 5. Thanks to filosofo for testing. see #4169

File:
1 edited

Legend:

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

    r5360 r5363  
    15031503}
    15041504
    1505 function wp_load_widgets() {
    1506     require_once ABSPATH . WPINC . '/widgets.php';
     1505function wp_maybe_load_widgets() {
     1506    if ( !function_exists( 'dynamic_sidebar' ) ) {
     1507        require_once ABSPATH . WPINC . '/widgets.php';
     1508    }
    15071509}
    15081510
Note: See TracChangeset for help on using the changeset viewer.