Skip to content

Move WP_Navigation_Block_Renderer class to its own file. #59239

@swissspidy

Description

@swissspidy

Core requires class definitions to be in their own file.

The WP_Navigation_Block_Renderer class should be moved out of packages/block-library/src/navigation/index.php to its own file, packages/block-library/src/navigation/class-wp-navigation-block-renderer.php

Besides: why is the class not prefixed anyway? I thought Gutenberg fixed class and function prefixes during the build process.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions