#23468 closed defect (bug) (invalid)
No Live Preview after registering taxonomy with 'theme' id
| Reported by: | alexvorn2 | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Taxonomy | Version: | 3.4 |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: |
Description
How to replicate:
1) Add the following code into the functions.php file of the theme:
(twentytwelve)
add_action( 'init', 'create_book_tax' );
function create_book_tax()
{
register_taxonomy(
'theme',
'book',
array(
'label' => __( 'Genre' ),
'rewrite' => array( 'slug' => 'genre' ),
'hierarchical' => true
)
);
}
2) make sure the theme is deactivated
3) click "live preview" of the theme
4) "blank white screen"
Everything works great if we replace theme with other word, example genre
...
I don't see the theme word in the reserved list http://codex.wordpress.org/Function_Reference/register_taxonomy so this is very weird for me.
Change History (3)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Added theme, nonce, customized and customize_messenger_channel to the list.
Don't forget to use a prefix.