diff --git a/includes/embeds/class-amp-imgur-embed-handler.php b/includes/embeds/class-amp-imgur-embed-handler.php index 77362be5dff..ad60aca4cc4 100644 --- a/includes/embeds/class-amp-imgur-embed-handler.php +++ b/includes/embeds/class-amp-imgur-embed-handler.php @@ -49,13 +49,6 @@ public function filter_embed_oembed_html( $return, $url, $attr ) { } if ( false !== strpos( $parsed_url['host'], 'imgur.com' ) ) { - if ( preg_match( '/width=["\']?(\d+)/', $return, $matches ) ) { - $attr['width'] = $matches[1]; - } - if ( preg_match( '/height=["\']?(\d+)/', $return, $matches ) ) { - $attr['height'] = $matches[1]; - } - if ( empty( $attr['height'] ) ) { return $return; }