[wp-trac] [WordPress Trac] #59689: Function listening to AJAX actions to set `Prefers reduced motion` is affecting whole WP Admin in 6.4 RC

WordPress Trac noreply at wordpress.org
Fri Oct 27 19:23:22 UTC 2023


#59689: Function listening to AJAX actions to set `Prefers reduced motion` is
affecting whole WP Admin in 6.4 RC
-------------------------------------------------+-------------------------
 Reporter:  bplv                                 |       Owner:  joedolson
     Type:  defect (bug)                         |      Status:  closed
 Priority:  normal                               |   Milestone:  6.4
Component:  Plugins                              |     Version:  trunk
 Severity:  normal                               |  Resolution:  fixed
 Keywords:  has-patch needs-testing has-         |     Focuses:  javascript
  testing-info commit                            |
-------------------------------------------------+-------------------------
Changes (by joedolson):

 * status:  accepted => closed
 * resolution:   => fixed


Comment:

 In [changeset:"57022" 57022]:
 {{{
 #!CommitTicketReference repository="" revision="57022"
 Plugins: Prevent `ajaxComplete` listener from observing all events.

 Add a conditional to prevent the `prefers-reduced-motion` `ajaxComplete`
 listener from observing events not occurring in the plugin installation
 screen. Improve handling of settings data test.

 The listener observing `ajaxComplete` in [56541] was intercepting all
 `ajaxComplete` events, creating potential for unexpected errors in
 unrelated functions.

 Props bplv, afercia, rudlinkon, hellofromTonya, huzaifaalmesbah,
 joedolson, jorbin.
 Fixes #59689.
 }}}

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


More information about the wp-trac mailing list