Skip to content

Commit

Permalink
Jetpack: move mods into a single callback.
Browse files Browse the repository at this point in the history
  • Loading branch information
jeherve committed Oct 8, 2015
1 parent 3760abe commit 5a5e6f3
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions jetpack-helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,16 @@

// Jetpack bits.

add_action( 'pre_amp_render', 'amp_jetpack_disable_photon' );
add_action( 'pre_amp_render', 'amp_jetpack_disable_related_posts' );
add_action( 'pre_amp_render', 'amp_jetpack_mods' );

/**
* Disable Jetpack features that are not compatible with AMP.
*
**/
function amp_jetpack_mods() {
amp_jetpack_disable_photon();
amp_jetpack_disable_related_posts();
}

/**
* Disables Photon for all images.
Expand Down

0 comments on commit 5a5e6f3

Please sign in to comment.