[wp-trac] [WordPress Trac] #21655: Incorrect URL For Theme Options With Custom Post Type

WordPress Trac wp-trac at lists.automattic.com
Wed Aug 22 10:27:30 UTC 2012


#21655: Incorrect URL For Theme Options With Custom Post Type
-------------------------------------+------------------------------
 Reporter:  jarretc                  |       Owner:
     Type:  defect (bug)             |      Status:  new
 Priority:  normal                   |   Milestone:  Awaiting Review
Component:  Administration           |     Version:  3.4.1
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch needs-testing  |
-------------------------------------+------------------------------

Comment (by SergeyBiryukov):

 Couldn't reproduce on a clean install with Twenty Twelve.

 My steps:
 1. Created the post type:
 {{{
 register_post_type( 'test', array(
         'label' => 'Test',
         'public' => true,
         'show_in_menu' => 'themes.php',
         'capability_type' => 'post',
 ) );
 }}}
 2. The URL under Appearance → Test is correct:
 {{{
 http://trunk.wordpress/wp-admin/edit.php?post_type=test
 }}}
 3. Twenty Twelve's Theme Options URL is also correct:
 {{{
 http://trunk.wordpress/wp-admin/themes.php?page=theme_options
 }}}

 If I set `capability_type` to `'edit_theme_options'`, Appearance → Test
 item doesn't appear at all, Twenty Twelve's Theme Options URL is still
 correct.

 Is there anything I'm missing? Could you paste the code that causes the
 issue?

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/21655#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list