From 4bf2d4c04915a16a44bdc5be358c3982594b2779 Mon Sep 17 00:00:00 2001 From: Michel Date: Tue, 21 Jul 2026 17:31:08 +0200 Subject: [PATCH] Changed the user role for the options page from 'administrator' to 'manage_options' --- readme.txt | 1 + wp-jquery-datatable.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/readme.txt b/readme.txt index a426f62..b054464 100644 --- a/readme.txt +++ b/readme.txt @@ -83,6 +83,7 @@ Is this plugin prepared for multisites? Yes. * Changed the registering of settings during installation to an array. * Changed the unregistering of settings during uninstallation to an array. * Deleted the setting of unnecessary variables under wp_jdt_activate_plugin() and made all the if statements strict. +* Changed the user role for the options page from 'administrator' to 'manage_options'. = 4.1.0 = * Compatibility with WordPress version 6.7.1 diff --git a/wp-jquery-datatable.php b/wp-jquery-datatable.php index 9f29a29..3e3b6de 100644 --- a/wp-jquery-datatable.php +++ b/wp-jquery-datatable.php @@ -46,7 +46,7 @@ function wp_jdt_create_menu() { //create admin side menu - add_options_page(__('WP jQuery DataTable Settings', 'wp-jquery-datatable'), __('WP jQuery DataTable', 'wp-jquery-datatable'), 'administrator', 'wp-jdt', 'wp_jdt_settings_page'); + add_options_page(__('WP jQuery DataTable Settings', 'wp-jquery-datatable'), __('WP jQuery DataTable', 'wp-jquery-datatable'), 'manage_options', 'wp-jdt', 'wp_jdt_settings_page'); //call register settings function add_action('admin_init', 'wp_jdt_settings');