[wp-trac] [WordPress Trac] #23873: Gallery shortcode orderby does not support multiple column sorting

WordPress Trac noreply at wordpress.org
Tue Oct 28 19:48:39 UTC 2014


#23873: Gallery shortcode orderby does not support multiple column sorting
-------------------------------------+--------------------
 Reporter:  dglingren                |       Owner:
     Type:  defect (bug)             |      Status:  new
 Priority:  normal                   |   Milestone:  4.1
Component:  Gallery                  |     Version:  3.5.1
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch needs-testing  |     Focuses:
-------------------------------------+--------------------

Comment (by wonderboymusic):

 Because these values will eventually be passed to `WP_Query`, only valid
 values will make it through `->parse_orderby()`, so I think this strict
 check is unnecessary here.

 The only place `sanitize_sql_orderby()` is used is in the gallery
 shortcode - it's used in the playlist shortcode too, but I only added it
 there because it was in gallery.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/23873#comment:11>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list