[wp-trac] [WordPress Trac] #53488: The `action` passed to jQuery.ajax is possibly `null`

WordPress Trac noreply at wordpress.org
Fri Jun 25 13:22:00 UTC 2021


#53488: The `action` passed to jQuery.ajax is possibly `null`
--------------------------+-------------------------
 Reporter:  ixkaito       |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  5.8
Component:  Widgets       |     Version:
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |     Focuses:  javascript
--------------------------+-------------------------

Comment (by zieladam):

 It seems like `action` is explicitly set to `null` here:

 https://github.com/WordPress/wordpress-
 develop/blob/master/src/js/_enqueues/wp/customize/selective-
 refresh.js#L773-L776

 That code hasn't changed for last 5 years so it sounds like we're just
 triggering an unhappy path introduced in this commit:

 https://github.com/WordPress/wordpress-
 develop/commit/39ecd7846d24f5dd46833b68c6cb90dcdc070398

 Given that context, Kai's fix looks good to me.

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


More information about the wp-trac mailing list