[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 20:06:13 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 dev-reviewed                      |
-------------------------------------------------+-------------------------
Changes (by joedolson):

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


Comment:

 In [changeset:"57024" 57024]:
 {{{
 #!CommitTicketReference repository="" revision="57024"
 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.
 Reviewed by jorbin.
 Merges [57022] to the 6.4 branch.
 Fixes #59689.
 }}}

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


More information about the wp-trac mailing list