pantheon-systems / wordpress-composer-managed

WordPress boilerplate with Composer, easier configuration, and an improved folder structure
https://docs.pantheon.io/guides/wordpress-composer
MIT License
4 stars 4 forks source link

Update WordPress URL handling and cookie settings #137

Closed jazzsequence closed 4 months ago

jazzsequence commented 4 months ago

This pull request includes several changes to improve the handling of URLs in WordPress particularly for multisite.

Included in the update are helper functions to check and strip double-slashes from URLs, namespacing, enforcing strict types, and a version bump for the filters mu-plugin.

Importantly, this PR enforces the /wp prefix to admin and login URLs which prevents an infinite login redirect loop.

The PR also adds a cookie domain fix for multisite logins which is a common issue for subdomain multisite.