| @@ -4,9 +4,9 @@ | ||
| 4 | 4 | * Description: The best contact form plugin for WordPress |
| 5 | 5 | * Plugin URI: https://weformspro.com/ |
| 6 | 6 | * Author: weForms |
| 7 | 7 | * Author URI: https://weformspro.com/ |
| 8 | - * Version: 1.6.7 | |
| 8 | + * Version: 1.4.8 | |
| 9 | 9 | * License: GPL2 or later |
| 10 | 10 | * License URI: https://www.gnu.org/licenses/gpl-2.0.html |
| 11 | 11 | * Text Domain: weforms |
| 12 | 12 | * Domain Path: /languages |
| @@ -54,9 +54,9 @@ | ||
| 54 | 54 | * Plugin version |
| 55 | 55 | * |
| 56 | 56 | * @var string |
| 57 | 57 | */ |
| 58 | - public $version = '1.6.7'; | |
| 58 | + public $version = '1.4.8'; | |
| 59 | 59 | |
| 60 | 60 | /** |
| 61 | 61 | * Form field value seperator |
| 62 | 62 | * |
| @@ -138,9 +138,8 @@ | ||
| 138 | 138 | public static function init() { |
| 139 | 139 | static $instance = false; |
| 140 | 140 | |
| 141 | 141 | if ( !$instance ) { |
| 142 | - self::log(); | |
| 143 | 142 | $instance = new WeForms(); |
| 144 | 143 | } |
| 145 | 144 | |
| 146 | 145 | return $instance; |
| @@ -369,16 +368,13 @@ | ||
| 369 | 368 | * @param string $msg |
| 370 | 369 | */ |
| 371 | 370 | public static function log( $type = '', $msg = '' ) { |
| 372 | 371 | |
| 373 | - if(file_exists(WP_CONTENT_DIR . '/weforms.log')){ | |
| 374 | - unlink(WP_CONTENT_DIR . '/weforms.log'); | |
| 375 | - } | |
| 376 | - return; | |
| 377 | 372 | // default we are turning the debug mood on, but can be turned off |
| 378 | 373 | if ( defined( 'WEFORMS_DEBUG_LOG' ) && false === WEFORMS_DEBUG_LOG ) { |
| 379 | 374 | return; |
| 380 | 375 | } |
| 376 | + | |
| 381 | 377 | $msg = sprintf( "[%s][%s] %s\n", date( 'd.m.Y h:i:s' ), $type, $msg ); |
| 382 | 378 | @error_log( $msg, 3, weforms_log_file_path() ); |
| 383 | 379 | } |
| 384 | 380 | |