[wp-trac] [WordPress Trac] #42730: Allow wp_enqueue_scripts() for URLs with parameters
WordPress Trac
noreply at wordpress.org
Tue Nov 28 14:36:16 UTC 2017
#42730: Allow wp_enqueue_scripts() for URLs with parameters
---------------------------+------------------------------
Reporter: MattyRob | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Script Loader | Version:
Severity: normal | Resolution:
Keywords: | Focuses: javascript
---------------------------+------------------------------
Changes (by MattyRob):
* keywords: reporter-feedback =>
Comment:
@johnbillion
The library I'm adding makes it tricky to directly test so I'd tested in
the WordPress admin:
Manually encoding the ampersand in t a link on the All Posts page like the
following link:
http://localhost/dev/src/wp-
admin/edit.php?category_name=uncategorized&mode=list&paged=2
Reloads the page in Safari as follow and page 1 is loaded:
http://localhost/dev/src/wp-
admin/edit.php?category_name=uncategorized#038;mode=list&paged=2
From there I'd presumed (incorrectly) that the ampersand encoding was
breaking my javascript enqueuing also.
It seems my library is queuing correctly - it just looks weird in the
source when you check back to make sure it's queued right.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/42730#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list