mirror of
https://github.com/mainwp/mainwp-child.git
synced 2025-09-06 11:10:43 +08:00
Refactoring
This commit is contained in:
parent
f5acc21b32
commit
64931ea48a
10 changed files with 51 additions and 69 deletions
|
@ -121,7 +121,7 @@ class MainWP_Clone {
|
|||
}
|
||||
|
||||
$branding_opts = MainWP_Child_Branding::instance()->get_branding_options();
|
||||
$hide_restore = isset( $branding_opts['remove_restore'] ) && $branding_opts['remove_restore'] ? true : false;
|
||||
$hide_restore = isset( $branding_opts['remove_restore'] ) && $branding_opts['remove_restore'] ? true : false;
|
||||
if ( ! $hide_restore ) {
|
||||
if ( '' == session_id() ) {
|
||||
session_start();
|
||||
|
@ -1464,7 +1464,7 @@ class MainWP_Clone {
|
|||
}
|
||||
return $file;
|
||||
}
|
||||
|
||||
|
||||
public static function is_archive( $pFileName, $pPrefix = '', $pSuffix = '' ) {
|
||||
return preg_match( '/' . $pPrefix . '(.*).(zip|tar|tar.gz|tar.bz2)' . $pSuffix . '$/', $pFileName );
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue