mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-16 21:23:39 +09:00
- fixed roles selector field for some installs;
- removed deprecated google-chart script enqueue;
This commit is contained in:
@@ -128,7 +128,8 @@ if ( ! class_exists( 'Enqueue' ) ) {
|
|||||||
***/
|
***/
|
||||||
function load_original() {
|
function load_original() {
|
||||||
|
|
||||||
$this->load_google_charts();
|
//maybe deprecated
|
||||||
|
//$this->load_google_charts();
|
||||||
|
|
||||||
$this->load_fonticons();
|
$this->load_fonticons();
|
||||||
|
|
||||||
|
|||||||
@@ -2324,7 +2324,7 @@
|
|||||||
//fix when customers change options for role (radio/dropdown) fields
|
//fix when customers change options for role (radio/dropdown) fields
|
||||||
foreach ( $roles as $role_key => $role_title ) {
|
foreach ( $roles as $role_key => $role_title ) {
|
||||||
if ( false !== $search_key = array_search( $role_title, $options ) ) {
|
if ( false !== $search_key = array_search( $role_title, $options ) ) {
|
||||||
if ( $role_key != $search_key ) {
|
if ( $role_key !== $search_key ) {
|
||||||
$options[ $role_key ] = $role_title;
|
$options[ $role_key ] = $role_title;
|
||||||
unset( $options[ $search_key ] );
|
unset( $options[ $search_key ] );
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user