Make WordPress Core

Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#23468 closed defect (bug) (invalid)

No Live Preview after registering taxonomy with 'theme' id

Reported by: alexvorn2 Owned by:
Milestone: Priority: normal
Severity: normal Version: 3.4
Component: Taxonomy Keywords:
Focuses: Cc:


How to replicate:

1) Add the following code into the functions.php file of the theme:

add_action( 'init', 'create_book_tax' );

function create_book_tax() 
         '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)

#1 @alexvorn2
3 years ago

  • Component changed from General to Taxonomy

#2 @ocean90
3 years ago

  • Keywords needs-patch removed
  • Milestone Awaiting Review deleted
  • Resolution set to invalid
  • Status changed from new to closed
  • Version changed from 3.5.1 to 3.4

Added theme, nonce, customized and customize_messenger_channel the the list.

Don't forget to use a prefix.

Version 0, edited 3 years ago by ocean90 (next)

#3 @alexvorn2
3 years ago


Note: See TracTickets for help on using tickets.