WordPress.org

Make WordPress Core

Opened 7 months ago

Last modified 7 months ago

#42393 new defect (bug)

Enqueue CDN Script With Dependency

Reported by: tabboy Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 4.8.1
Component: General Keywords: close
Focuses: Cc:

Description

If I try and enqueue a CDN script with a dependecy the page returns a 503 error.

<?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.

Change History (1)

#1 @JPry
7 months ago

  • Keywords close added

Hi @tabboy, welcome to Trac!

This site is meant for tracking issues related to the core WordPress codebase. For help with your own custom code, the best place to post would be on the WordPress Support Forums.

Note: See TracTickets for help on using tickets.