| @@ -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: 3.0 | |
| 14 | - * Requires at least: 5.1 | |
| 13 | + * Version: 3.1 | |
| 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 |
| @@ -52,14 +52,19 @@ | ||
| 52 | 52 | exit; |
| 53 | 53 | } |
| 54 | 54 | } else { |
| 55 | 55 | // Go on loading the plugin |
| 56 | - define( 'POLYLANG_VERSION', '3.0' ); | |
| 57 | - define( 'PLL_MIN_WP_VERSION', '5.1' ); | |
| 56 | + define( 'POLYLANG_VERSION', '3.1' ); | |
| 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'; |