[buddypress-trac] [BuddyPress Trac] #8760: PHP 8.1 fatal / PHP <8 notice+warning: Trying to get property 'ancestors' of non-object
buddypress-trac
noreply at wordpress.org
Wed Nov 9 04:36:57 UTC 2022
#8760: PHP 8.1 fatal / PHP <8 notice+warning: Trying to get property 'ancestors'
of non-object
------------------------------+---------------------
Reporter: dd32 | Owner: imath
Type: defect (bug) | Status: closed
Priority: high | Milestone: 10.7.0
Component: Core | Version: 2.2
Severity: normal | Resolution: fixed
Keywords: has-patch commit |
------------------------------+---------------------
Changes (by imath):
* owner: (none) => imath
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"13362" 13362]:
{{{
#!CommitTicketReference repository="" revision="13362"
Check a BuddyPress page exists before trying to access its properties
In `bp_core_menu_highlight_parent_page()` when trying to determine if the
displayed page has a BuddyPress page ancestor, we need to make sure the
potential BuddyPress page still exists to avoid a PHP notice/error.
Props dd32
Fixes #8760 (branch 10.0)
}}}
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/8760#comment:5>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list