[buddypress-trac] [BuddyPress Trac] #8465: Anticipate 2 block related filters deprecation in WP 5.8

buddypress-trac noreply at wordpress.org
Sun May 9 16:45:21 UTC 2021


#8465: Anticipate 2 block related filters deprecation in WP 5.8
-----------------------+---------------------
 Reporter:  imath      |       Owner:  imath
     Type:  task       |      Status:  closed
 Priority:  normal     |   Milestone:  8.0.0
Component:  REST API   |     Version:  6.0.0
 Severity:  normal     |  Resolution:  fixed
 Keywords:  has-patch  |
-----------------------+---------------------
Changes (by imath):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"12944" 12944]:
 {{{
 #!CommitTicketReference repository="" revision="12944"
 BP Blocks: anticipate 2 deprecated WP 5.8 Block filters

 In WordPress 5.8, the `block_categories` filter is deprecated in favor of
 the `block_categories_all` one and the `block_editor_settings` filter is
 deprecated in favor of `block_editor_settings_all`. To maintain backward
 compatibility with previous versions of WordPress, we are now checking if
 two functions introduced in WP 5.8 (`get_default_block_categories()` &
 `get_block_editor_settings()`) exists before using the right filters.

 Fixes #8465
 }}}

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


More information about the buddypress-trac mailing list