Skip to:
Content

BuddyPress.org

Opened 3 years ago

Closed 3 years ago

#9055 closed defect (bug) (worksforme)

BuddyPress state is not set during ajax call request

Reported by: raviousprime Owned by:
Priority: normal Milestone:
Component: Core Version: 12.0.0
Severity: normal 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
3 years ago

  • Milestone Awaiting Review
  • Resolutionworksforme
  • Status newclosed

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.