[wp-trac] [WordPress Trac] #31636: 4.2-beta1 - PHP warning when enqueuing script on specific pages only
WordPress Trac
noreply at wordpress.org
Wed Mar 25 17:54:53 UTC 2015
#31636: 4.2-beta1 - PHP warning when enqueuing script on specific pages only
---------------------------+----------------------
Reporter: harmr | Owner: ocean90
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 4.2
Component: Script Loader | Version: trunk
Severity: normal | Resolution: fixed
Keywords: has-patch | Focuses:
---------------------------+----------------------
Changes (by ocean90):
* owner: => ocean90
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"31887"]:
{{{
#!CommitTicketReference repository="" revision="31887"
Avoid a PHP notice in `wp_enqueue_script()` if $handle is an array.
Calling `wp_enqueue_script()` with an array as the first argument is a
"hidden feature" and should be avoided. Use dependencies instead.
props sorich87 for initial patch.
fixes #31636.
see #14488.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/31636#comment:11>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list