PHP Deprecated : Hook block_categories
-
With the plugin activated, the following messages are showing up in my debug log.
PHP Deprecated: Hook block_categories is deprecated since version 5.8.0! Use block_categories_all instead. in /path/to/wp-includes/functions.php on line 5754
PHP Deprecated: Hook block_categories is deprecated since version 5.8.0! Use block_categories_all instead. in /path/to/wp-includes/functions.php on line 5754Fixed it with this:
/path/to/wp-content/plugins/block-for-font-awesome/block-for-font-awesome.php
line 103
add_filter( 'block_categories', 'getbutterfly_block_categories', 10, 2 );
change to:
if ( version_compare( get_bloginfo( 'version' ), '5.8', '>=' ) ) { add_filter( 'block_categories_all', 'getbutterfly_block_categories', 10, 2 ); } else { add_filter( 'block_categories', 'getbutterfly_block_categories', 10, 2 ); }
Hope to see an update soon ??
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘PHP Deprecated : Hook block_categories’ is closed to new replies.