editor-blocks icon indicating copy to clipboard operation
editor-blocks copied to clipboard

Deprecated block_categories hook on WP 5.8

Open ko31 opened this issue 2 years ago • 0 comments

With using this plugin on WordPress 5.8+, I get the following message:

PHP Deprecated: block_categories is <strong>deprecated</strong> since version 5.8.0! Use block_categories_all instead.

Also, it seems to come from the following code. https://github.com/editorblocks/editor-blocks/blob/fcd7dd96b21f69bdf966f0eb69f7b9090469f011/plugin.php#L46

The hook block_categories is already deprecated, so it would be happy to be updated to use both block_categories and block_categories_all for compatibility. https://developer.wordpress.org/reference/hooks/block_categories/

ko31 avatar Nov 14 '22 02:11 ko31