[buddypress-trac] [BuddyPress] #3985: Race condition processing Ajax requests.

buddypress-trac at lists.automattic.com buddypress-trac at lists.automattic.com
Wed Feb 8 16:49:21 UTC 2012


#3985: Race condition processing Ajax requests.
-------------------------------------------+------------------------------
 Reporter:  gary_mazz                      |       Owner:
     Type:  defect (bug)                   |      Status:  new
 Priority:  normal                         |   Milestone:  Awaiting Review
Component:  Core                           |     Version:  1.5.3
 Severity:  major                          |  Resolution:
 Keywords:  needs-patch reporter-feedback  |
-------------------------------------------+------------------------------

Comment (by r-a-y):

 gary_mazz makes a good point.

 The bp_core_add_ajax_hook() should probably run after 'bp_init' (later
 than 10) so all plugins can initialize their code before the ajax hook is
 run.

 The same problem happened when I was working on the core BP embed code,
 which is why the embed code is hooked at priority 9:
 http://buddypress.trac.wordpress.org/browser/tags/1.5.3.1/bp-core/bp-core-
 functions.php#L938

 So currently, if you initialize your plugin on 'bp_init' you should do so
 at a priority lower than 10 and AJAX will run properly.

-- 
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/3985#comment:2>
BuddyPress <http://buddypress.org/>
BuddyPress


More information about the buddypress-trac mailing list