Skip to content

Commit 9b45bf0

Browse files
committed
Only deploy when we are enabled.
1 parent 374b62a commit 9b45bf0

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

src/Controller.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public function run() : void {
1717
'wp2static_deploy',
1818
[ $this, 'deploy' ],
1919
15,
20-
1
20+
2
2121
);
2222

2323
add_action(
@@ -238,7 +238,11 @@ public static function renderS3Page() : void {
238238
}
239239

240240

241-
public function deploy( string $processed_site_path ) : void {
241+
public function deploy( string $processed_site_path, string $enabled_deployer ) : void {
242+
if ( $enabled_deployer !== 'wp2static-addon-s3' ) {
243+
return;
244+
}
245+
242246
\WP2Static\WsLog::l( 'S3 Addon deploying' );
243247

244248
$s3_deployer = new Deployer();

0 commit comments

Comments
 (0)