[wp-trac] [WordPress Trac] #21816: Add explicit ordering to the gallery shortcode

WordPress Trac wp-trac at lists.automattic.com
Wed Sep 5 22:50:27 UTC 2012


#21816: Add explicit ordering to the gallery shortcode
----------------------------+--------------------
 Reporter:  koopersmith     |       Owner:
     Type:  task (blessed)  |      Status:  new
 Priority:  normal          |   Milestone:  3.5
Component:  Media           |     Version:  trunk
 Severity:  normal          |  Resolution:
 Keywords:                  |
----------------------------+--------------------

Comment (by SergeyBiryukov):

 [attachment:21816.patch] is an attempt at sorting in PHP (with a bit of
 cleanup).

 `posts_per_page` wouldn't be an issue here, since `get_posts()` adjusts it
 accordingly: [[BR]]
 http://core.trac.wordpress.org/browser/tags/3.4.1/wp-
 includes/post.php#L1450

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/21816#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list