Closed dingo-d closed 5 years ago
I think this covers it fine, but I was wondering as gutenberg becomes more developed and widely used in core (customizer, widgets, menus etc) if the sniff should check registerblock* instead of listing them out as they come to make it a little more future proof when new blocks are added.
Should I also add CRON functionality (#146) in this PR or should I open a new one after this has been merged?
Should I also add CRON functionality (#146) in this PR or should I open a new one after this has been merged?
I'd open a new PR after this one.
Ok, if everything is ok with this one feel free to merge it 🙂
Ok, if everything is ok with this one feel free to merge it
Did you still want to address my two nitpick comments ?
Oh, didn't saw new comments. On it :+1:
I've updated it @jrfnl 🙂
Added
To the list of forbidden functions sniff, as blocks should be registered in plugins, not themes.
The list is generated from: https://developer.wordpress.org/?s=register_block_