Created
February 3, 2021 17:59
-
-
Save wpmu-authors/357037989065f89c15f049314e9831bf to your computer and use it in GitHub Desktop.
security.php
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if ( ! current_user_can( 'activate_plugins' ) ) { | |
return; | |
} | |
$plugin = isset( $_REQUEST['plugin'] ) ? $_REQUEST['plugin'] : ''; | |
check_admin_referer( "deactivate-plugin_{$plugin}" ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment