WordPress.org

Make WordPress Core

Ticket #25669: 25669.2.patch

File 25669.2.patch, 731 bytes (added by sebastian.pisula, 4 years ago)
  • wp-includes/default-constants.php

    IDEA additional info:
    Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
    <+>UTF-8
     
    8787        if ( !defined('SHORTINIT') )
    8888                define('SHORTINIT', false);
    8989
     90        define( 'WP_IS_AJAX', ( ! empty( $_SERVER['HTTP_X_REQUESTED_WITH'] ) && strtolower( $_SERVER['HTTP_X_REQUESTED_WITH'] ) == 'xmlhttprequest' ) );
     91
    9092        // Constants for features added to WP that should short-circuit their plugin implementations
    9193        define( 'WP_FEATURE_BETTER_PASSWORDS', true );
    9294