inboundnow / retired-landing-pages

Create landing pages for your WordPress site. Monitor and improve conversion rates, run A/B split tests, customize your own templates and more.
http://www.inboundnow.com/landing-pages/
GNU General Public License v2.0
4 stars 2 forks source link

Add JavaScript powered way to flush permalinks #170

Closed DavidWells closed 9 years ago

DavidWells commented 9 years ago

The flush permalink function doesn't always work.

Instead we could force the permalink flush by using a wp option 'has_flushed_permalink' and if the value is not set to true, we use javascript to load an iframe that loads the permalink options page in a hidden frame (inside admin of course)

This will ensure that newly installed landing page with not encounter the 404 error that surfaces because permalinks aren't always flushed properly

DavidWells commented 9 years ago

See #172 for code fix and question