Make WordPress Core

Ticket #20699: 20699.diff

File 20699.diff, 691 bytes (added by sivel, 13 years ago)
  • wp-admin/admin-ajax.php

     
    6363add_action( 'wp_ajax_nopriv_autosave', 'wp_ajax_nopriv_autosave', 1 );
    6464
    6565if ( is_user_logged_in() )
    66         do_action( 'wp_ajax_' . $_REQUEST['action'], $_REQUEST['action'] ); // Authenticated actions
     66        do_action( 'wp_ajax_' . $_REQUEST['action'] ); // Authenticated actions
    6767else
    68         do_action( 'wp_ajax_nopriv_' . $_REQUEST['action'], $_REQUEST['action'] ); // Non-admin actions
     68        do_action( 'wp_ajax_nopriv_' . $_REQUEST['action'] ); // Non-admin actions
    6969
    7070// Default status
    7171die( '0' );