[wp-trac] [WordPress Trac] #55078: Remove hardcoded check for edit-tags.php from lib/ajax-response.js

WordPress Trac noreply at wordpress.org
Fri Feb 4 13:02:09 UTC 2022


#55078: Remove hardcoded check for edit-tags.php from lib/ajax-response.js
----------------------------+-----------------------------
 Reporter:  SergeyBiryukov  |      Owner:  (none)
     Type:  defect (bug)    |     Status:  new
 Priority:  normal          |  Milestone:  Awaiting Review
Component:  Administration  |    Version:
 Severity:  normal          |   Keywords:
  Focuses:  javascript      |
----------------------------+-----------------------------
 Background: #42937, #54955.

 As a result of [52170] and [52672], `_enqueues/lib/ajax-response.js` has a
 [source:trunk/src/js/_enqueues/lib/ajax-
 response.js?rev=52672&marks=30-32#L20 hardcoded check for edit-tags.php],
 which seems unnecessarily specific.

 We should find a better way to pass the success message in an Ajax
 response, that could also be reused in other places. Maybe passing it as
 part of the `supplemental` data would work?

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/55078>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list