[wp-hackers] AJAX in plugins and public pages

Casey Bisson casey.bisson at gmail.com
Sun Feb 22 15:06:46 GMT 2009


http://core.trac.wordpress.org/browser/tags/2.7/wp-admin/admin-ajax.php#L60

On Feb 22, 2009, at 10:02 AM, Heiko Rabe wrote:

> The admin-ajax.php *only*! processes POST ajax calls, you can't  
> request admin ajax content by using GET.
> I would prefere to permit public ajax requests additional to be  
> called by GET requests but the standard usage should be POST as done  
> in admin ajax.
>
> regards
>
> Heiko Rabe
> (www.code-styling.de)
>> On Sun, Feb 22, 2009 at 4:32 PM, Heiko Rabe <heiko.rabe at code-styling.de 
>> >wrote:
>>
>>
>>> It's much easier to implement it in this way, if core would  
>>> support it:
>>>
>>> add_action('wp_public_post_ajax-myfunction',
>>> 'my_public_post_ajax_function');
>>> add_action('wp_public_get_ajax-myfunction',
>>> 'my_public_post_ajax_function');
>>>
>>>
>>
>> If it get's implemented, shouldn't there be a single hook that  
>> handles both
>> GET and POST request like in admin_ajax.php?
>>
>>
>
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers



More information about the wp-hackers mailing list