Skip to content

Commit

Permalink
Merge pull request #3115 from ampproject/remove/amp-carousel-v0.1-pin…
Browse files Browse the repository at this point in the history
…ning

Stop pinning amp-carousel at v0.1 so that v0.2 can be used
  • Loading branch information
westonruter authored Dec 5, 2019
2 parents e5e722a + 873a4bf commit 35ca34f
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions includes/amp-helper-functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -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';
}
}

/**
Expand Down

0 comments on commit 35ca34f

Please sign in to comment.