phpsword / sword-bundle

Modern WordPress development with Symfony
https://getsword.com
MIT License
125 stars 4 forks source link

Change script filename to the wp entrypoint #37

Closed williarin closed 9 months ago

williarin commented 9 months ago

This fixes a bug where some plugins like Woocommerce ^7.8 check $_SERVER['SCRIPT_FILENAME'] for permissions, which led to redirecting ajax requests to the homepage for logged out users, as this variable initially pointed to Symfony's entrypoint /public/index.php.