Closed kshaner closed 2 years ago
List of recognised functions for defining a path:
Developer docs for the suggested get_theme_file_path
function: https://developer.wordpress.org/reference/functions/get_theme_file_path/
I have to agree - I see no reason not to include 'get_theme_file_path'
in the list of $getPathFunctions
.
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
usesget_stylesheet_directory
andget_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 theWordPressVIPMinimum\Sniffs\Files\IncludingFileSniff
sniff.What code should be reported as a violation?
N/A
What code should not be reported as a violation?