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
caac8ef5ae
commit
aa89db5f6c
30 changed files with 506 additions and 1073 deletions
|
@ -19,7 +19,7 @@ class MainWP_Child_Back_Up_Wordpress {
|
|||
public static $instance = null;
|
||||
public $is_plugin_installed = false;
|
||||
|
||||
public static function Instance() {
|
||||
public static function instance() {
|
||||
if ( null === self::$instance ) {
|
||||
self::$instance = new MainWP_Child_Back_Up_Wordpress();
|
||||
}
|
||||
|
@ -78,7 +78,7 @@ class MainWP_Child_Back_Up_Wordpress {
|
|||
|
||||
public function action() {
|
||||
$information = array();
|
||||
if ( ! self::isActivated() ) {
|
||||
if ( ! self::is_activated() ) {
|
||||
$information['error'] = 'NO_BACKUPWORDPRESS';
|
||||
MainWP_Helper::write( $information );
|
||||
}
|
||||
|
@ -1043,7 +1043,7 @@ class MainWP_Child_Back_Up_Wordpress {
|
|||
return $out;
|
||||
}
|
||||
|
||||
public static function isActivated() {
|
||||
public static function is_activated() {
|
||||
if ( ! defined( 'HMBKP_PLUGIN_PATH' ) || ! class_exists( 'HM\BackUpWordPress\Plugin' ) ) {
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue