@@ -89,7 +89,9 @@ public static function deactivateForSingleSite(): void {
89
89
S3 \S3Options::deactivateForSingleSite ();
90
90
}
91
91
92
- public static function deactivate ( bool $ network_wide = null ): void {
92
+ public static function deactivate (
93
+ bool $ network_wide = false ,
94
+ ): void {
93
95
if ( $ network_wide ) {
94
96
global $ wpdb ;
95
97
@@ -127,7 +129,9 @@ public static function activateForSingleSite(): void {
127
129
S3 \S3Options::activateForSingleSite ();
128
130
}
129
131
130
- public static function activate ( bool $ network_wide = null ): void {
132
+ public static function activate (
133
+ bool $ network_wide = false ,
134
+ ): void {
131
135
if ( $ network_wide ) {
132
136
global $ wpdb ;
133
137
@@ -505,8 +509,8 @@ public static function enqueueJobs( ?int $post_id = null ): void {
505
509
}
506
510
507
511
public static function adminSetAddonState (
508
- string $ addon_slug = null ,
509
- bool $ enabled = null ,
512
+ ? string $ addon_slug = null ,
513
+ bool $ enabled = false ,
510
514
): void {
511
515
if ( defined ( 'WP_CLI ' ) ) {
512
516
if ( ! $ addon_slug ) {
@@ -555,7 +559,9 @@ public static function adminSetAddonState(
555
559
}
556
560
}
557
561
558
- public static function adminToggleAddon ( string $ addon_slug = null ): void {
562
+ public static function adminToggleAddon (
563
+ ?string $ addon_slug = null ,
564
+ ): void {
559
565
if ( defined ( 'WP_CLI ' ) ) {
560
566
if ( ! $ addon_slug ) {
561
567
throw WsLog::ex (
@@ -683,7 +689,7 @@ public static function runHeadless(): void {
683
689
684
690
public static function invalidateSingleURLCache (
685
691
int $ post_id = 0 ,
686
- WP_Post $ post = null
692
+ ? WP_Post $ post = null ,
687
693
): void {
688
694
if ( ! $ post ) {
689
695
return ;
0 commit comments