[wp-trac] Re: [WordPress Trac] #7678: Front Page with 2 galleries doesn't respect settings for each

WordPress Trac wp-trac at lists.automattic.com
Mon Apr 27 23:49:41 GMT 2009


#7678: Front Page with 2 galleries doesn't respect settings for each
------------------------------------+---------------------------------------
 Reporter:  MtDewVirus              |        Type:  defect (bug)
   Status:  new                     |    Priority:  normal      
Milestone:  2.8                     |   Component:  Gallery     
  Version:  2.7                     |    Severity:  normal      
 Keywords:  gallery,css, has-patch  |  
------------------------------------+---------------------------------------

Comment(by jamescollins):

 Replying to [comment:6 jamescollins]:
 > The other option could be to use a static counter variable that is
 incremented by one every time the [gallery] shortcode is parsed. This
 guarantees a unique class selector for each gallery on each page.

 Patch for this attached (see {{{7678_alternative.diff}}}).

 Which solution do you think is better?

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


More information about the wp-trac mailing list