Skip to content
This repository was archived by the owner on May 19, 2025. It is now read-only.

Commit 09ab9fd

Browse files
committed
fix #30
1 parent 5d37ab7 commit 09ab9fd

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

authMgrPlus/plugin.php

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Plugin Name: Auth Manager Plus
44
Plugin URI: https://github.com/joshp23/YOURLS-AuthMgrPlus
55
Description: Role Based Access Controlls with seperated user data for authenticated users
6-
Version: 2.2.4
6+
Version: 2.2.5
77
Author: Josh Panter, nicwaller, Ian Barber <[email protected]>
88
Author URI: https://unfettered.net
99
*/
@@ -166,16 +166,12 @@ function amp_admin_sublinks( $links ) {
166166
}
167167

168168
if( empty( $links['plugins'] ) )
169-
yourls_add_filter( 'admin_links', 'amp_admin_links' );
170-
171-
sort($links['plugins']);
169+
unset($links['plugins']);
170+
else
171+
sort($links['plugins']);
172172
return $links;
173173
}
174174

175-
function amp_admin_links( $links ) {
176-
unset($links['plugins']);
177-
return $links;
178-
}
179175
/*
180176
* Cosmetic filter: displays currently available roles
181177
* by hovering mouse over the username in logout link.

0 commit comments

Comments
 (0)