Skip to content

get_404_template() triggers WordPressVIPMinimum.Files.IncludingFile.NotAbsolutePath #740

@alexmerz

Description

@alexmerz

Bug Description

get_404_template() is documented to return "Full path to 404 template file."
https://developer.wordpress.org/reference/functions/get_404_template/

VIP Code Analysis Bot still throws a warning
⚠️ Warning( severity 3 ): Absolute include path must be used. Use get_template_directory(), get_stylesheet_directory() or plugin_dir_path() (WordPressVIPMinimum.Files.IncludingFile.NotAbsolutePath).

Minimal Code Snippet

include( get_404_template() );

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions