CiviCRM front end pages broken on WP Latest (master)
WordPress just committed bug fixes redirect_canonical()
in their master branch. The history is as follows:
Original redirect_canonical issues and patches :
2020 redirect_canonical issues :
2020 redirect_canonical svn patches:
2020 redirect_canonical Git patches:
These WP changes are correct, the root of the issue is that CiviCRM used page=CiviCRM
was used on the front end. It should only have been used on the back end. We've gotten away with this for 8 years, it's now time to fix.
The issue is that canonical_redirect()
now properly strips page=CiviCRM
from front end pages.
https://wplatest.tadpole.cc is an example site running master of both WP and CiviCRM. CiviCRM pages built with shortcode pages load, but if you take action - try and contribute, submit a profile, click on a link to register on an event info page - 404.
Pages that are linbked to directly - cleanurls or ugly urls, 404.
We need to remove page=CiviCRM
from the front end pages.
We need to do this before WP updates and we need to backport to ESR as this will break all WP CiviCRM sites.
There is no way understate that if we do dont fix ALL WP Sites will break on update. And if WP does this as aminor release that gets pushed out via auto-update