[buddypress-trac] [BuddyPress Trac] #7684: Use bp_is_post_request() instead of hardcoding the POST verification

buddypress-trac noreply at wordpress.org
Thu Feb 15 15:52:41 UTC 2018


#7684: Use bp_is_post_request() instead of hardcoding the POST verification
------------------------------+--------------------------
 Reporter:  espellcaste       |       Owner:  espellcaste
     Type:  enhancement       |      Status:  closed
 Priority:  normal            |   Milestone:  3.0
Component:  Core              |     Version:
 Severity:  normal            |  Resolution:  fixed
 Keywords:  has-patch commit  |
------------------------------+--------------------------
Changes (by espellcaste):

 * owner:   => espellcaste
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"11858"]:
 {{{
 #!CommitTicketReference repository="" revision="11858"
 Make use of `bp_is_post_request()` instead of hardcoding POST
 verifications directly.

 BuddyPress is not making use of the `bp_is_post_request()` in several ajax
 scenarios to confirm if the post request is indeed a POST request.
 Instead, it is hardcoding the check directly. This change updates those
 places making use of this function.

 Props DjPaul

 Fixes #7684
 }}}

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/7684#comment:4>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list