We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
We should add a sniff that looks for dashboard widgets, which are not allowed in the WordPress themes (as far as I know).
The sniff should search for wp_add_dashboard_widget() function and wp_dashboard_setup hook in the theme and alert if those exist.
wp_add_dashboard_widget()
wp_dashboard_setup
Dashboard widgets can easily contain iframes that can be used for user tracking, which is also forbidden.
The text was updated successfully, but these errors were encountered:
Related to #9 We already have a list of function to be blocked in theme. List will be discussed may be in some meeting and updated accordingly.
Sorry, something went wrong.
The wp_add_dashboard_widget function can be added to a ForbiddenFunctionSniff, but the hook won't be checked (as far as I know).
wp_add_dashboard_widget
ForbiddenFunctionSniff
dingo-d
No branches or pull requests
We should add a sniff that looks for dashboard widgets, which are not allowed in the WordPress themes (as far as I know).
The sniff should search for
wp_add_dashboard_widget()
function andwp_dashboard_setup
hook in the theme and alert if those exist.Dashboard widgets can easily contain iframes that can be used for user tracking, which is also forbidden.
The text was updated successfully, but these errors were encountered: