[wp-trac] [WordPress Trac] #23013: Gallery images don't display when original post associated with image is trashed

WordPress Trac noreply at wordpress.org
Thu Dec 20 03:46:44 UTC 2012


#23013: Gallery images don't display when original post associated with image is
trashed
--------------------------+------------------------------
 Reporter:  nmoinvaz      |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Gallery       |     Version:  3.5
 Severity:  normal        |  Resolution:
 Keywords:                |
--------------------------+------------------------------

Comment (by nmoinvaz):

 I am able to get around it temporarily by changing
 {{{
 if ( !empty($this->posts) && ($this->is_single || $this->is_page)) {
 }}}
 to:
 {{{
 if ( !empty($this->posts) && (($this->is_single && !$this->is_attachment)
 || $this->is_page))
 }}}

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


More information about the wp-trac mailing list