Opened 10 years ago
Closed 10 years ago
#6417 closed defect (bug) (no action required)
Site-Wide Activity Filter issue with admin_init?
Reported by: | svenl77 | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 2.2.3 |
Component: | Activity | Keywords: | |
Cc: |
Description
Hi,
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.
Cheers,
Sven
ok I found the solution.
I need to change
this ticket can be closed ;)