Skip to content

[New Sniff] Check for wp-load.php #44

@justintadlock

Description

@justintadlock

Otto brought this up in Slack (https://wordpress.slack.com/archives/themereview/p1470952005002504), but it's long been one of those things that we wouldn't allow.

Basically, themes should not be attempting to find and load the wp-load.php file. I can't think for a legit use case for themes to do this.

This is most often an issue when themes are attempting to create a dynamic stylesheet instead of utilizing the wp_add_inline_style() function.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions