mirror of
https://github.com/mainwp/mainwp-child.git
synced 2025-08-31 03:53:15 +08:00
Merge branch 'bogdan01' of https://github.com/mainwp/mainwp-child into thang
This commit is contained in:
commit
6b1cb419bf
3 changed files with 8 additions and 8 deletions
|
@ -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 );
|
||||
|
||||
|
|
|
@ -26,7 +26,7 @@ class MainWP_Child {
|
|||
|
||||
public $plugin_slug;
|
||||
private $plugin_dir;
|
||||
|
||||
|
||||
public function __construct( $plugin_file ) {
|
||||
$this->update();
|
||||
$this->load_all_options();
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue