Closed dingo-d closed 5 years ago
@Danny-Cooper regarding the two issues you mentioned, the issue with the prefix, shouldn't they be named with underscore? editor_blocks
?
The second issue with the licenses I don't think the reported is an error, since it detected that the license is present and that's ok. I could add a check for a type of license, but I can leave that for later.
What did work was the issue that you have theme
in your theme name, and that's not allowed 🙂
Thanks for your contributions btw 🙂
@dingo-d I was using the underscore, but the sniffer seemed to want a hyphen?
If a theme name has dashes e.g 'editor-blocks' it expects variables to be $editor-blocks_variable and won't accept $editor_blocks_variable.
@DannyCooper can you check the thing with the theme prefix? When I tried with editor_blocks
I got some errors like
Variables defined by a theme/plugin should start with the theme/plugin prefix. Found: "$comments_number".
If I add editor-blocks
as a prefix I get
WARNING The "editor-blocks" prefix is not a valid namespace/function/class/variable/constant prefix in PHP.
You can't have a prefix with a dash. PHP will parse it as a subtraction.
The aim is to have a modern, clear-cut development process that will help with future development of the plugin.
Note
I have closed the old PR because I want everything to be handled from this repo, and not my fork (easier to maintain).
Added
To do
Review is welcomed as are suggestions.
Help from testers
From Danny Cooper:
From Liton Arefin:
Getting error while activation.
This is fixed.
From metallicarosetail (via slack)
Error while activation on PHP 7.0.12
This is fixed. Removed
void
return types