Make WordPress Core

Opened 9 years ago

Closed 9 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's profile ocean90 Owned by: ocean90's profile ocean90
Milestone: 4.5 Priority: normal
Severity: normal Version:
Component: Menus Keywords: has-patch
Focuses: Cc:

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 9 years ago.

Download all attachments as: .zip

Change History (2)

@ocean90
9 years ago

#1 @ocean90
9 years ago

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

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.