PluginProbe
Polylang / 3.1
Polylang v3.1
3.8.9 3.8.8 3.8.7 3.8.6 3.8.5 3.8.4 3.8.3 2.7 2.7.0.1 2.7.1 2.7.2 2.7.3 2.7.4 2.8 2.8.1 2.8.2 2.8.3 2.8.4 2.9 2.9.1 2.9.2 3.0 3.0.1 3.0.2 3.0.3 All 233 releases
← All changes | polylang.php +10 -5 2.93.1 View file →
@@ -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
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-2021 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' );
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';