Skip to content

Commit ae2dd9a

Browse files
committed
refactor(backup): remove extra info call
1 parent 845a7c0 commit ae2dd9a

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/helper/class-ee-site.php

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2498,9 +2498,8 @@ public function sync( $args, $assoc_args ) {
24982498
* $ ee site backup example.com --list
24992499
*/
25002500
public function backup( $args, $assoc_args ) {
2501-
$args = auto_site_name( $args, 'site', __FUNCTION__ );
2502-
$this->site_data = get_site_info( $args, true, true, true );
2503-
$backup_restore = new Site_Backup_Restore();
2501+
$args = auto_site_name( $args, 'site', __FUNCTION__ );
2502+
$backup_restore = new Site_Backup_Restore();
25042503
$backup_restore->backup( $args, $assoc_args );
25052504
}
25062505

@@ -2525,9 +2524,8 @@ public function backup( $args, $assoc_args ) {
25252524
*
25262525
*/
25272526
public function restore( $args, $assoc_args ) {
2528-
$args = auto_site_name( $args, 'site', __FUNCTION__ );
2529-
$this->site_data = get_site_info( $args, true, true, true );
2530-
$backup_restore = new Site_Backup_Restore();
2527+
$args = auto_site_name( $args, 'site', __FUNCTION__ );
2528+
$backup_restore = new Site_Backup_Restore();
25312529
$backup_restore->restore( $args, $assoc_args );
25322530
}
25332531

0 commit comments

Comments
 (0)