[wp-trac] [WordPress Trac] #34465: When Excluding Attachments, Media Modal Browser Doesn't Update on Uploads

WordPress Trac noreply at wordpress.org
Mon Dec 7 15:40:01 UTC 2015


#34465: When Excluding Attachments, Media Modal Browser Doesn't Update on Uploads
-------------------------------------------+------------------------------
 Reporter:  Funkatronic                    |       Owner:
     Type:  defect (bug)                   |      Status:  new
 Priority:  normal                         |   Milestone:  Awaiting Review
Component:  Media                          |     Version:  4.0
 Severity:  normal                         |  Resolution:
 Keywords:  has-screenshots needs-testing  |     Focuses:  ui
-------------------------------------------+------------------------------

Comment (by nikolov.tmw):

 @Funkatronic From what I grasp, it only observes the uploader if **all**
 of your parameters match the `allowed` array. So, since I have `'author'`
 in my parameters, the `_( this.args ).chain().keys().difference( allowed
 ).isEmpty().value()` part fails and no observing takes place.

 The problem is that we have no easy way to extend/override the `allowed`
 array(short of subclassing all of the related classes just to get to the
 `Query` class). That's as far as I understand the code of course.

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


More information about the wp-trac mailing list