mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-18 22:23:37 +09:00
- fixed member directory scripts enqueue;
- added integration with User Location extension; - sanitize $_GET variables in wp-admin side;
This commit is contained in:
@@ -55,7 +55,7 @@
|
||||
$role_capabilities = ! empty( $role['wp_capabilities'] ) ? array_keys( $role['wp_capabilities'] ) : array( 'read' );
|
||||
|
||||
if ( ! empty( $_GET['id'] ) ) {
|
||||
$role = get_role( $_GET['id'] );
|
||||
$role = get_role( sanitize_key( $_GET['id'] ) );
|
||||
}
|
||||
|
||||
$all_caps = array();
|
||||
|
||||
Reference in New Issue
Block a user