diff --git a/src/wp-includes/embed.php b/src/wp-includes/embed.php index 4b95506fd3..79b0503180 100644 --- a/src/wp-includes/embed.php +++ b/src/wp-includes/embed.php @@ -523,7 +523,8 @@ JS; * @return array|false Response data on success, false if post doesn't exist. */ function get_oembed_response_data( $post, $width ) { - $post = get_post( $post ); + $post = get_post( $post ); + $width = absint( $width ); if ( ! $post ) { return false;