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

Remove manual inclusion of AMP component scripts #42

Merged
merged 1 commit into from
Jan 25, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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