WordPress.org

Make WordPress Core

Opened 3 years ago

Last modified 7 months ago

#39355 reopened defect (bug)

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

Reported by: maaarsl Owned by: pento
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 4.7
Component: General Keywords:
Focuses: Cc:
PR Number:

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 (3)

#1 follow-up: @pento
3 years ago

  • Owner set to pento
  • Resolution set to fixed
  • Status changed from new to 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
3 years ago

  • Resolution fixed deleted
  • Status changed from closed to reopened

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

#3 in reply to: ↑ 1 @maaarsl
3 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 3 years ago by maaarsl (previous) (diff)
Note: See TracTickets for help on using tickets.