- fixed roles selector field for some installs;

- removed deprecated google-chart script enqueue;
This commit is contained in:
nikitozzzzzzz
2017-12-10 11:30:39 +02:00
parent 1114edce4d
commit 63dc4ecc0c
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -128,7 +128,8 @@ if ( ! class_exists( 'Enqueue' ) ) {
***/
function load_original() {
$this->load_google_charts();
//maybe deprecated
//$this->load_google_charts();
$this->load_fonticons();
+1 -1
View File
@@ -2324,7 +2324,7 @@
//fix when customers change options for role (radio/dropdown) fields
foreach ( $roles as $role_key => $role_title ) {
if ( false !== $search_key = array_search( $role_title, $options ) ) {
if ( $role_key != $search_key ) {
if ( $role_key !== $search_key ) {
$options[ $role_key ] = $role_title;
unset( $options[ $search_key ] );
}