[buddypress-trac] [BuddyPress] #4449: Hooking ajax actions inside of function scope in BP 1.6 causes issues with some themes
buddypress-trac
noreply at wordpress.org
Wed Mar 20 22:36:16 UTC 2013
#4449: Hooking ajax actions inside of function scope in BP 1.6 causes issues with
some themes
--------------------------+------------------
Reporter: boonebgorges | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: 1.8
Component: Theme | Version: 1.6
Severity: normal | Resolution:
Keywords: 2nd-opinion |
--------------------------+------------------
Comment (by r-a-y):
> I'd like to see us build our own theme-side AJAX handler, without the
cruft of using admin-ajax.php, which sets WP_ADMIN and calls 'admin_init'
also.
Did this recently for an upcoming plugin.
However, unlike `bbp_do_ajax()`, I use an external file and not hooked to
`'template_redirect'`.
Here's a gist to look at:
https://gist.github.com/r-a-y/5209075
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/4449#comment:2>
BuddyPress <http://buddypress.org/>
BuddyPress
More information about the buddypress-trac
mailing list