[wp-trac] [WordPress Trac] #53171: Total number of attachments not updated when attachment uploaded

WordPress Trac noreply at wordpress.org
Fri May 7 23:24:26 UTC 2021


#53171: Total number of attachments not updated when attachment uploaded
----------------------------------------+----------------------
 Reporter:  joedolson                   |      Owner:  (none)
     Type:  defect (bug)                |     Status:  assigned
 Priority:  normal                      |  Milestone:  5.8
Component:  Media                       |    Version:  trunk
 Severity:  normal                      |   Keywords:
  Focuses:  javascript, administration  |
----------------------------------------+----------------------
 With the removal of infinite scroll in #50105, we're now displaying a
 value for the total number of attachments as part of the 'load more'
 interface. This value doesn't update if an attachment is added or removed
 from the visible collection.

 It looks like the the total attachments are only set when there's a
 collection query, and this isn't run when an item is uploaded or deleted.
 See the parse method in `media/models/attachments.js`, where
 this.totalAttachments is defined.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/53171>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list