[wp-trac] [WordPress Trac] #42393: Enqueue CDN Script With Dependency
WordPress Trac
noreply at wordpress.org
Wed Nov 1 07:09:02 UTC 2017
#42393: Enqueue CDN Script With Dependency
--------------------------+-----------------------------
Reporter: tabboy | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 4.8.1
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
If I try and enqueue a CDN script with a dependecy the page returns a 503
error.
{{{#!php
<?php
wp_enqueue_style( 'font-awesome', 'https://cdnjs.cloudflare.com/ajax/libs
/font-awesome/4.7.0/css/font-awesome.min.css', array('parent-style'),
'4.7.0' );
}}}
Removing the dependency to 'parent-style' resolves the issue and the page
loads normally.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/42393>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list