Skip to content

Conversation

@davidperezgar
Copy link
Member

@davidperezgar davidperezgar commented Dec 17, 2025

This check is based on the code that @frantorres created for the Internal Scanner.
There are many cases based on past experience.
Fixes #603

@github-actions
Copy link

github-actions bot commented Dec 17, 2025

The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the props-bot label.

If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.

Co-authored-by: davidperezgar <davidperez@git.wordpress.org>
Co-authored-by: ernilambar <nilambar@git.wordpress.org>
Co-authored-by: swissspidy <swissspidy@git.wordpress.org>

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

@davidperezgar davidperezgar added this to the 1.8.0 milestone Dec 20, 2025
* @param string $plugin_path The plugin path.
* @return bool True if the file is uninstall.php, false otherwise.
*/
private function is_uninstall_file( $file, $plugin_path ) {
Copy link
Member

@ernilambar ernilambar Dec 24, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Logic for checking uninstall file seems to complex. In "Plugin_Uninstall_Check.php" it is pretty simple. What do you think?

*
* Every check must have at least one category.
*
* @since n.e.x.t
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* @since n.e.x.t
* @since 1.8.0

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.

Check: Allowing Direct File Access to plugin files

3 participants