Skip to content

Commit

Permalink
Remove erroneous call to wp() in AMP_Widget_Text::inject_video_max_wi…
Browse files Browse the repository at this point in the history
…dth_style()
  • Loading branch information
westonruter committed Jan 4, 2019
1 parent a0bc752 commit 744202d
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion includes/widgets/class-amp-widget-text.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ class AMP_Widget_Text extends WP_Widget_Text {
* @return string $html The markup, unaltered.
*/
public function inject_video_max_width_style( $matches ) {
wp();
if ( is_amp_endpoint() ) {
return $matches[0];
}
Expand Down

0 comments on commit 744202d

Please sign in to comment.