#4464 closed defect (bug) (fixed)
Widget ajax broken for non-logged-in users
| Reported by: | boonebgorges | Owned by: | boonebgorges |
|---|---|---|---|
| Priority: | normal | Milestone: | 1.6.2 |
| Component: | Core | Version: | 1.6 |
| Severity: | minor | Keywords: | |
| Cc: |
Description
Since switching to admin-ajax.php for ajaxurl in BP 1.6, the distinction between wp_ajax_ and wp_ajax_nopriv_ hooks has become relevant. For most BP core AJAX, this is already taken care of: in the Dashboard, the user is always logged in (so you only need wp_ajax_), and on the front end most stuff is taken care of by bp-default's AJAX handlers, which are hooked to _nopriv_ in the appropriate cases. However, the handlers for the Newest | Active | Popular AJAX in the Groups and Members widget was never changed over.
Fix coming up.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
(In [6261]) Fire widget AJAX handlers on wp_ajax_nopriv_ actions, in addition to wp_ajax_
This ensures that the group and member widget AJAX continues to work for
logged-out users when ajaxurl points to admin-ajax.php.
Fixes #4464