The code checks paths for "validity" by checking the return value of validate_file to ensure that it is 0, but a valid Windows filepath on a Windows system will return 2, making it so that this plugin cannot run on a Windows host (either for local development or via Windows Server).
Steps To Reproduce
Install this plugin on Windows
Observe that the Gutenberg customizations do not work as expected due to the asset dependencies logic
Additional Information
Should replace the validate_file check to ensure it returns either 0 or 2
Description of the bug
The code checks paths for "validity" by checking the return value of
validate_file
to ensure that it is0
, but a valid Windows filepath on a Windows system will return2
, making it so that this plugin cannot run on a Windows host (either for local development or via Windows Server).Steps To Reproduce
Additional Information
Should replace the
validate_file
check to ensure it returns either0
or2