mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-17 13:43:38 +09:00
Update 1.0.76
This commit is contained in:
@@ -4,6 +4,8 @@ class UM_Setup {
|
||||
|
||||
function __construct() {
|
||||
|
||||
add_action('init', array(&$this, 'install_basics'), 9);
|
||||
|
||||
add_action('init', array(&$this, 'install_default_forms'), 9);
|
||||
|
||||
add_action('init', array(&$this, 'install_default_roles'), 9);
|
||||
@@ -226,6 +228,14 @@ class UM_Setup {
|
||||
}
|
||||
}
|
||||
|
||||
/***
|
||||
*** @Basics
|
||||
***/
|
||||
function install_basics() {
|
||||
if ( !get_option('__ultimatemember_sitekey') )
|
||||
update_option('__ultimatemember_sitekey', str_replace( array('http://','https://'), '', sanitize_user( get_bloginfo('url') ) ) . '-' . wp_generate_password( 20, false ) );
|
||||
}
|
||||
|
||||
/***
|
||||
*** @Default Forms
|
||||
***/
|
||||
|
||||
Reference in New Issue
Block a user