Make WordPress Core

Ticket #56206: 56206.diff

File 56206.diff, 1.8 KB (added by ben.greeley, 3 years ago)
  • src/wp-includes/media.php

    diff --git a/src/wp-includes/media.php b/src/wp-includes/media.php
    index 456cd7c988..5274fa6ad0 100644
    a b add_shortcode( 'gallery', 'gallery_shortcode' ); 
    24462446 * WordPress images on a post.
    24472447 *
    24482448 * @since 2.5.0
     2449 * @since 2.8.0 Added the `$attr` parameter to set the shortcode output. New attributes included
     2450 *        such as `size`, `itemtag`, `icontag`, `captiontag`, and columns. Changed markup from
     2451 *        `div` tags to `dl`, `dt` and `dd` tags. Support more than one gallery on the
     2452 *        same page.
     2453 * @since 2.9.0 Adds support for `include` and `exclude` to shortcode.
     2454 * @since 3.5.0 Uses get_post() instead of global `$post`. Handle mapping of `ids` to `include`
     2455 *        and `orderby`.
     2456 * @since 3.6.0 Validate the tags used in gallery shortcode. Add orientation information to items.
     2457 * @since 3.7.0 `link` attribute introduced wo.
     2458 * @since 3.9.0 `html5` gallery support, accepting 'itemtag', 'icontag', and 'captiontag' attributes.
     2459 *        Inline documentation for shortcode attributes.
     2460 * @since 4.0.0 Eliminate use of `extract()`.
     2461 * @since 4.1.0 Adds attribute to `wp_get_attachment_link()` to output `aria-describedby`.
     2462 * @since 4.2.0 Pass the shortcode instance ID to `post_gallery` and `post_playlist` filters.
     2463 * @since 4.6.0 Standardize filter docs to match documentation standards for PHP.
     2464 * @since 5.1.0 Code cleanup for WPCS 1.0.0 coding standards.
     2465 * @since 5.3.0 Save progress of intermediate image creation after upload.
     2466 * @since 5.5.0 Ensures that galleries can be output as a list of links in feeds.
     2467 * @since 5.6.0 Replace order-style PHP type conversion functions with typecasts. Fix logic for
     2468 *        an array of image dimensions.
    24492469 *
    24502470 * @param array $attr {
    24512471 *     Attributes of the gallery shortcode.