mirror of
https://github.com/mainwp/mainwp-child.git
synced 2025-09-05 09:19:53 +08:00
Refactoring
This commit is contained in:
parent
ae8f7446af
commit
033145bc47
28 changed files with 171 additions and 214 deletions
|
@ -9,7 +9,7 @@ class MainWP_Child_WPvivid_BackupRestore {
|
|||
public $public_intetface;
|
||||
static function instance() {
|
||||
if ( null === self::$instance ) {
|
||||
self::$instance = new MainWP_Child_WPvivid_BackupRestore();
|
||||
self::$instance = new self();
|
||||
}
|
||||
|
||||
return self::$instance;
|
||||
|
@ -43,7 +43,7 @@ class MainWP_Child_WPvivid_BackupRestore {
|
|||
$information['syncWPvividScheduleData'] = $data['schedule'];
|
||||
$information['syncWPvividSetting'] = $data;
|
||||
}
|
||||
} catch ( Exception $e ) {
|
||||
} catch ( \Exception $e ) {
|
||||
|
||||
}
|
||||
|
||||
|
@ -124,7 +124,7 @@ class MainWP_Child_WPvivid_BackupRestore {
|
|||
$information = $this->post_mainwp_data($_POST);
|
||||
break;
|
||||
}
|
||||
} catch ( Exception $e ) {
|
||||
} catch ( \Exception $e ) {
|
||||
$information = array( 'error' => $e->getMessage() );
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue