79584812

Date: 2025-04-21 14:40:59
Score: 1.5
Natty:
Report link

The issue was I had wrapped the add_filter calls inside an is_admin() check – which does not work with REST API. I suppose the check wasn't essential anyway, since upload attempts from unauthorized users should be rejected regardless of mime-type.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Johan Martin Aarstein