Closed Dathix closed 9 months ago
PR is useful, but should we can check conditions for only WordPress 5.8 up? like so
global $wp_version; if ( version_compare ( $wp_version, '5.8', '>=' ) ) { add_filter( 'block_categories_all', array( $this, 'add_block_category' ), 10, 2 ); } else { add_filter( 'block_categories', array( $this, 'add_block_category' ), 10, 2 ); }
Commited directly on the dev branch, thank you for your pull request. Will close it
PR is useful, but should we can check conditions for only WordPress 5.8 up? like so