[wp-trac] [WordPress Trac] #52046: The Distraction Free Writing setting on the old Edit Post screen may be reset after page reload

WordPress Trac noreply at wordpress.org
Thu Mar 4 18:55:18 UTC 2021


#52046: The Distraction Free Writing setting on the old Edit Post screen may be
reset after page reload
--------------------------+-----------------------------
 Reporter:  azaozz        |       Owner:  SergeyBiryukov
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:  5.6.1
Component:  Editor        |     Version:  5.6
 Severity:  normal        |  Resolution:  fixed
 Keywords:  fixed-major   |     Focuses:
--------------------------+-----------------------------

Comment (by herrvigg):

 I'm recopying here what I wrote in other tickets. Not sure but this could
 explain the problem, asynchronous firing with jQuery3:
 https://github.com/jquery/jquery/issues/3194

 With jQuery3, `ready` handlers fire asynchronously and may be fired after
 `load`... there's no guarantee so that can explain some "random"
 behaviors.

 Long story short, the `load` trigger should never be set in the `ready`
 callback but outside. Ideally it should even be avoided when using
 `ready`.

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


More information about the wp-trac mailing list