WordPress.org

Make WordPress Core


Ignore:
Timestamp:
08/23/2016 02:32:18 PM (5 years ago)
Author:
wonderboymusic
Message:

AJAX: add a new function, wp_doing_ajax(), which can replace... (wait for it...) DOING_AJAX checks via the constant.

Props Mte90, sebastian.pisula, swissspidy.
Fixes #25669.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/option.php

    r38307 r38334  
    787787function wp_user_settings() {
    788788
    789     if ( ! is_admin() || defined( 'DOING_AJAX' ) ) {
     789    if ( ! is_admin() || wp_doing_ajax() ) {
    790790        return;
    791791    }
Note: See TracChangeset for help on using the changeset viewer.