PluginProbe
Polylang / 3.7.1
Polylang v3.7.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 +13 -9 2.93.7.1 View file →
@@ -9,20 +9,19 @@
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
15 - * Requires PHP: 5.6
13 + * Version: 3.7.1
14 + * Requires at least: 6.2
15 + * Requires PHP: 7.2
16 16 * Author: WP SYNTEX
17 17 * Author URI: https://polylang.pro
18 18 * Text Domain: polylang
19 - * Domain Path: /languages
20 19 * License: GPL v3 or later
21 20 * License URI: https://www.gnu.org/licenses/gpl-3.0.txt
22 21 *
23 22 * Copyright 2011-2019 Frédéric Demarle
24 - * Copyright 2019-2020 WP SYNTEX
23 + * Copyright 2019-2025 WP SYNTEX
25 24 *
26 25 * This program is free software: you can redistribute it and/or modify
27 26 * it under the terms of the GNU General Public License as published by
28 27 * the Free Software Foundation, either version 3 of the License, or
@@ -38,9 +37,9 @@
38 37 */
39 38
40 39 if ( ! defined( 'ABSPATH' ) ) {
41 40 exit; // Don't access directly.
42 -};
41 +}
43 42
44 43 if ( defined( 'POLYLANG_VERSION' ) ) {
45 44 // The user is attempting to activate a second plugin instance, typically Polylang and Polylang Pro.
46 45 require_once ABSPATH . 'wp-admin/includes/plugin.php';
@@ -52,14 +51,19 @@
52 51 exit;
53 52 }
54 53 } else {
55 54 // Go on loading the plugin
56 - define( 'POLYLANG_VERSION', '2.9' );
57 - define( 'PLL_MIN_WP_VERSION', '5.1' );
58 - define( 'PLL_MIN_PHP_VERSION', '5.6' );
55 + define( 'POLYLANG_VERSION', '3.7.1' );
56 + define( 'PLL_MIN_WP_VERSION', '6.2' );
57 + define( 'PLL_MIN_PHP_VERSION', '7.2' );
59 58
60 59 define( 'POLYLANG_FILE', __FILE__ );
61 60 define( 'POLYLANG_DIR', __DIR__ );
61 +
62 + // Whether we are using Polylang or Polylang Pro, get the filename of the plugin in use.
63 + if ( ! defined( 'POLYLANG_ROOT_FILE' ) ) {
64 + define( 'POLYLANG_ROOT_FILE', __FILE__ );
65 + }
62 66
63 67 if ( ! defined( 'POLYLANG_BASENAME' ) ) {
64 68 define( 'POLYLANG_BASENAME', plugin_basename( __FILE__ ) ); // Plugin name as known by WP.
65 69 require __DIR__ . '/vendor/autoload.php';