Caution in bp Ajax calls
If you are doing any work in a bp ajax call ya gotta be careful. There doesn’t seem to be a ‘current blog’ context. I ran into this by calling get_option() in a function that is triggered by a bp action. The action is triggered both by normal bp behavior in the member theme and also by an ajax call in the group directory. I’m guessing that in the ajax call the get_option() call returns NULL because it relies on the global $blog_id to determine what blog we are on.
- The topic ‘Caution in bp Ajax calls’ is closed to new replies.