https://embed.tumblr.com/embed/post/\w+/\w+)"#', $cache, $matches ) ) { $cache = AMP_HTML_Utils::build_tag( 'amp-iframe', array( 'width' => $this->args['width'], 'height' => $this->args['height'], 'layout' => 'responsive', 'sandbox' => 'allow-scripts allow-popups', // The allow-scripts is needed to allow the iframe to render; allow-popups needed to allow clicking. 'src' => $matches['href'], ), sprintf( 'Tumblr', $url ) ); } return $cache; } }