[buddypress-trac] [BuddyPress] #5052: Ajax on group extension page on BP-default child theme returns HTML of referer page instead of data

buddypress-trac noreply at wordpress.org
Tue Jul 9 13:20:08 UTC 2013


#5052: Ajax on group extension page on BP-default child theme returns HTML of
referer page instead of data
--------------------------+------------------------------
 Reporter:  matom         |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Groups        |     Version:  1.8-beta
 Severity:  normal        |  Resolution:
 Keywords:                |
--------------------------+------------------------------

Comment (by boonebgorges):

 In [changeset:"7251"]:
 {{{
 #!CommitTicketReference repository="" revision="7251"
 In BP_Group_Extension::call_edit_screen_save(), don't save if DOING_AJAX

 Previously, the settings save routine was running whenever the POST global
 was
 populated. This meant running when handling an AJAX request sent via POST.
 But
 the latter is incorrect behavior, since it disallows the use of AJAX on
 the
 edit screen for anything other than saving the form. As a result, all AJAX
 requests sent via POST on group edit screens were resulting in a failed
 nonce
 check.

 Plugins that wish to save group edit settings via AJAX should implement
 their
 own nonce checks.

 See #5052
 }}}

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/5052#comment:2>
BuddyPress <http://buddypress.org/>
BuddyPress


More information about the buddypress-trac mailing list