WordPress.org

Make WordPress Core

Opened 14 months ago

Closed 14 months ago

Last modified 14 months 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:

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)

comment:1 alexvorn214 months ago

  • Component changed from General to Taxonomy

comment:2 ocean9014 months 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 14 months ago by ocean90 (next)

comment:3 alexvorn214 months ago

Thanks!

Note: See TracTickets for help on using tickets.