[buddypress-trac] [BuddyPress Trac] #9290: ERROR THROWN "NEW TOP 10!"
buddypress-trac
noreply at wordpress.org
Fri Dec 26 19:02:26 UTC 2025
#9290: ERROR THROWN "NEW TOP 10!"
-------------------------------------+--------------------------
Reporter: potcus | Owner: espellcaste
Type: enhancement | Status: closed
Priority: normal | Milestone: 14.5.0
Component: Extended Profile | Version:
Severity: normal | Resolution: fixed
Keywords: has-patch needs-testing |
-------------------------------------+--------------------------
Changes (by espellcaste):
* owner: (none) => espellcaste
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"14171" 14171]:
{{{
#!CommitTicketReference repository="" revision="14171"
Avoid an error attempting to convert a `WP_Error` object to a `string`
when
checking for profile data existence.
While checking if a profile data exist, let us improve our error handling
to avoid a PHP error trying to convert a `WP_Error` object to a `string`.
The reason why we might get a `WP_Error` object is varied, but it implies
the data does not exist, and we should fail gracefully rather than throw
an error.
Props rollybueno and potcus.
Closes https://github.com/buddypress/buddypress/pull/412/
Fixes #9290 (trunk)
}}}
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/9290#comment:5>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list