Skip to content

Lack of ABSPATH check #103

Answered by gregsullivan
MarcoCazzaro asked this question in Q&A
Mar 18, 2024 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

Hi Marco—Great to hear from you again!

The simplest explanation here is simply that _tw is based on _s and Varia, and neither of those themes do ABSPATH checks (to my knowledge). It's not the case that all PHP files need this snippet, so this isn't a red flag to me. See here for more details:

WordPress/WordPress-Coding-Standards#1850

I'm open to being told that it's necessary after all, but I think the absolute worst case scenario here is some pollution of logs if someone starts trying to load PHP files directly.

Please let me know what you think!

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@MarcoCazzaro
Comment options

@gregsullivan
Comment options

Answer selected by MarcoCazzaro
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants