[buddypress-trac] [BuddyPress Trac] #8152: BuddyPress Blocks category may cause an error

buddypress-trac noreply at wordpress.org
Fri Nov 1 04:18:26 UTC 2019


#8152: BuddyPress Blocks category may cause an error
----------------------------+-----------------------
 Reporter:  imath           |       Owner:  imath
     Type:  defect (bug)    |      Status:  assigned
 Priority:  normal          |   Milestone:  5.1.0
Component:  Administration  |     Version:  5.0.0
 Severity:  normal          |  Resolution:
 Keywords:                  |
----------------------------+-----------------------

Comment (by imath):

 In [changeset:"12490" 12490]:
 {{{
 #!CommitTicketReference repository="" revision="12490"
 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.

 See #8152 (Trunk)
 }}}

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


More information about the buddypress-trac mailing list