[wp-trac] [WordPress Trac] #55491: Replace `unload` event handlers from core

WordPress Trac noreply at wordpress.org
Thu Aug 24 19:14:42 UTC 2023


#55491: Replace `unload` event handlers from core
-------------------------------------+-------------------------------------
 Reporter:  shawfactor               |       Owner:  westonruter
     Type:  enhancement              |      Status:  accepted
 Priority:  normal                   |   Milestone:  6.4
Component:  Administration           |     Version:
 Severity:  normal                   |  Resolution:
 Keywords:  good-first-bug has-      |     Focuses:  javascript,
  patch                              |  performance
-------------------------------------+-------------------------------------

Comment (by spenserhale):

 Regarding src/js/_enqueues/wp/media/models.js

 The code was https://core.trac.wordpress.org/ticket/22552.

 The ticket said putting no-cache headers would solve the problem
 (https://core.trac.wordpress.org/ticket/22552#comment:25)

 This JS fix for iOS 6 Safari should no longer be needed since WordPress >=
 6.3 always sets no-cache headers, specifically in r55968 to fix
 #21938/#57627.

 I removed the hook, tested the latest IOS Safari, and did not reproduce
 the bug, so it appears safe to delete.

 Commit: https://github.com/WordPress/wordpress-
 develop/pull/5056/commits/8699faabbdaba20da3a737a3b1b13ce9689d7286

 Commit:

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


More information about the wp-trac mailing list