Issue with oembed replacement function in 2.2.1
-
I use a function in my functions.php to put a wrapper around my Featured Videos, so I can make them responsive. Here’s the code I use:
// Wrap a div around embedded videos add_filter('embed_oembed_html', 'my_embed_oembed_html', 99, 4); function my_embed_oembed_html($html, $url, $attr, $post_id) { return '<div class="video-container">' . $html . '</div>'; }
I then use CSS to control the “video-container” class.
However, if I upgrade to 2.2.1 or 2.2.2, it breaks my function.
Any idea why this happens?
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Issue with oembed replacement function in 2.2.1’ is closed to new replies.