[wp-trac] Re: [WordPress Trac] #6476: 2.5 Gallery shortcode orderby not working

WordPress Trac wp-trac at lists.automattic.com
Mon Mar 31 07:46:54 GMT 2008


#6476: 2.5 Gallery shortcode orderby not working
---------------------------+------------------------------------------------
 Reporter:  GeoffHarrison  |        Owner:  anonymous
     Type:  defect         |       Status:  reopened 
 Priority:  normal         |    Milestone:  2.5.1    
Component:  General        |      Version:  2.5      
 Severity:  normal         |   Resolution:           
 Keywords:  has-patch      |  
---------------------------+------------------------------------------------
Comment (by markjaquith):

 6476.002.diff does:

  1. detection of ASC/DESC in {{{$orderby}}} in get_posts() and ignores
 {{{$order}}} if present
  1. regex screening of orderby clause passed through the gallery shortcode
  1. removes the quotes

 {{{[gallery orderby="RAND()"]}}} is kinda fun.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/6476#comment:8>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list