Make WordPress Core

Opened 12 years ago

Closed 12 years ago

#12985 closed defect (bug) (fixed)

The $page_title variable of add_submenu_page() does not work for custom post types

Reported by: uglyrobot Owned by:
Milestone: 3.0 Priority: high
Severity: normal Version:
Component: Posts, Post Types Keywords: needs-patch
Focuses: Cc:


If I try to add a submenu page to a custom post type the title is not displayed.

Example code for "product" post type:

add_submenu_page('edit.php?post_type=product', 'Menu Title', 'Page Title', ...

The <title> tag just has the default WP title.

Change History (2)

#2 @dd32
12 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [14126]) Check $pagenow?post_type=$typenow for submenu titles, Fixes page titles for plugin pages added to custom post_type's. Fixes #12985

Note: See TracTickets for help on using tickets.