Make WordPress Core

Changeset 17197


Ignore:
Timestamp:
01/01/2011 12:21:18 AM (14 years ago)
Author:
nacin
Message:

Have menu_name work with show_in_menu = submenu. fixes #14832.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/post.php

    r17158 r17197  
    12011201        if ( ! $ptype_obj->show_in_menu || $ptype_obj->show_in_menu === true )
    12021202            continue;
    1203         add_submenu_page( $ptype_obj->show_in_menu, $ptype_obj->labels->name, $ptype_obj->labels->name, $ptype_obj->cap->edit_posts, "edit.php?post_type=$ptype" );
     1203        add_submenu_page( $ptype_obj->show_in_menu, $ptype_obj->labels->name, $ptype_obj->labels->menu_name, $ptype_obj->cap->edit_posts, "edit.php?post_type=$ptype" );
    12041204    }
    12051205}
Note: See TracChangeset for help on using the changeset viewer.