From c959cb8b9b40c4aba72842e23f34d5c51ebd441e Mon Sep 17 00:00:00 2001 From: Drew Jaynes Date: Thu, 8 Oct 2015 22:39:52 +0000 Subject: [PATCH] Embeds: Fix syntax on instantiating a new `WP_oEmbed_Controller` instance and cross-reference in the DocBlock for `wp_oembed_parse_query()`. See #34227. git-svn-id: https://develop.svn.wordpress.org/trunk@34969 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/embed-functions.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/wp-includes/embed-functions.php b/src/wp-includes/embed-functions.php index 4c705bfed3..1dac0467a4 100644 --- a/src/wp-includes/embed-functions.php +++ b/src/wp-includes/embed-functions.php @@ -332,10 +332,12 @@ function wp_embed_handler_video( $matches, $attr, $url, $rawattr ) { * * @since 4.4.0 * + * @see WP_oEmbed_Controller + * * @param WP_Query $wp_query The current WP_Query instance. */ function wp_oembed_parse_query( $wp_query ) { - $controller = new WP_oEmbed_Controller; + $controller = new WP_oEmbed_Controller(); $controller->parse_query( $wp_query ); }