[wp-trac] [WordPress Trac] #25669: Introduce helper function for AJAX checks

WordPress Trac noreply at wordpress.org
Thu Aug 25 21:53:24 UTC 2016


#25669: Introduce helper function for AJAX checks
------------------------------------+-----------------------------
 Reporter:  toscho                  |       Owner:  wonderboymusic
     Type:  enhancement             |      Status:  closed
 Priority:  normal                  |   Milestone:  4.7
Component:  Bootstrap/Load          |     Version:
 Severity:  normal                  |  Resolution:  fixed
 Keywords:  dev-feedback has-patch  |     Focuses:
------------------------------------+-----------------------------

Comment (by swissspidy):

 @jdgrimes Good question. We didn't introduce `wp_doing_ajax()` to
 intentionally wait for how it works out. Even if we did, new tickets
 should be created for each global nonetheless.

 IMHO a ticket should be created for replacing each global. For example, a
 helper function for `XMLRPC_REQUEST` or `REST_REQUEST` might make more
 sense than `IFRAME_REQUEST` because those are used more often and I think
 when we do things right, `IFRAME_REQUEST` will be a gone rather soon.

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


More information about the wp-trac mailing list