WordPress.org

Make WordPress Core

Changeset 37549


Ignore:
Timestamp:
05/24/2016 06:14:19 AM (3 years ago)
Author:
pento
Message:

Embeds: Ensure embed widths are integers.

This prevents a warning in PHP trunk when a non-integer width is passed.

See #36435.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/embed.php

    r37543 r37549  
    524524 */
    525525function get_oembed_response_data( $post, $width ) {
    526     $post = get_post( $post );
     526    $post  = get_post( $post );
     527    $width = absint( $width );
    527528
    528529    if ( ! $post ) {
Note: See TracChangeset for help on using the changeset viewer.