[wp-trac] [WordPress Trac] #26886: wp_enqueue_script doesn't load all scripts
WordPress Trac
noreply at wordpress.org
Tue Feb 24 00:26:32 UTC 2015
#26886: wp_enqueue_script doesn't load all scripts
-------------------------------+------------------------------
Reporter: alfredocubitos | Owner:
Type: defect (bug) | Status: reopened
Priority: normal | Milestone: Awaiting Review
Component: Script Loader | Version: 3.8
Severity: normal | Resolution:
Keywords: reporter-feedback | Focuses:
-------------------------------+------------------------------
Comment (by dd32):
> So if it's literally WP that's "breaking" (note, I use that loosely) and
I know the exact code that's causing it, down to the char length, how can
it be the "server" outside of saying "because other's don't have the
issue"?
Because the code that joins it back together uses whatever is passed to
WordPress from the server. There's literally nothing in WordPress that can
cause what you're claiming - Unless you have a plugin breaking JS, a
server screwing with the request, or an install that's been modified
(either files missing, corrupt files, or something else).
> Yea, that's been my point, it loads perfectly fine if I a.) convert it
to load[] in the url and b.) put those load[]'s not in the middle of
script-names. :P
Then it kind of sounds like it's working as expected, based on `a)` only
being needed for testing, and `b)` not understanding how it works.
[attachment:26886.diff 26886.diff] is a debug change you can make, it
causes no JS to load, but will display an alert dialogue when you visit a
dashboard page with the scripts that it's attempting to load, The image
shows what you'd expect to see, `Load=` shows a proper string after
processing, no broken handle names. `$_GET['load']` shows a break every 40
characters ( in `inline-edit-post` and `wp-auth-check`) which is what the
browser passes (correctly).
--
Ticket URL: <https://core.trac.wordpress.org/ticket/26886#comment:18>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list