From 873a4bf4a427f27d223c0f623c215f326ace2fec Mon Sep 17 00:00:00 2001 From: Weston Ruter Date: Wed, 28 Aug 2019 16:25:32 -0700 Subject: [PATCH] Revert "Keep amp-carousel on version 0.1 since 0.2 depends on experimental amp-base-carousel" This reverts commit c93cb0b3c7d16bed27cb2aa700efc5cb5a71c4ab. --- includes/amp-helper-functions.php | 9 --------- 1 file changed, 9 deletions(-) diff --git a/includes/amp-helper-functions.php b/includes/amp-helper-functions.php index 91394bfc453..c0354346637 100644 --- a/includes/amp-helper-functions.php +++ b/includes/amp-helper-functions.php @@ -479,15 +479,6 @@ function amp_register_default_scripts( $wp_scripts ) { null ); } - - if ( $wp_scripts->query( 'amp-carousel', 'registered' ) ) { - /* - * The 0.2 version of amp-carousel depends on the amp-base-carousel component, but this is still experimental. - * Also, the validator spec does not currently specify what base dependencies a given component has. - * @todo Revisit once amp-base-carousel is no longer experimental. Add support for obtaining a list of extensions that depend on other extensions to include in the script dependencies when registering below. - */ - $wp_scripts->registered['amp-carousel']->src = 'https://cdn.ampproject.org/v0/amp-carousel-0.1.js'; - } } /**