Denis Žoljom
Denis Žoljom
What would a sniff detect exactly? The version of the additions or? Not sure I understand what should be sniffed 🙂
Hmm not 100% sure how to do that using PHPCS tho. It sniffs PHP files (JS and CSS if you tell it to), and besides the `@since` tags in the...
What is the status of this issue?
The `wp_add_dashboard_widget` function can be added to a `ForbiddenFunctionSniff`, but the hook won't be checked (as far as I know).
This is something that I think @jrfnl mentioned a `bootstrap.php` file could be added in the sniff. Not 100% sure if and how this could be handled so I'll leave...
Once core moves to PHP 7.0 (beginning of the next year) this shouldn't have to be an issue imo.
The decision from the triage: include this sniff but change it so that it throws a _warning_ instead of an error. This shouldn't be too hard, just extend the sniff...
@kkoppenhaver Hi! Any news on this sniff?
We agreed in the theme triage that we should check for usage of ```php require 'searchform.php'; // include and the _once counterparts ``` and ```php get_template_part( 'searchform.php') ``` And if...