Make WordPress Core


Ignore:
Timestamp:
01/07/2014 04:06:48 PM (13 years ago)
Author:
johnbillion
Message:

Inline documentation for core shortcode attributes.

Props DrewAPicture, johnbillion.
Fixes #25661.

File:
1 edited

Legend:

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

    r25868 r26915  
    131131         * @uses update_post_meta()
    132132         *
    133          * @param array $attr Shortcode attributes.
     133         * @param array $attr {
     134         *     Shortcode attributes. Optional.
     135         *
     136         *     @type int $width  Width of the embed in pixels.
     137         *     @type int $height Height of the embed in pixels.
     138         * }
    134139         * @param string $url The URL attempting to be embedded.
    135140         * @return string The embed HTML on success, otherwise the original URL.
     
    159164                                                 * @since 2.9.0
    160165                                                 *
     166                                                 * @see WP_Embed::shortcode()
     167                                                 *
    161168                                                 * @param mixed  $return The shortcode callback function to call.
    162169                                                 * @param string $url    The attempted embed URL.
     
    189196                                         *
    190197                                         * @since 2.9.0
     198                                         *
     199                                         * @see WP_Embed::shortcode()
    191200                                         *
    192201                                         * @param mixed  $cache   The cached HTML result, stored in post meta.
Note: See TracChangeset for help on using the changeset viewer.