Skip to:

Opened 9 years ago

Closed 9 years ago

#6417 closed defect (bug) (no action required)

Site-Wide Activity Filter issue with admin_init?

Reported by: svenl77's profile svenl77 Owned by:
Milestone: Priority: normal
Severity: normal Version: 2.2.3
Component: Activity Keywords:



I have recognised a strange issue. I use a function to flush_rewrite_rules. It should only run on the admin_init hook and if is admin.

Everything works fine. But this morning a user ask for support. If he filter the Site-Wide Activity the admin_init hook gets fired and the if is admin check is true.

That's why flush_rewrite_rules runs and creates a 404. I have the strange feeling this is an issue with the BuddyPress Activity ajax.

I hope someone can help me with this and point me to the right direction. I like to fix this.


Change History (1)

#1 @svenl77
9 years ago

  • Keywords dev-feedback needs-patch removed
  • Milestone Awaiting Review deleted
  • Resolution set to invalid
  • Status changed from new to closed

ok I found the solution.

I need to change



 if( !is_admin() || defined( 'DOING_AJAX' ) )

this ticket can be closed ;)

Note: See TracTickets for help on using tickets.