Merge branch 'bogdan01' of https://github.com/mainwp/mainwp-child into thang

This commit is contained in:
thanghv 2020-05-15 01:08:34 +07:00
commit 6b1cb419bf
3 changed files with 8 additions and 8 deletions

View file

@ -165,7 +165,7 @@ class MainWP_Child_Stats {
$information['dbsize'] = MainWP_Child_DB::get_size();
$max_his = MainWP_Connect::instance()->get_max_history();
$max_his = MainWP_Connect::instance()->get_max_history();
$auths = get_option( 'mainwp_child_auth' );
$information['extauth'] = ( $auths && isset( $auths[ $max_his ] ) ? $auths[ $max_his ] : null );

View file

@ -26,7 +26,7 @@ class MainWP_Child {
public $plugin_slug;
private $plugin_dir;
public function __construct( $plugin_file ) {
$this->update();
$this->load_all_options();

View file

@ -4,8 +4,8 @@ namespace MainWP\Child;
class MainWP_Connect {
public static $instance = null;
private $maxHistory = 5;
public static $instance = null;
private $maxHistory = 5;
/**
* Method get_class_name()
@ -461,7 +461,7 @@ class MainWP_Connect {
MainWP_Helper::update_option( 'mainwp_child_auth', $auths, 'yes' );
}
}
public function is_valid_auth( $key ) {
$auths = get_option( 'mainwp_child_auth' );
if ( ! $auths ) {
@ -475,10 +475,10 @@ class MainWP_Connect {
return false;
}
public function get_max_history() {
return $this->maxHistory;
}
}