Skip to content

Commit

Permalink
Remove jetpack-helper.php since deprecated after ampproject#1149
Browse files Browse the repository at this point in the history
  • Loading branch information
westonruter authored and aman committed Oct 20, 2019
1 parent 099b979 commit 8596ced
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 112 deletions.
2 changes: 1 addition & 1 deletion Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ module.exports = function( grunt ) {
dest: 'build',
expand: true,
options: {
noProcess: [ '*/**', 'LICENSE', 'jetpack-helper.php', 'wpcom-helper.php' ], // That is, only process amp.php and readme.txt.
noProcess: [ '*/**', 'LICENSE', 'wpcom-helper.php' ], // That is, only process amp.php and readme.txt.
process: function( content, srcpath ) {
var matches, version, versionRegex;
if ( /amp\.php$/.test( srcpath ) ) {
Expand Down
4 changes: 0 additions & 4 deletions amp.php
Original file line number Diff line number Diff line change
Expand Up @@ -266,10 +266,6 @@ function amp_init() {
// Redirect the old url of amp page to the updated url.
add_filter( 'old_slug_redirect_url', 'amp_redirect_old_slug_to_new_url' );

if ( class_exists( 'Jetpack' ) && ! ( defined( 'IS_WPCOM' ) && IS_WPCOM ) && version_compare( JETPACK__VERSION, '6.2-alpha', '<' ) ) {
require_once AMP__DIR__ . '/jetpack-helper.php';
}

// Add actions for legacy post templates.
add_action( 'wp', 'amp_maybe_add_actions' );

Expand Down
107 changes: 0 additions & 107 deletions jetpack-helper.php

This file was deleted.

0 comments on commit 8596ced

Please sign in to comment.