Skip to content
This repository has been archived by the owner on Oct 10, 2018. It is now read-only.

Commit

Permalink
Merge pull request #42 from xwp/remove/amp-component-script-includes
Browse files Browse the repository at this point in the history
Remove manual inclusion of AMP component scripts
  • Loading branch information
westonruter authored Jan 25, 2018
2 parents 33e83b2 + 0ed4aac commit 85fb291
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -130,23 +130,6 @@ function ampconf_widgets_init() {
}
add_action( 'widgets_init', 'ampconf_widgets_init' );

/**
* Adds custom component scripts to the document.
*
* @todo Remove once amp-wp plugin automatically includes component scripts.
*
* @param array $amp_scripts AMP Component scripts, mapping component names to component source URLs.
*
* @return array
*/
function ampconf_amp_component_scripts( $amp_scripts ) {
$amp_scripts['amp-form'] = 'https://cdn.ampproject.org/v0/amp-form-0.1.js';
$amp_scripts['amp-bind'] = 'https://cdn.ampproject.org/v0/amp-bind-0.1.js';

return $amp_scripts;
}
add_filter( 'amp_component_scripts', 'ampconf_amp_component_scripts' );

/**
* Enqueues styles.
*/
Expand Down

0 comments on commit 85fb291

Please sign in to comment.