Make WordPress Core


Ignore:
Timestamp:
07/06/2009 04:55:07 PM (15 years ago)
Author:
ryan
Message:

change wp_ajax_nopriv in admin-ajax.php to support GET as well as POST. Props dd32. fixes #10345

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/admin-ajax.php

    r11676 r11694  
    3838    }
    3939
    40     if ( !empty( $_POST['action']) )
    41         do_action( 'wp_ajax_nopriv_' . $_POST['action'] );
     40    if ( !empty( $_REQUEST['action']) )
     41        do_action( 'wp_ajax_nopriv_' . $_REQUEST['action'] );
    4242
    4343    die('-1');
Note: See TracChangeset for help on using the changeset viewer.