Skip to content

Commit

Permalink
Remove unused $matches
Browse files Browse the repository at this point in the history
Co-authored-by: Alain Schlesser <[email protected]>
  • Loading branch information
westonruter and schlessera committed Apr 14, 2021
1 parent 5b84bc7 commit f634910
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/class-amp-theme-support.php
Original file line number Diff line number Diff line change
Expand Up @@ -1813,7 +1813,7 @@ public static function prepare_response( $response, $args = [] ) {
// since \AMP_Validation_Manager::validate_url() follows redirects.
$sent_location_header = false;
foreach ( headers_list() as $sent_header ) {
if ( preg_match( '#^location:#i', $sent_header, $matches ) ) {
if ( preg_match( '#^location:#i', $sent_header ) ) {
$sent_location_header = true;
break;
}
Expand Down

0 comments on commit f634910

Please sign in to comment.