Skip to content

Commit

Permalink
Remove dead options from validated environment
Browse files Browse the repository at this point in the history
Amends ba15800 in #2508
  • Loading branch information
westonruter committed Jun 8, 2019
1 parent 22bd9e7 commit 00f2d8a
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions includes/validation/class-amp-validated-url-post-type.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down Expand Up @@ -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 '</p></div>';
}
Expand Down

0 comments on commit 00f2d8a

Please sign in to comment.