Skip to content

Remove obsolete doc-link TODO from RestrictedHooks - #898

Merged
GaryJones merged 1 commit into
developfrom
GaryJones/235-remove-obsolete-todo
Aug 18, 2026
Merged

Remove obsolete doc-link TODO from RestrictedHooks#898
GaryJones merged 1 commit into
developfrom
GaryJones/235-remove-obsolete-todo

Conversation

@GaryJones

Copy link
Copy Markdown
Contributor

Summary

The upload_mimes group in RestrictedHooksSniff carried a // TODO asking for a VIP documentation link to be added to its warning, tracked in #235. That issue has since been closed without adding a link: docs.wpvip.com documents general topics rather than individual sniffs, and no page covers safely customising upload_mimes or the risk of allowing insecure upload types, so there was nothing suitable to point at.

Left in place, the comment references a closed, decided-against issue and would only prompt someone to repeat the same investigation. The warning itself ("Please ensure that the mimes being filtered do not include insecure types…") is self-explanatory, so this simply drops the comment. Comment-only change, no behaviour difference.

Follows on from the #235 triage.

The `upload_mimes` group carried a TODO asking for a VIP documentation link
to be added to its warning, tracked in #235. That issue has now been closed
without adding a link: docs.wpvip.com documents general topics rather than
individual sniffs, and no page covers safely customising `upload_mimes` or
the risk of allowing insecure upload types, so there is nothing suitable to
link.

Left in place, the TODO points at a closed, decided-against issue and would
only invite the same investigation to be repeated. The warning is clear on
its own, so drop the comment.
@GaryJones
GaryJones requested a review from a team as a code owner August 18, 2026 14:29
@GaryJones
GaryJones merged commit bdd2160 into develop Aug 18, 2026
26 checks passed
@GaryJones
GaryJones deleted the GaryJones/235-remove-obsolete-todo branch August 18, 2026 14:47
@GaryJones GaryJones added this to the 3.x milestone Aug 18, 2026
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.

1 participant