- fixed WP version number to major release;

This commit is contained in:
Nikita Sinelnikov
2021-07-20 15:00:44 +03:00
parent 06ea1411d2
commit ca24cff781
+1 -1
View File
@@ -84,7 +84,7 @@ if ( ! class_exists( 'um\admin\core\Admin_Enqueue' ) ) {
add_action( 'load-post.php', array( &$this, 'enqueue_cpt_scripts' ) );
global $wp_version;
if ( version_compare( $wp_version, '5.8-rc.1', '>=' ) ) {
if ( version_compare( $wp_version, '5.8', '>=' ) ) {
add_filter( 'block_categories_all', array( &$this, 'blocks_category' ), 10, 2 );
} else {
add_filter( 'block_categories', array( &$this, 'blocks_category' ), 10, 2 );