[wp-trac] [WordPress Trac] #31116: Infinite loop in the media load page, media-models.min.js

WordPress Trac noreply at wordpress.org
Tue Feb 10 22:53:36 UTC 2015


#31116: Infinite loop in the media load page, media-models.min.js
--------------------------+---------------------------------
 Reporter:  Veritaserum   |       Owner:  wonderboymusic
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:  4.2
Component:  Media         |     Version:  4.1
 Severity:  normal        |  Resolution:  fixed
 Keywords:                |     Focuses:  ui, administration
--------------------------+---------------------------------
Changes (by wonderboymusic):

 * owner:   => wonderboymusic
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"31406"]:
 {{{
 #!CommitTicketReference repository="" revision="31406"
 Use `Math.round()` instead of `Math.floor()` when determining page of
 attachments to query in `wp.media.model.Query.sync`.

 This was causing an infinite loop of AJAX requests - so.... good catch!

 Props Veritaserum.
 Fixes #31116.
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/31116#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list