[wp-trac] [WordPress Trac] #32541: Call to a member function do_items on a non-object ($wp_styles)
WordPress Trac
noreply at wordpress.org
Wed Jun 10 06:02:25 UTC 2015
#32541: Call to a member function do_items on a non-object ($wp_styles)
---------------------------+--------------------
Reporter: Frozzare | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 4.3
Component: Script Loader | Version: trunk
Severity: normal | Resolution:
Keywords: | Focuses:
---------------------------+--------------------
Comment (by jeremyfelt):
I'm seeing this error on a new install of trunk in `wp-admin/install.php`.
The global `$wp_scripts` is not an instance of `WP_Scripts`, but a handle
of `user-profile` is passed so the empty array doesn't return.
The attached patch would hide the error, but the expected scripts would
not load. We could setup a new object if a handle is passed, similar to
what `wp_scripts()` does.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/32541#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list