From 733ccfe08adf25d3ea86820824c070ebdf405e16 Mon Sep 17 00:00:00 2001 From: Gary Pendergast Date: Tue, 24 May 2016 06:15:28 +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. Built from https://develop.svn.wordpress.org/trunk@37549 git-svn-id: http://core.svn.wordpress.org/trunk@37517 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/embed.php | 3 ++- wp-includes/version.php | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/wp-includes/embed.php b/wp-includes/embed.php index 52481e179b..91e42691cc 100644 --- a/wp-includes/embed.php +++ b/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; diff --git a/wp-includes/version.php b/wp-includes/version.php index 963b849b58..c9ba6f26dc 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.6-alpha-37548'; +$wp_version = '4.6-alpha-37549'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.