[wp-trac] [WordPress Trac] #42760: Trying to access an attachment directly by URL not working

WordPress Trac noreply at wordpress.org
Thu Dec 26 23:17:12 UTC 2019


#42760: Trying to access an attachment directly by URL not working
-----------------------------------------+------------------------------
 Reporter:  ppetrov2c                    |       Owner:  adamsilverstein
     Type:  defect (bug)                 |      Status:  accepted
 Priority:  normal                       |   Milestone:  5.4
Component:  Media                        |     Version:  4.9.1
 Severity:  normal                       |  Resolution:
 Keywords:  has-patch reporter-feedback  |     Focuses:  javascript
-----------------------------------------+------------------------------
Changes (by adamsilverstein):

 * keywords:   => has-patch reporter-feedback
 * status:  reviewing => accepted
 * milestone:  Awaiting Review => 5.4


Comment:

 In [attachment:"42760.diff"] :

 Media: ensure `item` is available before setting `skipHistory` on load.

 @ppetrov2c Thanks for your bug report! I finally was able to work on
 looking into the issue. Can you please test the attached patch to verify
 this resolves the issue for you?

 Anyone else who wants to test, its important that you:
 1.  Have more than 40 items in your media library.
 2. Click on the 41st or greater item in the media library.
 3. Reload the browser window.

 Before patch: Media item does not load, library shows instead, JavaScript
 console error
 After patch: Item loads, no errors.

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


More information about the wp-trac mailing list