WebDevStudios / wd_f

GNU General Public License v2.0
11 stars 1 forks source link

Namespace parameter accepting multiple slashes. #6

Closed ramsesdelr closed 1 year ago

ramsesdelr commented 1 year ago

When trying to create a new block through the WP CLI, it is currently allowing you to add extra slashes to the namespace definition ( eg myplugin/other_namespace_part ) which breaks the block.json structure giving us a result like this:

image We need to prevent the users from adding slashes into the namespace parameter.