[buddypress-trac] [BuddyPress Trac] #8789: bp_get_the_profile_field_ids should check that groups exist

buddypress-trac noreply at wordpress.org
Thu Jul 27 10:46:11 UTC 2023


#8789: bp_get_the_profile_field_ids should check that groups exist
--------------------------------------+---------------------
 Reporter:  shawfactor                |       Owner:  imath
     Type:  defect (bug)              |      Status:  closed
 Priority:  normal                    |   Milestone:  12.0.0
Component:  Extended Profile          |     Version:
 Severity:  normal                    |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests  |
--------------------------------------+---------------------
Changes (by imath):

 * owner:  (none) => imath
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"13528" 13528]:
 {{{
 #!CommitTicketReference repository="" revision="13528"
 Prevent potential errors in `bp_get_the_profile_field_ids()`

 In case this function is used inside an xProfile group loop having no
 attached profile fields, instead of generating a notice error, let's
 simply return an empty string.

 Props shawfactor

 Fixes #8789
 Closes https://github.com/buddypress/buddypress/pull/140
 }}}

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


More information about the buddypress-trac mailing list