Skip to:
Content

BuddyPress.org

Opened 7 weeks ago

Closed 4 weeks ago

#8465 closed task (fixed)

Anticipate 2 block related filters deprecation in WP 5.8

Reported by: imath Owned by: imath
Milestone: 8.0.0 Priority: normal
Severity: normal Version: 6.0.0
Component: REST API Keywords: needs-patch
Cc:

Description

WordPress 5.8 is scheduled to July 2021, it's one month later than the date we planned to release 8.0.0.

In WP 5.8, the block_categories & block_editor_settings are deprecated. I suggest to anticipate it using the attached patch.

Attachments (1)

8465.patch (1.6 KB) - added by imath 7 weeks ago.

Download all attachments as: .zip

Change History (4)

@imath
7 weeks ago

#1 @imath
6 weeks ago

  • Resolution set to fixed
  • Status changed from assigned to closed

In 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

#2 @imath
4 weeks ago

  • Keywords needs-patch added; has-patch removed
  • Resolution fixed deleted
  • Status changed from closed to reopened

Ouch!

While running a last round of test after packaging the 8.0.0-beta2, I noticed the block_categories_all filter has not the same argument types than the deprecated one. There's some extra work to do there to make sure the BuddyPress block category will be registered in WP 5.8

#3 @imath
4 weeks ago

  • Resolution set to fixed
  • Status changed from reopened to closed

In 12956:

BP Blocks: make sure the BuddyPress category is available in WP >= 5.8

As blocks are always loaded even if the category is not available, there's no more interest in disabling the BuddyPress category. As a result we deprecated the bp_block_category_post_types filter.

Fixes #8465

Note: See TracTickets for help on using tickets.