[wp-trac] [WordPress Trac] #24834: wp_enqueue_script passing null for $ver produces unexpected results
WordPress Trac
noreply at wordpress.org
Mon Aug 5 13:39:34 UTC 2013
#24834: wp_enqueue_script passing null for $ver produces unexpected results
--------------------------+------------------------------
Reporter: bobbingwide | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 3.5.2
Severity: normal | Resolution:
Keywords: close |
--------------------------+------------------------------
Comment (by nacin):
Why are you using a uniqid() for $handle? Use a real string like 'my-
example-widget' or something.
I doubt many people are using this "special" logic — and it likely just
predates extra arguments like $ver and such. I'd have to look. But we're
not going to remove it. Proper handle names are required. This is a case
of doing it wrong.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/24834#comment:10>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list