Skip to content

Commit

Permalink
Fix settings being overwritten when plugin is activated
Browse files Browse the repository at this point in the history
  • Loading branch information
zackkatz committed Apr 19, 2022
1 parent 510f0c2 commit cfd72be
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion inc/class.rda-options.php
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ public function activate() {
);

foreach ( $settings as $key => $value ) {
update_option( $key, $value );
add_option( $key, $value );
}
}

Expand Down
5 changes: 3 additions & 2 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Donate link: http://www.werdswords.com
Tags: dashboard, access, users, administration
Requires at least: 3.1.0
Tested up to: 4.1.1
Stable tag: 1.1.4
Stable tag: 1.1.5

Allows you to disable Dashboard access for users of a specific role or capability. Disallowed users are redirected to a chosen URL.

Expand Down Expand Up @@ -99,10 +99,11 @@ example.com/options-general.php?page=dashboard-access&rda_debug=1

== Changelog ==

= 1.1.4 on April 18, 2022 =
= 1.1.4 & 1.1.5 on April 18, 2022 =

Remove Dashboard Access is now being maintained by [TrustedLogin](https://www.trustedlogin.com/2022/02/21/remove-dashboard-access/)! Remove Dashboard Access aligns with what we do at TrustedLogin: simply making WordPress more secure. Email any questions to [support@trustedlogin.com](mailto:support@trustedlogin.com).

* Fixed: Deactivating and activating the plugin will no longer overwrite plugin settings
* Fixed: Deprecated function `screen_icon()` warning
* Fixed: Issue when front-end editing of profiles when the `$pagenow` global is not defined ([#24](https://github.com/trustedlogin/Remove-Dashboard-Access/issues/24))
* Fixed: Potential `Invalid argument supplied for foreach()` PHP warning ([#22](https://github.com/trustedlogin/Remove-Dashboard-Access/pull/22))
Expand Down
2 changes: 1 addition & 1 deletion remove-dashboard-access.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Plugin Name: Remove Dashboard Access
* Plugin URI: https://www.trustedlogin.com/remove-dashboard-access/
* Description: Removes Dashboard access for certain users based on capability.
* Version: 1.1.4
* Version: 1.1.5
* Author: TrustedLogin
* Author URI: https://www.trustedlogin.com
* License: GPLv2
Expand Down

0 comments on commit cfd72be

Please sign in to comment.