Make WordPress Core

Opened 10 years ago

Last modified 7 years ago

#39355 assigned defect (bug)

Menu title doesn't get updated if I change the page title

Reported by: maaarsl Owned by:
Priority: normal Milestone: Awaiting Review
Component: Menus Version: 4.7
Severity: normal Keywords:
Cc: Focuses:

Description

It seems like WordPress converts the hyphen character to the dash character automatically. I created a new page with the following page title:

Foo - Bar

However, when I checked the menu title (Appearance > Menus), I found the title was displayed as:

Foo – Bar

The page gets stored in the database with a customized menu title (page title with a hyphen and menu title with a dash) and that's why the menu title doesn't get updated if I change the page title.

Change History (5)

#1 follow-up: @pento
10 years ago

  • Owner set to pento
  • Resolution → fixed
  • Status new → closed

In 39632:

Twenty Seventeen: Ensure functions in customize-controls.js don't count on Customizer sections always being present

Before, the code assumed the theme_options section is always present, but it can be removed by plugins. This way, if it is, no JavaScript errors occur.

Merge of [39623] to the 4.7 branch.

Props westonruter.
Fixes #39355.

#2 @westonruter
10 years ago

  • Resolution fixed
  • Status closed → reopened

The revision [39632] mentions this ticket when it should have mentioned #39335.

#3 in reply to: ↑ 1 @maaarsl
10 years ago

Replying to pento:

In 39632:

Twenty Seventeen: Ensure functions in customize-controls.js don't count on Customizer sections always being present

Before, the code assumed the theme_options section is always present, but it can be removed by plugins. This way, if it is, no JavaScript errors occur.

Merge of [39623] to the 4.7 branch.

Props westonruter.
Fixes #39355.

This isn't a bug in the 'Twenty Seventeen' theme, it occurs with every theme. I think you got my bug description wrong.

Last edited 10 years ago by maaarsl (previous) (diff)

#4 @pento
7 years ago

  • Owner pento removed
  • Status reopened → assigned

#5 @SergeyBiryukov
7 years ago

  • Component General → Menus

Related (but not exactly a duplicate): #38893, #38894.

Note: See TracTickets for help on using tickets.