ryelle / Foxhound

A text-focused blog theme for WordPress (in React)
https://themes.redradar.net/foxhound
350 stars 39 forks source link

Add compatibility with Customize Posts plugin by disabling forced preview URLs #123

Open westonruter opened 6 years ago

westonruter commented 6 years ago

The Customize Posts plugin allows posts and pages to be updated and created in the Customizer. When it modifies/creates a post or page, it forces the permalinks for these posts to be preview URLs like /?preview=true&page_id=123 since the slugs may be modified in the customized state. These URLs are not recognized by the current router implementation, so this preview URL rewriting needs to be disabled to prevent Customizer navigation from being completely broken when the Customize Posts plugin is active.