cubetech Accordion uses
flush_rewrite_rulesto save permalink rules, and attaches the function to the
initaction, which causes the expensive ‘flush_rewrite_rules’ function to run on every page load. Additionally, it means that any content types that are defined after cubetech Accordion is loaded will have their permalink formats wiped out of memory prior to page rendering, returning a 404 or an incorrect document (depending on whether there was a fuzzy match elsewhere.)
Fix: move flush_rewrite_rules() into a one-time action, run on installation, per function documentation: http://codex.wordpress.org/Function_Reference/flush_rewrite_rules
- The topic ‘Compatibility issue with custom post types’ is closed to new replies.