From 5de41748d3f545c9fdee964b516a22b62b612459 Mon Sep 17 00:00:00 2001 From: Gary Pendergast Date: Tue, 24 May 2016 06:14:19 +0000 Subject: [PATCH] Embeds: Ensure embed widths are integers. This prevents a warning in PHP trunk when a non-integer width is passed. See #36435. git-svn-id: https://develop.svn.wordpress.org/trunk@37549 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/embed.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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;