mirror of
https://github.com/mainwp/mainwp-child.git
synced 2025-09-06 11:10:43 +08:00
parent
e31db72607
commit
e0862d574b
8 changed files with 163 additions and 166 deletions
|
@ -89,7 +89,6 @@ class MainWP_Child_Callable {
|
|||
}
|
||||
|
||||
public function __construct() {
|
||||
|
||||
}
|
||||
|
||||
public static function get_instance() {
|
||||
|
@ -100,14 +99,16 @@ class MainWP_Child_Callable {
|
|||
}
|
||||
|
||||
public function is_callable_function( $func ) {
|
||||
if ( isset( $this->callableFunctions[ $func ] ) )
|
||||
if ( isset( $this->callableFunctions[ $func ] ) ) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
public function is_callable_function_no_auth( $func ) {
|
||||
if ( isset( $this->callableFunctionsNoAuth[ $func ] ) )
|
||||
if ( isset( $this->callableFunctionsNoAuth[ $func ] ) ) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
|
@ -360,7 +360,6 @@ class MainWP_Child_Stats {
|
|||
}
|
||||
$information['categories'] = $categories;
|
||||
|
||||
|
||||
$get_file_size = apply_filters_deprecated( 'mainwp-child-get-total-size', array( true ), '4.0.7.1', 'mainwp_child_get_total_size' );
|
||||
$get_file_size = apply_filters( 'mainwp_child_get_total_size', $get_file_size );
|
||||
|
||||
|
@ -375,7 +374,6 @@ class MainWP_Child_Stats {
|
|||
global $mainWPChild;
|
||||
$max_his = $mainWPChild->get_max_history();
|
||||
|
||||
|
||||
$auths = get_option( 'mainwp_child_auth' );
|
||||
$information['extauth'] = ( $auths && isset( $auths[ $max_his ] ) ? $auths[ $max_his ] : null );
|
||||
|
||||
|
|
|
@ -17,7 +17,6 @@ class MainWP_Child_Users {
|
|||
}
|
||||
|
||||
public function __construct() {
|
||||
|
||||
}
|
||||
|
||||
public static function get_instance() {
|
||||
|
|
|
@ -1315,7 +1315,6 @@ class MainWP_Child {
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
// Call the function required.
|
||||
if ( $auth && isset( $_POST['function'] ) && $callable ) {
|
||||
define( 'DOING_CRON', true );
|
||||
|
|
|
@ -519,7 +519,7 @@ class MainWP_Helper {
|
|||
$new_post['post_content'] = str_replace( $lnkToReplace, $linkToReplaceWith, $new_post['post_content'] );
|
||||
}
|
||||
} catch ( \Exception $e ) {
|
||||
MainWP_Helper::log_debug( $e->getMessage() );
|
||||
self::log_debug( $e->getMessage() );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue