• Resolved abelony

    (@abelony)


    To reproduce, please create 3 custom post types.

    ‘Custom_post_type_1’, array(…)

    ‘Custom_post_type_2’, array(…
    ‘show_in_menu’ => ‘edit.php?post_type=Custom_post_type_1’
    …)

    ‘Custom_post_type_3’, array(…
    ‘show_in_menu’ => ‘edit.php?post_type=Custom_post_type_1’
    …)

    When you go to “Add New Custom_post_type_2” OR “Add New Custom_post_type_3”, the “Posts” > “Add New” menu item is highlighted. In WP 3.4 and earlier, the Custom_post_type_1 menu item is highlighted when performing the previous step. Editing works as expected (i.e. the correct menu item is highlighted) in 3.5.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Works with this code:

    add_action( 'init', function() {
    	register_post_type( 'test1', array(
    		'show_ui' => true,
    	) );
    
    	register_post_type( 'test2', array(
    		'show_ui' => true,
    		'show_in_menu' => 'edit.php?post_type=test1',
    	) );
    
    	register_post_type( 'test3', array(
    		'show_ui' => true,
    		'show_in_menu' => 'edit.php?post_type=test1',
    	) );
    });

    Thread Starter abelony

    (@abelony)

    Andrew, it is working indeed (I just tried it on a fresh install). Admin Menu Editor was the culprit but looks like they fixed it in today’s release. I will be doing all tests on the fresh install henceforth.

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘3.5 RC5: Custom Post Type menu issue’ is closed to new replies.