trustedlogin / trustedlogin-connector

0 stars 2 forks source link

Fix potential error when creating anti-directory-browsing file #182

Closed zackkatz closed 3 months ago

zackkatz commented 3 months ago

$wp_filesystem->put_contents() doesn't create the file; it only writes to it.

[2024-08-06 17:30:24] [error] 2 fopen(/[path]/wp-content/uploads/trustedlogin-logs/index.html): Failed to open stream: No such file or directory /[path]/wp-admin/includes/class-wp-filesystem-direct.php:66