Skip to content

Conversation

@pkevan
Copy link
Contributor

@pkevan pkevan commented Mar 7, 2024

Avoids fatal errors when these files are accessed directly e.g.

ja.wordpress.org 198.143.164.10 - [07/Mar/2024:09:04:13 +0000] "GET /cba94a84/wp-content/mu-plugins/pub-sync/blocks/time/ HTTP/1.1"

@StevenDufresne
Copy link
Contributor

@pkevan Need a review for this?

@pkevan
Copy link
Contributor Author

pkevan commented May 10, 2024

sure - can't remember doing this!

@StevenDufresne StevenDufresne requested review from dd32 and ryelle May 12, 2024 21:50
@StevenDufresne
Copy link
Contributor

Looks good to me, but added @dd32 and @ryelle seeing that they have more WP experience than myself :)

@dd32
Copy link
Member

dd32 commented May 13, 2024

Originally I suggested renaming these, or disabling direct PHP access at the server level, but that ran into issues (mostly, that the allow list is outdated).

I have no concerns about merging this, other than me not feeling it's warranted to have a check at the top of every .php file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants