| @@ -9,10 +9,10 @@ | ||
| 9 | 9 | * @wordpress-plugin |
| 10 | 10 | * Plugin Name: Polylang |
| 11 | 11 | * Plugin URI: https://polylang.pro |
| 12 | 12 | * Description: Adds multilingual capability to WordPress |
| 13 | - * Version: 2.9 | |
| 14 | - * Requires at least: 5.1 | |
| 13 | + * Version: 3.1.4 | |
| 14 | + * Requires at least: 5.4 | |
| 15 | 15 | * Requires PHP: 5.6 |
| 16 | 16 | * Author: WP SYNTEX |
| 17 | 17 | * Author URI: https://polylang.pro |
| 18 | 18 | * Text Domain: polylang |
| @@ -20,9 +20,9 @@ | ||
| 20 | 20 | * License: GPL v3 or later |
| 21 | 21 | * License URI: https://www.gnu.org/licenses/gpl-3.0.txt |
| 22 | 22 | * |
| 23 | 23 | * Copyright 2011-2019 Frédéric Demarle |
| 24 | - * Copyright 2019-2020 WP SYNTEX | |
| 24 | + * Copyright 2019-2022 WP SYNTEX | |
| 25 | 25 | * |
| 26 | 26 | * This program is free software: you can redistribute it and/or modify |
| 27 | 27 | * it under the terms of the GNU General Public License as published by |
| 28 | 28 | * the Free Software Foundation, either version 3 of the License, or |
| @@ -52,14 +52,19 @@ | ||
| 52 | 52 | exit; |
| 53 | 53 | } |
| 54 | 54 | } else { |
| 55 | 55 | // Go on loading the plugin |
| 56 | - define( 'POLYLANG_VERSION', '2.9' ); | |
| 57 | - define( 'PLL_MIN_WP_VERSION', '5.1' ); | |
| 56 | + define( 'POLYLANG_VERSION', '3.1.4' ); | |
| 57 | + define( 'PLL_MIN_WP_VERSION', '5.4' ); | |
| 58 | 58 | define( 'PLL_MIN_PHP_VERSION', '5.6' ); |
| 59 | 59 | |
| 60 | 60 | define( 'POLYLANG_FILE', __FILE__ ); |
| 61 | 61 | define( 'POLYLANG_DIR', __DIR__ ); |
| 62 | + | |
| 63 | + // Whether we are using Polylang or Polylang Pro, get the filename of the plugin in use. | |
| 64 | + if ( ! defined( 'POLYLANG_ROOT_FILE' ) ) { | |
| 65 | + define( 'POLYLANG_ROOT_FILE', __FILE__ ); | |
| 66 | + } | |
| 62 | 67 | |
| 63 | 68 | if ( ! defined( 'POLYLANG_BASENAME' ) ) { |
| 64 | 69 | define( 'POLYLANG_BASENAME', plugin_basename( __FILE__ ) ); // Plugin name as known by WP. |
| 65 | 70 | require __DIR__ . '/vendor/autoload.php'; |