Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

block_categories is deprecated use block_categories_all #195

Open
bobbingwide opened this issue Nov 14, 2021 · 0 comments
Open

block_categories is deprecated use block_categories_all #195

bobbingwide opened this issue Nov 14, 2021 · 0 comments

Comments

@bobbingwide
Copy link

When invoking the block editor with Caxton v1.27.0 the following message appears twice.

Deprecated: block_categories is deprecated since version 5.8.0! Use block_categories_all instead.

This is due to the block_categories filter being used in caxton-main.php.
In the Caxton::_admin() method line 85 is

add_action( 'block_categories', array( $this->admin, 'block_categories' ), 5 );

Changing this to

add_action( 'block_categories_all', array( $this->admin, 'block_categories' ), 5 );

prevents the deprecated messages from appearing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant