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

WordPress Trac noreply at wordpress.org
Thu Aug 25 15:54:35 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 jdgrimes):

 Was any decision made regarding the
 [https://core.trac.wordpress.org/ticket/25669#comment:8 other constants]:

 >The seven remaining ones are a mixture of constants plugins can use and
 constants only core should use, but would be helpful to modify for testing
 purposes.
 >
 >-    DOING_AJAX
 >-    DOING_AUTOSAVE
 >-    IFRAME_REQUEST
 >-    WP_IMPORTING
 >-    WP_INSTALLING
 >-    XMLRPC_REQUEST
 >-    DOING_CRON

 `wp_installing()` was introduced recently, but the others might be useful.
 Are we intentionally waiting to see how `wp_doing_ajax()` works out, or
 should somebody open up new tickets for any of these others?

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


More information about the wp-trac mailing list