Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove obsolete Jetpack and WPCOM files #1925

Merged
merged 3 commits into from
May 10, 2019
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,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' ], // 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 @@ -265,10 +265,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.

92 changes: 0 additions & 92 deletions wpcom-helper.php

This file was deleted.

20 changes: 0 additions & 20 deletions wpcom/shortcodes.php

This file was deleted.