Make WordPress Core

Opened 4 years ago

Last modified 21 months ago

#49666 new defect (bug)

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

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

Description

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

Attachments (4)

customizer.png (83.2 KB) - added by rumyan 4 years 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 years ago.
JS error
General Settings.png (49.7 KB) - added by mukesh27 4 years ago.
Attached screenshot for WordPress Version 5.4-RC3-47477
49666.diff (1.8 KB) - added by deepaklalwani 4 years ago.

Download all attachments as: .zip

Change History (14)

@rumyan
4 years ago

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

#1 @SergeyBiryukov
4 years ago

  • Component changed from General to Customize

#2 @mukesh27
4 years 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 years ago

JS error

#3 @dlh
4 years 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 years ago

Attached screenshot for WordPress Version 5.4-RC3-47477

#4 @mukesh27
4 years 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 years 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
4 years 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 4 years ago by man4toman (previous) (diff)

#7 @rumyan
4 years 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.

#8 @dlh
4 years ago

#50563 was marked as a duplicate.

@deepaklalwani
4 years ago

#9 @deepaklalwani
4 years ago

  • Keywords has-patch added; needs-patch removed

#10 @dlh
21 months ago

#55983 was marked as a duplicate.

Note: See TracTickets for help on using tickets.