mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-07 09:49:04 +00:00
New way of loading widgets that works with PHP 5. Thanks to filosofo for testing. see #4169
git-svn-id: https://develop.svn.wordpress.org/trunk@5363 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1502,8 +1502,10 @@ function wp_parse_args( $args, $defaults = '' ) {
|
||||
endif;
|
||||
}
|
||||
|
||||
function wp_load_widgets() {
|
||||
require_once ABSPATH . WPINC . '/widgets.php';
|
||||
function wp_maybe_load_widgets() {
|
||||
if ( !function_exists( 'dynamic_sidebar' ) ) {
|
||||
require_once ABSPATH . WPINC . '/widgets.php';
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user