WordPress.org

Make WordPress Core

Changeset 30177


Ignore:
Timestamp:
11/02/2014 02:23:28 AM (7 years ago)
Author:
jeremyfelt
Message:

Use common core syntax for checking DOING_AJAX

Our current check for a non truthy DOING_AJAX is ! DOING_AJAX.

props TobiasBg
Fixes #29891

File:
1 edited

Legend:

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

    r30156 r30177  
    3636        $file['error'] = __( 'You have used your space quota. Please delete files before uploading.' );
    3737    }
    38     if ( $file['error'] != '0' && ! isset( $_POST['html-upload'] ) && ( ! defined( 'DOING_AJAX' ) || DOING_AJAX != true ) ) {
     38    if ( $file['error'] != '0' && ! isset( $_POST['html-upload'] ) && ( ! defined( 'DOING_AJAX' ) || ! DOING_AJAX ) ) {
    3939        wp_die( $file['error'] . ' <a href="javascript:history.go(-1)">' . __( 'Back' ) . '</a>' );
    4040    }
Note: See TracChangeset for help on using the changeset viewer.