Make WordPress Core


Ignore:
Timestamp:
11/01/2015 03:41:28 PM (9 years ago)
Author:
DrewAPicture
Message:

Docs: Correctly notate that the default $width and $height embed dimensions are passed to the embed_defaults filter as a compacted array, and not two distinct parameters.

Props swissspidy.
Fixes #34522.

File:
1 edited

Legend:

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

    r35472 r35485  
    4444
    4545/**
    46  * Create default array of embed parameters.
     46 * Creates default array of embed parameters.
    4747 *
    4848 * The width defaults to the content width as specified by the theme. If the
     
    7575     * @since 2.9.0
    7676     *
    77      * @param int    $width  Width of the embed in pixels.
    78      * @param int    $height Height of the embed in pixels.
    79      * @param string $url    The URL that should be embedded.
     77     * @param array  $size An array of embed width and height values
     78     *                     in pixels (in that order).
     79     * @param string $url  The URL that should be embedded.
    8080     */
    8181    return apply_filters( 'embed_defaults', compact( 'width', 'height' ), $url );
Note: See TracChangeset for help on using the changeset viewer.