[wp-trac] [WordPress Trac] #23468: No Live Preview after registering taxonomy with 'theme' id

WordPress Trac noreply at wordpress.org
Wed Feb 13 11:33:02 UTC 2013


#23468: No Live Preview after registering taxonomy with 'theme' id
-----------------------------+--------------------------
 Reporter:  alexvorn2        |       Type:  defect (bug)
   Status:  new              |   Priority:  normal
Milestone:  Awaiting Review  |  Component:  General
  Version:  3.5.1            |   Severity:  normal
 Keywords:  needs-patch      |
-----------------------------+--------------------------
 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.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/23468>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list