Using "&" in the name breaks the namespace generation · Issue #772 · WordPress/create-block-theme · GitHub
More Web Proxy on the site http://driver.im/
You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
Create a block theme from the current theme (I used Ollie)
Use "&" in the name (Used FE & Ollie)
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
The text was updated successfully, but these errors were encountered:
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:
And in the functions.php:
Best regards and thanks for a great plugin!
Karolína
The text was updated successfully, but these errors were encountered: