WordPress.org

Make WordPress Core

Ticket #25669: 25669.3.patch

File 25669.3.patch, 582 bytes (added by Mte90, 3 years ago)

renamed the function and filter as wp_is_ajax

  • wp-includes/functions.php

     
    51665166        // Strip timezone information
    51675167        return preg_replace( '/(?:Z|[+-]\d{2}(?::\d{2})?)$/', '', $formatted );
    51685168}
     5169
     5170/**
     5171 * Determine if the actual request is an AJAX request
     5172 *
     5173 * @return bool That request is an ajax request?
     5174 */
     5175function wp_is_ajax() {
     5176        return apply_filters( 'wp_is_ajax', defined( 'DOING_AJAX' ) && DOING_AJAX );
     5177}
     5178 No newline at end of file