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
The existing sniff is for 'register_block_*', so an error is shown for register_block_style(). register_block_style() is allowed in themes, so it should not cause an error.
To do:
Add the rule in the Theme Review handbook to the Requirements page.
Add the rule in the Theme Review handbook to the Recommended page.
Move the rule in the Theme Review handbook to the Requirements page.
Create unit tests
Create new sniff
Adjust existing WPCS / PHPCS sniff and send in PR upstream.
Add existing sniffname sniff to the ruleset.
The text was updated successfully, but these errors were encountered:
In https://github.com/WPTRT/WPThemeReview/blob/develop/WPThemeReview/Sniffs/PluginTerritory/ForbiddenFunctionsSniff.php
The sniff for regestering blocks is too strict.
The existing sniff is for
'register_block_*',
so an error is shown forregister_block_style().
register_block_style()
is allowed in themes, so it should not cause an error.To do:
sniffname
sniff to the ruleset.The text was updated successfully, but these errors were encountered: