PluginProbe
Templately – Elementor & Gutenberg Template Library: 6500+ Free & Pro Ready Templates And Cloud! / 3.4.5
Templately – Elementor & Gutenberg Template Library: 6500+ Free & Pro Ready Templates And Cloud! v3.4.5
3.7.5 3.7.4 3.7.3 3.7.2 1-final 3.7.1 3.7.0 3.6.8 3.6.7 3.6.6 3.6.5 3.6.4 3.6.3 3.6.2 3.6.1 3.0.3 3.0.4 3.0.5 3.0.6 3.0.7 3.0.8 3.0.9 3.1.0 3.1.1 3.1.10 All 111 releases
← All changes | includes/Core/Importer/Utils/LogHandler.php +3 -4 3.6.13.4.5 View file →
@@ -10,9 +10,9 @@
10 10 return $log_dir;
11 11 }
12 12
13 13 public static function get_log_file_path() {
14 - $session_id = SessionData::get_session_id();
14 + $session_id = Utils::get_session_id();
15 15 $log_dir = self::get_log_dir();
16 16 return trailingslashit($log_dir) . "fsi-$session_id.log";
17 17 }
18 18
@@ -27,11 +27,10 @@
27 27 if (!is_writable($upload_dir['basedir'])) {
28 28 return false;
29 29 }
30 30
31 - if ($session_id = SessionData::get_session_id()) {
32 - SessionData::set($session_id, 'log_type', 'file');
33 - }
31 + $data = ['log_type' => 'file'];
32 + Utils::update_session_data_by_id($data);
34 33
35 34 if (!is_dir($log_dir)) {
36 35 wp_mkdir_p($log_dir);
37 36 } else {