[buddypress-trac] [BuddyPress] #4612: Guest users unable to use Ajax functions properly on the Groups Loop
noreply at wordpress.org
noreply at wordpress.org
Thu Oct 18 08:39:37 UTC 2012
#4612: Guest users unable to use Ajax functions properly on the Groups Loop
--------------------------+-----------------------------
Reporter: AntaresMHD | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Core | Version: 1.7
Severity: normal | Keywords: needs-patch
--------------------------+-----------------------------
Guests users can't get past the first page in the groups loop, and the
pagination disappears as soon as they click the arrow or the page number
below (using ?grpage=2&num=20 as a GET request works for some reason,
though).
I solved this bug in a non-elegant way: the problem was the `do_action(
'wp_ajax_nopriv_' . $_REQUEST['action'] );` on the /wp-admin/admin-
ajax.php file, line 68. I commented the line and changed the call to
`do_action( 'wp_ajax_' . $_REQUEST['action'] );`, and it all worked. Not
sure if doing this entails some kind of security hole, but I was desperate
and in need for a fix. If there's a way to create or deactivate this hook
in an elegant way, I'm down for it.
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/4612>
BuddyPress <http://buddypress.org/>
BuddyPress
More information about the buddypress-trac
mailing list