Skip to content

Instantly share code, notes, and snippets.

Weston Ruter westonruter

Block or report user

Report or block westonruter

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View amp-validation-error-source-file-idea-editor.php
<?php
/**
* AMP Validation Error Source File IntelliJ IDEA Editor.
*
* @package AMP_Validation_Error_Source_File_Idea_Editor
* @author Weston Ruter, Google
* @link https://gist.github.com/westonruter/1a36a78a79fb1abbdfd1bb5b38a9f3a1
* @license GPL-2.0-or-later
* @copyright 2019 Google Inc.
*
View amp-reject-validation-errors-by-default.php
<?php
/**
* AMP Reject Validation Errors by Default plugin initialization file.
*
* @package AMP
* @author Weston Ruter, Google
* @link https://gist.github.com/westonruter/c1496d668b2a73a44aa423e6547a59b7
* @license GPL-2.0-or-later
* @copyright 2019 Google Inc.
*
View ultimate-blocks-countdown-amp.php
<?php
/**
* AMP-compatible Countdown Block
*
* @package AMP_UB_Countdown_Block
* @author Weston Ruter, Google
* @license GPL-2.0-or-later
* @copyright 2019 Google Inc.
*
* @wordpress-plugin
View amp-workaround-meta-http-equiv-content-type.php
<?php
/**
* AMP Workaround meta[http-equiv=Content-Type]
*
* @package AMP_Workaround_Meta_Content_Type
* @author Weston Ruter, Google
* @license GPL-2.0-or-later
* @copyright 2019 Google Inc.
*
* @wordpress-plugin
@westonruter
westonruter / functions.php
Last active Oct 7, 2019
Child theme of Noto Simple with full AMP compatibility
View functions.php
<?php
/**
* Noto Simple AMP functions and definitions
*
* @package Noto_Simple_AMP
*/
/**
* Determine whether it is an AMP response.
*
View amp-sanitize-processing-instructions.php
<?php
/**
* AMP Sanitize Processing Instructions
*
* @package AMP_Sanitize_PIs
* @author Weston Ruter, Google
* @license GPL-2.0-or-later
* @copyright 2019 Google Inc.
*
* @wordpress-plugin
View amp-query-monitor-compat.php
<?php
/**
* AMP Query Monitor Compat
*
* @package AMP_Query_Monitor_Compat
* @author Weston Ruter, Google
* @license GPL-2.0-or-later
* @copyright 2019 Google LLC
*
* @wordpress-plugin
View class-wp-smush-lazy-load.php.diff
diff --git a/core/modules/class-wp-smush-lazy-load.php b/core/modules/class-wp-smush-lazy-load.php
index bf5a447..d612bfc 100644
--- a/core/modules/class-wp-smush-lazy-load.php
+++ b/core/modules/class-wp-smush-lazy-load.php
@@ -60,11 +60,6 @@ class WP_Smush_Lazy_Load extends WP_Smush_Module {
return;
}
- // Skip AMP pages.
- if ( function_exists( 'is_amp_endpoint' ) && is_amp_endpoint() ) {
View amp-async-validation.php
<?php
/**
* AMP Async Validation
*
* @package AMP_Async_Validation
* @author Weston Ruter, Google
* @license GPL-2.0-or-later
* @copyright 2019 Google Inc.
*
* @wordpress-plugin
View amp-comments-count-in-excerpts.php
<?php
/**
* Plugin Name: AMP Comment Counts in Excerpts
*
* @author Weston Ruter, Google
* @license GPL-2.0-or-later
* @copyright 2019 Google Inc.
*
* @wordpress-plugin
* Plugin Name: AMP Comment Counts in Excerpts
You can’t perform that action at this time.