After [32596] and [32597], ensure that `wp_scripts|styles()` is called to ensure an instance is created of `WP_Scripts|Styles()` before calling `->do_items()`.
See #32444. git-svn-id: https://develop.svn.wordpress.org/trunk@32728 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
dba2b6a9c0
commit
c7c55f20b5
|
@ -82,7 +82,7 @@ function wp_print_scripts( $handles = false ) {
|
|||
}
|
||||
}
|
||||
|
||||
return $wp_scripts->do_items( $handles );
|
||||
return wp_scripts()->do_items( $handles );
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -61,7 +61,7 @@ function wp_print_styles( $handles = false ) {
|
|||
}
|
||||
}
|
||||
|
||||
return $wp_styles->do_items( $handles );
|
||||
return wp_styles()->do_items( $handles );
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue