mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
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
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user