| User | Post |
|
11:24 am May 18, 2011
| jonahcoyote
Member
| | | |
|
| posts 18 |
|
|
Hi there,
I've been seeing something strange since an update a while ago. The admin menus for Role Scoper are duplicated: http://cl.ly/3U2a331G0Q1u270Y422S
I tried deactivating and reactivating the plugin but they remain duplicated.
Any ideas?
Thanks,
Jonah
|
|
|
12:41 pm May 18, 2011
| Kevin
Admin
| | | |
|
| posts 2503 |
|
|
What WP and RS versions are you running?
Is it a multisite installation?
Any menu customization plugins?
Is the logged user a site Administrator? Super Administrator?
|
|
|
12:47 pm May 18, 2011
| jonahcoyote
Member
| | | |
|
| posts 18 |
|
|
Hi Kevin,
It's a regular single site Wordpress install running on 3.1.2 and Role Scoper 1.3.39, logged in as Administrator.
We are using the Fluency Admin and Adminimize plugins but I've deactivated both and the duplicate Role Scoper menus are still there.
Any other ideas?
|
|
|
1:18 pm May 18, 2011
| Kevin
Admin
| | | |
|
| posts 2503 |
|
|
I don't see how that would happen unless:
a) 2 different copes are activated and one has role-scoper.php modified to not define the SCOPER_VERSION constant.
- or -
b) something is manually triggering the admin_menu action to fire a second time
I've updated the development code with a safeguard against (b). Please try that. If you prefer to just make the code change, add the following at the top of function build_menu() in role-scoper/admin/admin_rs.php:
static $done = false;
if ( $done ) { return; } else { $done = true; }
|
|
|
1:34 pm May 18, 2011
| jonahcoyote
Member
| | | |
|
| posts 18 |
|
|
At first I thought it was somehow two different versions running but that's not the case or at least it doesn't appear to be. Could automatic updating have somehow caused a previous version to not completely be wiped out?
At any rate, your fix works. Thanks!
- Jonah
|
|
|
1:41 pm May 18, 2011
| Kevin
Admin
| | | |
|
| posts 2503 |
|
|
I just updated the development code again. Can you install that and make sure it still prevents the double menus?
|
|
|
2:17 pm May 18, 2011
| jonahcoyote
Member
| | | |
|
| posts 18 |
|
|
Looks good to me Kevin. Thanks!
|
|