WordPress.org

Make WordPress Core

Opened 4 months ago

Last modified 3 months ago

#49666 new defect (bug)

customizer doesn't works when backslash is use in site title

Reported by: rumyan Owned by:
Milestone: Future Release Priority: normal
Severity: normal Version: 5.3
Component: Customize Keywords: has-screenshots needs-patch
Focuses: Cc:

Description

If there is "\" in the page name, "Appearance> customize" stops working as in the attached screenshot.

Attachments (3)

customizer.png (83.2 KB) - added by rumyan 4 months ago.
If there is "\" in the page name, "Appearance> customize" stops working as in the attached screenshot.
error.png (36.3 KB) - added by mukesh27 4 months ago.
JS error
General Settings.png (49.7 KB) - added by mukesh27 4 months ago.
Attached screenshot for WordPress Version 5.4-RC3-47477

Download all attachments as: .zip

Change History (10)

@rumyan
4 months ago

If there is "\" in the page name, "Appearance> customize" stops working as in the attached screenshot.

#1 @SergeyBiryukov
4 months ago

  • Component changed from General to Customize

#2 @mukesh27
4 months ago

  • Keywords needs-patch has-screenshots added
  • Summary changed from customizer doesn't works when backslash is in website title to customizer doesn't works when backslash is use in site title
  • Version 5.3.2 deleted

Hi @rumyan,

Welcome to WordPress Trac! Thanks for the ticket.

I'm facing the same issue in WordPress 5.4-RC3-47470 version. Check attached screenshot for error.

@mukesh27
4 months ago

JS error

#3 @dlh
4 months ago

  • Focuses administration removed
  • Keywords reporter-feedback added; needs-patch removed

Hi @rumyan, and welcome to WordPress Trac!

I'm unable to replicate this issue in a new installation of trunk. Does it still happen when using a default theme with all plugins disabled? If so, can you please provide steps to replicate it?

@mukesh27
4 months ago

Attached screenshot for WordPress Version 5.4-RC3-47477

#4 @mukesh27
4 months ago

  • Keywords reporter-feedback removed

@dlh Replicated the same issue in version 5.4-RC3-47477.

Add backslash in Site Title like attached screenshot.

#5 @dlh
4 months ago

  • Keywords needs-patch added
  • Milestone changed from Awaiting Review to Future Release
  • Version set to 5.3

Thanks @mukesh27. I misunderstood and thought this was an issue when adding a backslash in the Customizer, but now I see that the issue happens when loading the Customizer.

At a glance, this issue is a side-effect of [46389]. It also seems to happen only when the backslash is the last character in the site title such that it escapes the closing quote in the Underscore template.

#6 @man4toman
3 months ago

If backslash placed at the end of the title, it cause an error, I set site name something like Test \ New, the Customizer works fine.

Last edited 3 months ago by man4toman (previous) (diff)

#7 @rumyan
3 months ago

Exactly. If the last character in the page name is "\" then no options work in the customizer.
The error still occurs. I have checked in a working website and in a new installation.

Note: See TracTickets for help on using tickets.