Opened 7 years ago
Closed 7 years ago
#37502 closed defect (bug) (fixed)
Undefined index in function wp_dependencies_unique_hosts()
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 4.6 | Priority: | normal |
Severity: | normal | Version: | 4.6 |
Component: | General | Keywords: | has-patch has-unit-tests commit dev-reviewed |
Focuses: | template | Cc: |
Description
When I use wp_deregister_script( 'select2' ); in a plugin, I receive the following PHP notices:
Notice: Undefined index: select2 in /Users/matt/projects/appp/www/wp-includes/general-template.php on line 2878
Notice: Trying to get property of non-object in /Users/matt/projects/appp/www/wp-includes/general-template.php on line 2879
Attachments (1)
Change History (12)
#3
@
7 years ago
Appears to be introduced in [38100].
Could you provide the exact code you're using? Sounds like it might run too early.
#4
@
7 years ago
- Keywords has-patch has-unit-tests added; reporter-feedback removed
- Milestone changed from Awaiting Review to 4.6
Thanks @stillatmylinux, 37502.patch should fix this issue.
#7
@
7 years ago
- Keywords commit added
- Milestone set to 4.6
- Resolution worksforme deleted
- Status changed from closed to reopened
@stillatmylinux Thanks for the feedback. To get it really fixed we have to commit it first. :-)
#8
@
7 years ago
37502.patch looks good to me.
Note: See
TracTickets for help on using
tickets.
Hello @stillatmylinux, welcome to our Trac!
Thanks for your report. Core doesn't bundle Select2 by default. Which theme and plugins are using?