Closed rebeccahum closed 4 years ago
get_parent_theme_file_path() is not a custom function and therefore shouldn't be flagged as one: https://developer.wordpress.org/reference/functions/get_parent_theme_file_path/
get_parent_theme_file_path()
48 | WARNING | File inclusion using custom function ( `get_parent_theme_file_path()` ). Must return local file source, as external URLs are prohibited on WordPress VIP. Probably needs manual inspection.
require_once get_parent_theme_file_path( "/includes/blocks/file.php" );
WordPressVIPMinimum.Files.IncludingFile.UsingCustomFunction
Use php -v and composer show to get versions.
php -v
composer show
master
Should just need that function name adding to this array.
Bug Description
get_parent_theme_file_path()
is not a custom function and therefore shouldn't be flagged as one: https://developer.wordpress.org/reference/functions/get_parent_theme_file_path/Minimal Code Snippet
Error Code
WordPressVIPMinimum.Files.IncludingFile.UsingCustomFunction
Environment
Use
php -v
andcomposer show
to get versions.Tested Against
master
branch?master
branch of VIPCS.