What problem would the enhancement address for VIP?
The function get_theme_file_path should not trigger as a warning when including files. get_theme_file_path uses get_stylesheet_directory and get_template_directory in the function which are both already allowed.
Describe the solution you'd like
Add get_theme_file_path to the $getPathFunctions property of the WordPressVIPMinimum\Sniffs\Files\IncludingFileSniff sniff.
What code should be reported as a violation?
N/A
What code should not be reported as a violation?
require_once get_theme_file_path( 'includes/custom-theme-file.php' );
What problem would the enhancement address for VIP?
The function
get_theme_file_pathshould not trigger as a warning when including files.get_theme_file_pathusesget_stylesheet_directoryandget_template_directoryin the function which are both already allowed.Describe the solution you'd like
Add get_theme_file_path to the
$getPathFunctionsproperty of theWordPressVIPMinimum\Sniffs\Files\IncludingFileSniffsniff.What code should be reported as a violation?
N/A
What code should not be reported as a violation?