From 00f2d8af3ecaa17954b95fa820043f8d2d82b4c1 Mon Sep 17 00:00:00 2001 From: Weston Ruter Date: Sat, 8 Jun 2019 16:55:19 -0700 Subject: [PATCH] Remove dead options from validated environment Amends ba158001e8fbb6a8d243f0eef729e0dc9c4715bf in #2508 --- .../validation/class-amp-validated-url-post-type.php | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/includes/validation/class-amp-validated-url-post-type.php b/includes/validation/class-amp-validated-url-post-type.php index e1383065443..ddcf3a3aa28 100644 --- a/includes/validation/class-amp-validated-url-post-type.php +++ b/includes/validation/class-amp-validated-url-post-type.php @@ -837,13 +837,6 @@ public static function get_post_staleness( $post ) { } } - if ( isset( $old_validated_environment['options'] ) ) { - $differing_options = array_diff_assoc( $new_validated_environment['options'], $old_validated_environment['options'] ); - if ( $differing_options ) { - $staleness['options'] = $differing_options; - } - } - return $staleness; } @@ -1751,10 +1744,6 @@ public static function print_status_meta_box( $post ) { esc_html_e( 'Different plugins were active when these results were obtained.', 'amp' ); echo ' '; } - if ( ! empty( $staleness['options'] ) ) { - esc_html_e( 'Options have changed.', 'amp' ); - echo ' '; - } esc_html_e( 'Please recheck.', 'amp' ); echo '

'; }