diff --git a/src/wp-includes/media.php b/src/wp-includes/media.php index 61c93c95289f4..54581808a1ea9 100644 --- a/src/wp-includes/media.php +++ b/src/wp-includes/media.php @@ -2330,6 +2330,25 @@ function img_caption_shortcode( $attr, $content = '' ) { * WordPress images on a post. * * @since 2.5.0 + * @since 2.8.0 Added the `$attr` parameter to set the shortcode output. New attributes included + * such as `size`, `itemtag`, `icontag`, `captiontag`, and columns. Changed markup from + * `div` tags to `dl`, `dt` and `dd` tags. Support more than one gallery on the + * same page. + * @since 2.9.0 Added support for `include` and `exclude` to shortcode. + * @since 3.5.0 Use get_post() instead of global `$post`. Handle mapping of `ids` to `include` + * and `orderby`. + * @since 3.6.0 Added validation for tags used in gallery shortcode. Add orientation information to items. + * @since 3.7.0 Introduced the `link` attribute. + * @since 3.9.0 `html5` gallery support, accepting 'itemtag', 'icontag', and 'captiontag' attributes. + * @since 4.0.0 Removed use of `extract()`. + * @since 4.1.0 Added attribute to `wp_get_attachment_link()` to output `aria-describedby`. + * @since 4.2.0 Passed the shortcode instance ID to `post_gallery` and `post_playlist` filters. + * @since 4.6.0 Standardized filter docs to match documentation standards for PHP. + * @since 5.1.0 Code cleanup for WPCS 1.0.0 coding standards. + * @since 5.3.0 Saved progress of intermediate image creation after upload. + * @since 5.5.0 Ensured that galleries can be output as a list of links in feeds. + * @since 5.6.0 Replaced order-style PHP type conversion functions with typecasts. Fix logic for + * an array of image dimensions. * * @param array $attr { * Attributes of the gallery shortcode.