mirror of
https://github.com/mainwp/mainwp-child.git
synced 2025-09-07 11:16:40 +08:00
parent
d130ab7e5f
commit
c533981e7b
3 changed files with 8 additions and 8 deletions
|
@ -166,7 +166,7 @@ class MainWP_Child_Stats {
|
||||||
|
|
||||||
$information['dbsize'] = MainWP_Child_DB::get_size();
|
$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' );
|
$auths = get_option( 'mainwp_child_auth' );
|
||||||
$information['extauth'] = ( $auths && isset( $auths[ $max_his ] ) ? $auths[ $max_his ] : null );
|
$information['extauth'] = ( $auths && isset( $auths[ $max_his ] ) ? $auths[ $max_his ] : null );
|
||||||
|
|
||||||
|
|
|
@ -26,7 +26,7 @@ class MainWP_Child {
|
||||||
|
|
||||||
public $plugin_slug;
|
public $plugin_slug;
|
||||||
private $plugin_dir;
|
private $plugin_dir;
|
||||||
|
|
||||||
|
|
||||||
public static $brandingTitle = null;
|
public static $brandingTitle = null;
|
||||||
|
|
||||||
|
|
|
@ -4,8 +4,8 @@ namespace MainWP\Child;
|
||||||
|
|
||||||
class MainWP_Connect {
|
class MainWP_Connect {
|
||||||
|
|
||||||
public static $instance = null;
|
public static $instance = null;
|
||||||
private $maxHistory = 5;
|
private $maxHistory = 5;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method get_class_name()
|
* Method get_class_name()
|
||||||
|
@ -460,7 +460,7 @@ class MainWP_Connect {
|
||||||
MainWP_Helper::update_option( 'mainwp_child_auth', $auths, 'yes' );
|
MainWP_Helper::update_option( 'mainwp_child_auth', $auths, 'yes' );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public function is_valid_auth( $key ) {
|
public function is_valid_auth( $key ) {
|
||||||
$auths = get_option( 'mainwp_child_auth' );
|
$auths = get_option( 'mainwp_child_auth' );
|
||||||
if ( ! $auths ) {
|
if ( ! $auths ) {
|
||||||
|
@ -474,10 +474,10 @@ class MainWP_Connect {
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public function get_max_history() {
|
public function get_max_history() {
|
||||||
return $this->maxHistory;
|
return $this->maxHistory;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue