﻿id,summary,reporter,owner,description,type,status,priority,milestone,component,version,severity,resolution,keywords,cc
10446,Rewrite rules are not flushed when a New taxonomy is created,sirzooro,,"The code:
{{{
class TestPlugin {
	function TestPlugin() {
		add_action( 'init', array( &$this, 'init' ) );
	}

	function init() {
		register_taxonomy( 'mytax', 'post', array('label' => 'My Tax', 
			'query_var' => false, 'rewrite' => true  ) );
	}
}

$wp_test_plugin = new TestPlugin();
}}}
This plugin registers new taxonomy. It appears in Menu and on Edit Post page. Assigned values are also displayed by `the_taxonomies()`. One thing which does not work are permalinks. WP generates URLs like `http://wordpress.local/mytax/test/`, but they don't work - error 404. What's more, it looks that rewriting rules are registered correctly. I tried to call `$wp_rewrite->rewrite_rules()` just after registering taxonomy, and new rules are in place as expected:
{{{
  'mytax/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$' => string 'index.php?taxonomy=mytax&term=$1&feed=$2' (length=40)
  'mytax/([^/]+)/(feed|rdf|rss|rss2|atom)/?$' => string 'index.php?taxonomy=mytax&term=$1&feed=$2' (length=40)
  'mytax/([^/]+)/page/?([0-9]{1,})/?$' => string 'index.php?taxonomy=mytax&term=$1&paged=$2' (length=41)
  'mytax/([^/]+)/?$' => string 'index.php?taxonomy=mytax&term=$1' (length=32)
}}}",defect (bug),closed,normal,,Taxonomy,2.8.1,normal,wontfix,needs-patch,
