forked from Michel2/wp-jquery-datatable
Changed the user role for the options page from 'administrator' to 'manage_options'
This commit is contained in:
@@ -83,6 +83,7 @@ Is this plugin prepared for multisites? Yes.
|
|||||||
* Changed the registering of settings during installation to an array.
|
* Changed the registering of settings during installation to an array.
|
||||||
* Changed the unregistering of settings during uninstallation 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.
|
* 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 =
|
= 4.1.0 =
|
||||||
* Compatibility with WordPress version 6.7.1
|
* Compatibility with WordPress version 6.7.1
|
||||||
|
|||||||
@@ -46,7 +46,7 @@ function wp_jdt_create_menu()
|
|||||||
{
|
{
|
||||||
|
|
||||||
//create admin side 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
|
//call register settings function
|
||||||
add_action('admin_init', 'wp_jdt_settings');
|
add_action('admin_init', 'wp_jdt_settings');
|
||||||
|
|||||||
Reference in New Issue
Block a user