update PHPCS ruleset and re-enable warnings

This commit is contained in:
2019-10-06 17:57:55 +02:00
parent 84cf79fd04
commit 3f5990f1f3
7 changed files with 60 additions and 65 deletions

View File

@ -105,9 +105,11 @@ function statify_blacklist_disable() {
if ( is_plugin_active( STATIFYBLACKLIST_BASE ) ) {
deactivate_plugins( STATIFYBLACKLIST_BASE );
add_action( 'admin_notices', 'statify_blacklist_disabled_notice' );
// phpcs:disable WordPress.Security.NonceVerification.Recommended
if ( isset( $_GET['activate'] ) ) {
unset( $_GET['activate'] );
}
// phpcs:enable
}
}