From 0b2f05a9f61c4032d0ef3138973b10adee8a032f Mon Sep 17 00:00:00 2001 From: Jb Audras Date: Thu, 15 Sep 2022 08:54:44 +0000 Subject: [PATCH] Docs: Add missing `@since` history in Gallery Shortcode function. Props bengreeley, audrasjb, desrosj, mukesh27. Fixes #56206. See #55646. git-svn-id: https://develop.svn.wordpress.org/trunk@54172 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/media.php | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/src/wp-includes/media.php b/src/wp-includes/media.php index 61c93c9528..54581808a1 100644 --- a/src/wp-includes/media.php +++ b/src/wp-includes/media.php @@ -2330,6 +2330,25 @@ add_shortcode( 'gallery', 'gallery_shortcode' ); * 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.