[wp-trac] [WordPress Trac] #22907: Twenty Eleven: Gallery thumbnail missing in some cases

WordPress Trac noreply at wordpress.org
Wed Mar 27 04:10:50 UTC 2013


#22907: Twenty Eleven: Gallery thumbnail missing in some cases
-------------------------------------+------------------
 Reporter:  obenland                 |       Owner:
     Type:  defect (bug)             |      Status:  new
 Priority:  normal                   |   Milestone:  3.6
Component:  Bundled Theme            |     Version:  3.5
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch needs-testing  |
-------------------------------------+------------------

Comment (by lancewillett):

 So I figured out why the 3.5.1 and 3.6 cases don't work -- this solution
 depends on {{{ids}}} attribute being set in the shortcode.

 If that's an OK assumption (since 3.5+ adding a gallery to content should
 add the IDs also) -- we can go with it.

 Otherwise, we should catch that in the code -- if after checking with
 {{{get_post_galleries()}}} and the {{{$images}}} array is still empty --
 go with the fallback that uses {{{{get_posts()}}}.

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


More information about the wp-trac mailing list