8000 Using "&" in the name breaks the namespace generation · Issue #772 · WordPress/create-block-theme · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
8000

Using "&" in the name breaks the namespace generation #772

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
vyskoczilova opened this issue Apr 28, 2025 · 1 comment
Closed

Using "&" in the name breaks the namespace generation #772

vyskoczilova opened this issue Apr 28, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@vyskoczilova
Copy link

I've randomly experienced this bug - Using "&" in the name breaks the namespace generation and I guess you might want to know it ;)

Steps to replicate:

  1. Create a block theme from the current theme (I used Ollie)
  2. Use "&" in the name (Used FE & Ollie)
  3. The editor switches and fails with the following error:
Uncaught Error: syntax error, unexpected token "&", expecting "{"
in /var/www/html/wp-content/themes/fe-ollie/functions.php on line 11

And in the functions.php:

<?php
/**
 * This file adds functions to the FE & Ollie WordPress theme.
 *
 * @package fe-ollie
 * @author  Mike McAlister
 * @license GNU General Public License v2 or later
 * @link    https://fe-olliewp.com
 */

namespace FE & Ollie;

Best regards and thanks for a great plugin!
Karolína

@pbking pbking added the bug Something isn't working label May 5, 2025
@t-hamano
Copy link
Contributor
t-hamano commented May 18, 2025

Thanks for the report. I have created #777 to discuss this more extensively, so let's close this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants
0