You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the Whip_Host.php file, there are a couple of calls to apply_filters() with variable filter names.
I'm not familiar enough with the code to properly review these, but I do believe this setup should be reviewed for the following reasons:
Variable filter names with unpredictable values make it hard to hook into these.
All hook names should be prefixed to prevent conflicts with other plugins/themes. This is not safeguarded in the current setup.
Relevant warnings thrown by PHPCS when run without exclusions:
FILE: src\Whip_Host.php
------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 3 WARNINGS AFFECTING 3 LINES
------------------------------------------------------------------------------------------
47 | WARNING | Hook names invoked by a theme/plugin should start with the theme/plugin
| | prefix. Found: "strtolower( self::HOST_NAME_KEY )".
77 | WARNING | Hook names invoked by a theme/plugin should start with the theme/plugin
| | prefix. Found: "strtolower( $messageKey )".
102 | WARNING | Hook names invoked by a theme/plugin should start with the theme/plugin
| | prefix. Found: "self::HOSTING_PAGE_FILTER_KEY".
------------------------------------------------------------------------------------------
The text was updated successfully, but these errors were encountered:
In the
Whip_Host.php
file, there are a couple of calls toapply_filters()
with variable filter names.I'm not familiar enough with the code to properly review these, but I do believe this setup should be reviewed for the following reasons:
Relevant warnings thrown by PHPCS when run without exclusions:
The text was updated successfully, but these errors were encountered: