Make WordPress Core

Opened 7 years ago

Last modified 4 years ago

#39355 assigned defect (bug)

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

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

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
7 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
7 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
7 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 7 years ago by maaarsl (previous) (diff)

#4 @pento
4 years ago

  • Owner pento deleted
  • Status changed from reopened to assigned

#5 @SergeyBiryukov
4 years ago

  • Component changed from General to Menus

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

Note: See TracTickets for help on using tickets.