mozilla/mozhacks — pull request #40 by craigcook (2014-09-05 22:06:04+00:00)
Title: Fix bug 1063213 - only flush rewrite rules on theme activation

Hopefully this solves it though some more thorough testing in a more production-like environment would be very wise.

* Don't flush rules on init (too costly)
* Don't do a hard flush (too destructive)

See http://codex.wordpress.org/Rewrite_API/flush_rules