| @@ -13,9 +13,9 @@ | ||
| 13 | 13 | * @wordpress-plugin |
| 14 | 14 | * Plugin Name: WebberZone Top 10 |
| 15 | 15 | * Plugin URI: https://webberzone.com/plugins/top-10/ |
| 16 | 16 | * Description: Count daily and total visits per post and display the most popular posts based on the number of views |
| 17 | - * Version: 4.4.0 | |
| 17 | + * Version: 4.5.1 | |
| 18 | 18 | * Author: WebberZone |
| 19 | 19 | * Author URI: https://webberzone.com |
| 20 | 20 | * License: GPL-2.0+ |
| 21 | 21 | * License URI: http://www.gnu.org/licenses/gpl-2.0.txt |
| @@ -35,9 +35,9 @@ | ||
| 35 | 35 | * |
| 36 | 36 | * @since 3.1.0 |
| 37 | 37 | */ |
| 38 | 38 | if ( ! defined( 'TOP_TEN_VERSION' ) ) { |
| 39 | - define( 'TOP_TEN_VERSION', '4.4.0' ); | |
| 39 | + define( 'TOP_TEN_VERSION', '4.5.1' ); | |
| 40 | 40 | } |
| 41 | 41 | |
| 42 | 42 | /** |
| 43 | 43 | * Holds the filesystem directory path (with trailing slash) for Top 10 |
| @@ -163,9 +163,15 @@ | ||
| 163 | 163 | * |
| 164 | 164 | * @var string |
| 165 | 165 | */ |
| 166 | 166 | global $tptn_db_version; |
| 167 | -$tptn_db_version = '7.0'; | |
| 167 | +$tptn_db_version = '7.3'; | |
| 168 | + | |
| 169 | +// Load the Composer autoloader (includes the Freemius SDK). | |
| 170 | +$composer_autoload = plugin_dir_path( __FILE__ ) . 'vendor/autoload.php'; | |
| 171 | +if ( file_exists( $composer_autoload ) ) { | |
| 172 | + require_once $composer_autoload; | |
| 173 | +} | |
| 168 | 174 | |
| 169 | 175 | if ( ! function_exists( __NAMESPACE__ . '\\tptn_freemius' ) ) { |
| 170 | 176 | // Load Freemius. |
| 171 | 177 | require_once plugin_dir_path( __FILE__ ) . 'load-freemius.php'; |