Changeset 51151
- Timestamp:
- 06/15/2021 10:23:57 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-oembed-controller.php
r49610 r51151 160 160 * 161 161 * @see WP_oEmbed::get_html() 162 * @global WP_Embed $wp_embed 163 * 162 164 * @param WP_REST_Request $request Full data about the request. 163 165 * @return object|WP_Error oEmbed response data or WP_Error on failure. 164 166 */ 165 167 public function get_proxy_item( $request ) { 168 global $wp_embed; 169 166 170 $args = $request->get_params(); 167 171 … … 196 200 if ( false === $data ) { 197 201 // Try using a classic embed, instead. 198 global $wp_embed;199 200 202 /* @var WP_Embed $wp_embed */ 201 203 $html = $wp_embed->get_embed_handler_html( $args, $url );
Note: See TracChangeset
for help on using the changeset viewer.