htmlburger/wpemerge-plugin

Vendor\Project namespace

str opened this issue · 0 comments

str commented

Version

Please add the exact versions used for each of the following:

  • WP Emerge Starter Plugin: 0.17.0
  • WP Emerge (if not the default):
  • WordPress: 6.0.1
  • PHP: 8.1

Expected behavior

When running yarn rebrand to create the plugin's namespace, I wanted to follow the Vendor\Project convention. That way I could have different plugins like Vendor\Gallery, Vendor\MyEditor, etc.

Actual behavior

After running yarn rebrand I tried the namespece for Vendor\MyProject and Vendor\MyProject (the double slash in case it was escaping it), but instead it replaced it by VendorMyProject

Steps to reproduce (in case of a bug)

1.install wp-engine as plugin with default instructions
2. run yarn rebrand
3. define the namespace with a least 2 levels, like Vendor\MyProject