From ab433a98bb965827a935a63b2d3c09234f809f70 Mon Sep 17 00:00:00 2001 From: Marc Date: Thu, 29 Dec 2022 17:17:35 +1100 Subject: [PATCH] Update class-sc-config.php true for unlink $context causes a fatal error with PHP8. I'm not sure what the boolean was for but it doesn't seem necessary. --- inc/class-sc-config.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/inc/class-sc-config.php b/inc/class-sc-config.php index aa2ce27..f29dc74 100644 --- a/inc/class-sc-config.php +++ b/inc/class-sc-config.php @@ -179,7 +179,7 @@ public function write( $config, $force_network = false ) { // Delete network config if not network activated if ( 'config-network.php' !== $file_name ) { - @unlink( $config_dir . '/config-network.php', true ); + @unlink( $config_dir . '/config-network.php' ); } return true; @@ -217,7 +217,7 @@ public function clean_up() { delete_option( 'sc_simple_cache' ); } - @unlink( $config_dir . '/config-network.php', true ); + @unlink( $config_dir . '/config-network.php' ); if ( ! @unlink( $config_dir . '/' . $this->get_config_file_name() ) ) { return false;