Skip to content

The plugin incorrectly escapes some characters #222

@anton-vlasenko

Description

@anton-vlasenko

Steps to reproduce the bug:

  1. Click on Appearance -> Create Block Theme.
  2. Choose Create blank theme.
  3. Use ABC'"!@#$%^&*()\|/ for Theme Name, Theme Description, Author.
  4. Click Generate.
  5. Go to the wp-content folder and inspect the theme's style.css, e.g. src/wp-content/themes/abc/style.css.

This is where the bug occurs:

  1. Observe that the ABC'"!@#$%^&*()\|/ string is not escaped correctly in the style.css. There are redundant \ characters -> ABC\'\"!@#$%^&*()\\|/
  2. Go to Appearance -> Themes. Theme name is not displayed correctly on the front-end.
    Screenshot 2023-02-14 at 12 49 03

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions