Skip to content

Commit

Permalink
Remove amp-gfycat from registered scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
thelovekesh committed Sep 2, 2023
1 parent 684529e commit 85f1a8a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions includes/amp-helper-functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -998,6 +998,12 @@ function amp_register_default_scripts( $wp_scripts ) {
$version = $extension_spec['latest'];
}

// Skip registering the amp-gfycat extension.
// @TODO: Remove this once the amp-gfycat extension is removed from spec.
if ( 'amp-gfycat' === $extension_name ) {
continue;
}

$src = sprintf(
'https://cdn.ampproject.org/v0/%s-%s.js',
$extension_name,
Expand Down

0 comments on commit 85f1a8a

Please sign in to comment.