Make WordPress Core

Opened 11 years ago

Closed 11 years ago

#35317 closed defect (bug) (fixed)

Apply the `the_title` filter on original post titles in wp_setup_nav_menu_item()

Reported by: ocean90 Owned by: ocean90
Priority: normal Milestone: 4.5
Component: Menus Version:
Severity: normal Keywords: has-patch
Cc: Focuses:

Description

In trunk/src/wp-includes/nav-menu.php?marks=742&rev=36095#L721 the original post title gets used if no custom menu title was provided. On the original title the the_title should get applied to get consistent output through the back and front end.

Attachments (1)

35317.patch (656 bytes ) - added by ocean90 11 years ago.

Download all attachments as: .zip

Change History (2)

@ocean90
11 years ago

#1 @ocean90
11 years ago

  • Owner set to ocean90
  • Resolutionfixed
  • Status newclosed

In 36174:

Nav Menus: Apply the the_title filter on original post titles in wp_setup_nav_menu_item().

The filter is already used in Walker_Nav_Menu_Checklist and Walker_Nav_Menu_Edit. This ensures that titles are consistent across the admin and front end.

Fixes #35317.

Note: See TracTickets for help on using tickets.