[buddypress-trac] [BuddyPress Trac] #8152: BuddyPress Blocks category may cause an error
buddypress-trac
noreply at wordpress.org
Fri Nov 1 04:20:27 UTC 2019
#8152: BuddyPress Blocks category may cause an error
----------------------------+---------------------
Reporter: imath | Owner: imath
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 5.1.0
Component: Administration | Version: 5.0.0
Severity: normal | Resolution: fixed
Keywords: |
----------------------------+---------------------
Changes (by imath):
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"12491" 12491]:
{{{
#!CommitTicketReference repository="" revision="12491"
Edit the type of the `bp_block_category()` function's second argument
Although this filter should always get a `WP_Post` as a second argument,
it appears there is a risk this function is used directly passing a null
value as the second argument. See this
[https://buddypress.org/support/topic/since-update-to-5-0-buddypress-
freezes-features-of-wordpress-backend/ support topic].
To prevent this risk of notice error, we are making sure the second
argument is a `WP_Post` in a different way.
Fixes #8152 (Branch 5.0)
}}}
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/8152#comment:2>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list