[buddypress-trac] [BuddyPress Trac] #7073: Move cache setting in class-bp-xprofile-field::get_instance() under check for if query was successful

buddypress-trac noreply at wordpress.org
Thu May 19 02:51:46 UTC 2016


#7073: Move cache setting in class-bp-xprofile-field::get_instance() under check
for if query was successful
--------------------------+---------------------------
 Reporter:  mmcachran     |       Owner:  boonebgorges
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:  2.6
Component:  API           |     Version:
 Severity:  normal        |  Resolution:  fixed
 Keywords:                |
--------------------------+---------------------------
Changes (by boonebgorges):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"10778"]:
 {{{
 #!CommitTicketReference repository="" revision="10778"
 XProfile: Only cache field object when query is successful.

 Previously, a PHP notice was being thrown when a bad `$field_id` was
 passed
 to `BP_XProfile_Field::get_instance()`.

 Props mmcachran.
 Fixes #7073.
 }}}

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


More information about the buddypress-trac mailing list