WordPress.org

Make WordPress Core

Changeset 22507


Ignore:
Timestamp:
11/09/2012 12:14:48 PM (8 years ago)
Author:
koopersmith
Message:

Media: When printing a gallery shortcode, hide the implicit orderby value. see #21390.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/js/mce-view.js

    r22499 r22507  
    640640                    attrs.ids = attachments.pluck('id');
    641641
     642                    // If the `ids` attribute is set and `orderby` attribute
     643                    // is the default value, clear it for cleaner output.
     644                    if ( attrs.ids && 'post__in' === attrs.orderby )
     645                        delete attrs.orderby;
     646
    642647                    shortcode = new wp.shortcode({
    643648                        tag:    'gallery',
Note: See TracChangeset for help on using the changeset viewer.