forked from Michel2/wp-jquery-datatable
Added a check for the options page to only load if the user has sufficient rights
This commit is contained in:
@@ -75,6 +75,10 @@ function wp_jdt_settings()
|
||||
function wp_jdt_settings_page()
|
||||
{
|
||||
// Admin side page options
|
||||
if (!current_user_can('manage_options')) {
|
||||
return;
|
||||
}
|
||||
|
||||
$wp_jdt_info = get_option('wp_jdt_info');
|
||||
$wp_jdt_paging = get_option('wp_jdt_paging');
|
||||
$wp_jdt_page_length = get_option('wp_jdt_page_length');
|
||||
|
||||
Reference in New Issue
Block a user