mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
Docs: In various @return tags, list the expected type first, instead of WP_Error.
See #48303. git-svn-id: https://develop.svn.wordpress.org/trunk@46696 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -110,7 +110,7 @@ final class WP_oEmbed_Controller {
|
||||
* @since 4.4.0
|
||||
*
|
||||
* @param WP_REST_Request $request Full data about the request.
|
||||
* @return WP_Error|array oEmbed response data or WP_Error on failure.
|
||||
* @return array|WP_Error oEmbed response data or WP_Error on failure.
|
||||
*/
|
||||
public function get_item( $request ) {
|
||||
$post_id = url_to_postid( $request['url'] );
|
||||
|
||||
Reference in New Issue
Block a user