1
0
Fork 0
mirror of https://github.com/buddypress/buddypress.git synced 2026-07-23 21:06:56 +08:00
buddypress/tests/phpunit/testcases/xprofile
Mathieu Viet 1324819e97 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



git-svn-id: https://buddypress.svn.wordpress.org/trunk@13528 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
2023-07-27 10:46:04 +00:00
..
BP_XProfile_Field Fully enjoy Yoast’s PHPUnit polyfills 2022-08-13 08:58:51 +00:00
activity.php BP Rewrites: Introduce the bp_members_get_user_url() function 2023-03-07 04:28:08 +00:00
cache.php Activity & Tests: fix typos in inline comments 2020-01-11 13:46:16 +00:00
class-bp-xprofile-field-type-wordpress.php Add the wp-biography xProfile field type's class & unit tests 2021-03-22 19:51:14 +00:00
class-bp-xprofile-field-type.php Fully enjoy Yoast’s PHPUnit polyfills 2022-08-13 08:58:51 +00:00
class-bp-xprofile-field.php XProfile: delete field metadata when a field is deleted 2018-02-07 07:04:13 +00:00
class-bp-xprofile-group.php xProfile: allow the loop to fetch fields from multiple fields group 2022-11-08 06:27:01 +00:00
class-bp-xprofile-profiledata.php Improve PHP 8.2 compatibility 2023-02-10 03:12:09 +00:00
class-bp-xprofile-query.php Fully enjoy Yoast’s PHPUnit polyfills 2022-08-13 08:58:51 +00:00
filters.php Grunt: move phpUnit tests into new, top-level tests folder. 2014-05-04 12:57:55 +00:00
functions.php Fully enjoy Yoast’s PHPUnit polyfills 2022-08-13 08:58:51 +00:00
template.php Prevent potential errors in bp_get_the_profile_field_ids() 2023-07-27 10:46:04 +00:00