Check for $wp_rewrite in register_taxonomy and register_post_type
|Reported by:||nacin||Owned by:|
I'm noticing some people report errors like this:
Fatal error: Call to a member function add_rewrite_tag() on a non-object in /wp-includes/taxonomy.php on line 289
This plugin didn't work right in 2.9, but in 2.9 we checked $wp_rewrite for !empty() in register_taxonomy before calling add_rewrite_tag().
I suggest we add back those sanity checks.
Change History (6)
Note: See TracTickets for help on using tickets.