Make WordPress Core

Changeset 54172


Ignore:
Timestamp:
09/15/2022 08:54:44 AM (18 months ago)
Author:
audrasjb
Message:

Docs: Add missing @since history in Gallery Shortcode function.

Props bengreeley, audrasjb, desrosj, mukesh27.
Fixes #56206.
See #55646.

File:
1 edited

Legend:

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

    r54128 r54172  
    23312331 *
    23322332 * @since 2.5.0
     2333 * @since 2.8.0 Added the `$attr` parameter to set the shortcode output. New attributes included
     2334 *              such as `size`, `itemtag`, `icontag`, `captiontag`, and columns. Changed markup from
     2335 *              `div` tags to `dl`, `dt` and `dd` tags. Support more than one gallery on the
     2336 *              same page.
     2337 * @since 2.9.0 Added support for `include` and `exclude` to shortcode.
     2338 * @since 3.5.0 Use get_post() instead of global `$post`. Handle mapping of `ids` to `include`
     2339 *              and `orderby`.
     2340 * @since 3.6.0 Added validation for tags used in gallery shortcode. Add orientation information to items.
     2341 * @since 3.7.0 Introduced the `link` attribute.
     2342 * @since 3.9.0 `html5` gallery support, accepting 'itemtag', 'icontag', and 'captiontag' attributes.
     2343 * @since 4.0.0 Removed use of `extract()`.
     2344 * @since 4.1.0 Added attribute to `wp_get_attachment_link()` to output `aria-describedby`.
     2345 * @since 4.2.0 Passed the shortcode instance ID to `post_gallery` and `post_playlist` filters.
     2346 * @since 4.6.0 Standardized filter docs to match documentation standards for PHP.
     2347 * @since 5.1.0 Code cleanup for WPCS 1.0.0 coding standards.
     2348 * @since 5.3.0 Saved progress of intermediate image creation after upload.
     2349 * @since 5.5.0 Ensured that galleries can be output as a list of links in feeds.
     2350 * @since 5.6.0 Replaced order-style PHP type conversion functions with typecasts. Fix logic for
     2351 *              an array of image dimensions.
    23332352 *
    23342353 * @param array $attr {
Note: See TracChangeset for help on using the changeset viewer.