[buddypress-trac] [BuddyPress] #2599: bp_core_add_ajax_url_js() generating wrong ajaxurl value

buddypress-trac at lists.automattic.com buddypress-trac at lists.automattic.com
Thu Oct 28 17:59:42 UTC 2010


#2599: bp_core_add_ajax_url_js() generating wrong ajaxurl value
---------------------+------------------------------------------------------
 Reporter:  Kawauso  |       Owner:                   
     Type:  defect   |      Status:  new              
 Priority:  normal   |   Milestone:  1.3              
Component:  Core     |    Keywords:  reporter-feedback
---------------------+------------------------------------------------------

Comment(by Kawauso):

 Just found `bp_core_add_ajax_hook()`, so I'm much less perplexed about
 things.

 The variable name is suggested in the WordPress Codex article on
 [http://codex.wordpress.org/AJAX_in_Plugins#Ajax_on_the_Viewer-Facing_Side
 AJAX in Plugins]. I'm not specifically aware of any plugins besides my own
 using it, but it does behave quite differently to the native WP hook (no
 `wp_ajax_nopriv` / `wp_ajax` fires on all requests, `DOING_AJAX` not
 defined and `WP_ADMIN` is false), which I suspect is what threw my
 plugins.

-- 
Ticket URL: <https://trac.buddypress.org/ticket/2599#comment:3>
BuddyPress <http://buddypress.org/>
BuddyPress


More information about the buddypress-trac mailing list