mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-11 18:56:10 +09:00
- hotfix: if roles localized as object in some installations;
- changed readme;
This commit is contained in:
@@ -164,8 +164,8 @@ if ( ! class_exists( 'um\admin\core\Admin_Enqueue' ) ) {
|
||||
*/
|
||||
function load_role_wrapper() {
|
||||
wp_register_script( 'um_admin_role_wrapper', $this->js_url . 'um-admin-role-wrapper.js', array( 'jquery' ), ultimatemember_version, true );
|
||||
$localize_roles_data = get_option( 'um_roles' );
|
||||
wp_localize_script( 'um_admin_role_wrapper', 'um_roles', $localize_roles_data );
|
||||
$localize_roles_data = get_option( 'um_roles' );
|
||||
wp_localize_script( 'um_admin_role_wrapper', 'um_roles', (array) $localize_roles_data );
|
||||
wp_enqueue_script( 'um_admin_role_wrapper' );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user