Make WordPress Core

Changeset 33025


Ignore:
Timestamp:
07/01/2015 03:00:54 PM (10 years ago)
Author:
wonderboymusic
Message:

wp_audio|video_shortcode() doesn't allow you to pass id, the docs shall reflect that.

Props thorbrink.
See #32855.

File:
1 edited

Legend:

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

    r33018 r33025  
    15511551 *     @type string $preload  The 'preload' attribute for the `<audio>` element. Default empty.
    15521552 *     @type string $class    The 'class' attribute for the `<audio>` element. Default 'wp-audio-shortcode'.
    1553  *     @type string $id       The 'id' attribute for the `<audio>` element. Default 'audio-{$post_id}-{$instance}'.
    15541553 *     @type string $style    The 'style' attribute for the `<audio>` element. Default 'width: 100%'.
    15551554 * }
     
    17521751 *     @type string $class    The 'class' attribute for the `<video>` element.
    17531752 *                            Default 'wp-video-shortcode'.
    1754  *     @type string $id       The 'id' attribute for the `<video>` element.
    1755  *                            Default 'video-{$post_id}-{$instance}'.
    17561753 * }
    17571754 * @param string $content Shortcode content.
Note: See TracChangeset for help on using the changeset viewer.