| @@ -1,12 +1,12 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | 3 | * Plugin Name: weForms |
| 4 | 4 | * Description: The best contact form plugin for WordPress |
| 5 | - * Plugin URI: https://weformspro.com/ | |
| 6 | - * Author: weForms | |
| 7 | - * Author URI: https://weformspro.com/ | |
| 8 | - * Version: 1.6.21 | |
| 5 | + * Plugin URI: https://wedevs.com/weforms/ | |
| 6 | + * Author: weDevs | |
| 7 | + * Author URI: https://wedevs.com/ | |
| 8 | + * Version: 1.4.3 | |
| 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 |
| @@ -12,9 +12,9 @@ | ||
| 12 | 12 | * Domain Path: /languages |
| 13 | 13 | */ |
| 14 | 14 | |
| 15 | 15 | /** |
| 16 | - * Copyright (c) 2020 weForms LLC (email: support@weformspro.com). All rights reserved. | |
| 16 | + * Copyright (c) 2017 weDevs LLC (email: info@wedevs.com). All rights reserved. | |
| 17 | 17 | * |
| 18 | 18 | * Released under the GPL license |
| 19 | 19 | * http://www.opensource.org/licenses/gpl-license.php |
| 20 | 20 | * |
| @@ -54,9 +54,9 @@ | ||
| 54 | 54 | * Plugin version |
| 55 | 55 | * |
| 56 | 56 | * @var string |
| 57 | 57 | */ |
| 58 | - public $version = '1.6.21'; | |
| 58 | + public $version = '1.4.3'; | |
| 59 | 59 | |
| 60 | 60 | /** |
| 61 | 61 | * Form field value seperator |
| 62 | 62 | * |
| @@ -98,8 +98,10 @@ | ||
| 98 | 98 | register_deactivation_hook( __FILE__, [ $this, 'deactivate' ] ); |
| 99 | 99 | |
| 100 | 100 | add_action( 'admin_init', [ $this, 'plugin_upgrades' ] ); |
| 101 | 101 | add_action( 'plugins_loaded', [ $this, 'init_plugin' ] ); |
| 102 | + | |
| 103 | + $this->init_appsero(); | |
| 102 | 104 | } |
| 103 | 105 | |
| 104 | 106 | /** |
| 105 | 107 | * Magic getter to bypass referencing plugin. |
| @@ -136,9 +138,8 @@ | ||
| 136 | 138 | public static function init() { |
| 137 | 139 | static $instance = false; |
| 138 | 140 | |
| 139 | 141 | if ( !$instance ) { |
| 140 | - self::log(); | |
| 141 | 142 | $instance = new WeForms(); |
| 142 | 143 | } |
| 143 | 144 | |
| 144 | 145 | return $instance; |
| @@ -367,16 +368,13 @@ | ||
| 367 | 368 | * @param string $msg |
| 368 | 369 | */ |
| 369 | 370 | public static function log( $type = '', $msg = '' ) { |
| 370 | 371 | |
| 371 | - if(file_exists(WP_CONTENT_DIR . '/weforms.log')){ | |
| 372 | - unlink(WP_CONTENT_DIR . '/weforms.log'); | |
| 373 | - } | |
| 374 | - return; | |
| 375 | 372 | // default we are turning the debug mood on, but can be turned off |
| 376 | 373 | if ( defined( 'WEFORMS_DEBUG_LOG' ) && false === WEFORMS_DEBUG_LOG ) { |
| 377 | 374 | return; |
| 378 | 375 | } |
| 376 | + | |
| 379 | 377 | $msg = sprintf( "[%s][%s] %s\n", date( 'd.m.Y h:i:s' ), $type, $msg ); |
| 380 | 378 | @error_log( $msg, 3, weforms_log_file_path() ); |
| 381 | 379 | } |
| 382 | 380 | |
| @@ -387,9 +385,9 @@ | ||
| 387 | 385 | * |
| 388 | 386 | * @return array |
| 389 | 387 | */ |
| 390 | 388 | public function plugin_action_links( $links ) { |
| 391 | - $links[] = '<a href="https://weformspro.com/?utm_source=weforms-action-link&utm_medium=textlink&utm_campaign=plugin-docs-link" target="_blank">' . __( 'Docs', 'weforms' ) . '</a>'; | |
| 389 | + $links[] = '<a href="https://wedevs.com/docs/weforms/?utm_source=weforms-action-link&utm_medium=textlink&utm_campaign=plugin-docs-link" target="_blank">' . __( 'Docs', 'weforms' ) . '</a>'; | |
| 392 | 390 | $links[] = '<a href="' . admin_url( 'admin.php?page=weforms' ) . '">' . __( 'Settings', 'weforms' ) . '</a>'; |
| 393 | 391 | |
| 394 | 392 | return $links; |
| 395 | 393 | } |