Skip to content

block_categories is deprecated use block_categories_all #195

@bobbingwide

Description

@bobbingwide

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions