Changeset 22891
- Timestamp:
- 11/28/2012 03:51:27 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/media.php
r22889 r22891 670 670 $instance++; 671 671 672 if ( ! empty( $attr['ids'] ) ) { 673 // 'ids' is explicitly ordered 674 $attr['orderby'] = 'post__in'; 675 $attr['include'] = $attr['ids']; 676 } 677 672 678 // Allow plugins/themes to override the default gallery template. 673 679 $output = apply_filters('post_gallery', '', $attr); … … 691 697 'columns' => 3, 692 698 'size' => 'thumbnail', 693 'ids' => '',694 699 'include' => '', 695 700 'exclude' => '' … … 699 704 if ( 'RAND' == $order ) 700 705 $orderby = 'none'; 701 702 if ( !empty( $ids ) ) {703 // 'ids' is explicitly ordered704 $orderby = 'post__in';705 $include = $ids;706 }707 706 708 707 if ( !empty($include) ) {
Note: See TracChangeset
for help on using the changeset viewer.