Make WordPress Core


Ignore:
Timestamp:
11/27/2012 11:20:12 PM (12 years ago)
Author:
nacin
Message:

When editing a plain, legacy [gallery] shortcode, ensure we are sorting its contents using menu_order.

When attachments are sorted, we convert the shortcode to [gallery ids=""], as before.

props koopersmith.
fixes #22608.

File:
1 edited

Legend:

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

    r22872 r22882  
    12551255        'urlstream_upload'    => true,
    12561256    );
    1257    
     1257
    12581258    // Multi-file uploading doesn't currently work in iOS Safari,
    12591259    // single-file allows the built-in camera to be used as source for images
     
    13281328        'date'        => strtotime( $attachment->post_date_gmt ) * 1000,
    13291329        'modified'    => strtotime( $attachment->post_modified_gmt ) * 1000,
     1330        'menuOrder'   => $attachment->menu_order,
    13301331        'mime'        => $attachment->post_mime_type,
    13311332        'type'        => $type,
Note: See TracChangeset for help on using the changeset viewer.