Skip to:
Content

BuddyPress.org

Opened 5 months ago

Closed 5 months ago

#9055 closed defect (bug) (worksforme)

BuddyPress state is not set during ajax call request

Reported by: raviousprime's profile raviousprime Owned by:
Milestone: Priority: normal
Severity: normal Version: 12.0.0
Component: Core Keywords:
Cc:

Description

I am a plugin developer and writing about an issue I am facing while adding compatibility with BP 12. The issue I am facing is that during Ajax call requests BuddyPress globals are not set i.e. current component, action etc. Please look at this issue.

Change History (1)

#1 @imath
5 months ago

  • Milestone Awaiting Review deleted
  • Resolution set to worksforme
  • Status changed from new to closed

Hi @raviousprime

Thanks for your feedback. In 12.0.0, you now need to register your Ajax action. See:
https://github.com/buddypress/buddypress/blob/master/docs/developer/execution-contexts/ajax.md

Note: See TracTickets for help on using tickets.