Make WordPress Core

Ticket #41269: 41269.1.patch

File 41269.1.patch, 511 bytes (added by ayeshrajans, 7 years ago)
  • wp-admin/admin-ajax.php

    diff --git wp-admin/admin-ajax.php wp-admin/admin-ajax.php
    index 3213d55028..f5b1c50f9a 100644
     
    2626
    2727// Require an action parameter
    2828if ( empty( $_REQUEST['action'] ) )
    29         die( '0' );
     29        wp_die( '0', 400 );
    3030
    3131/** Load WordPress Administration APIs */
    3232require_once( ABSPATH . 'wp-admin/includes/admin.php' );
     
    101101        do_action( 'wp_ajax_nopriv_' . $_REQUEST['action'] );
    102102}
    103103// Default status
    104 die( '0' );
     104wp_die( '0', 400 );