| @@ -9,11 +9,11 @@ | ||
| 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.8.2 | |
| 14 | - * Requires at least: 4.9 | |
| 15 | - * Requires PHP: 5.6 | |
| 13 | + * Version: 3.6.7 | |
| 14 | + * Requires at least: 6.2 | |
| 15 | + * Requires PHP: 7.0 | |
| 16 | 16 | * Author: WP SYNTEX |
| 17 | 17 | * Author URI: https://polylang.pro |
| 18 | 18 | * Text Domain: polylang |
| 19 | 19 | * Domain Path: /languages |
| @@ -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-2025 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 |
| @@ -38,9 +38,9 @@ | ||
| 38 | 38 | */ |
| 39 | 39 | |
| 40 | 40 | if ( ! defined( 'ABSPATH' ) ) { |
| 41 | 41 | exit; // Don't access directly. |
| 42 | -}; | |
| 42 | +} | |
| 43 | 43 | |
| 44 | 44 | if ( defined( 'POLYLANG_VERSION' ) ) { |
| 45 | 45 | // The user is attempting to activate a second plugin instance, typically Polylang and Polylang Pro. |
| 46 | 46 | require_once ABSPATH . 'wp-admin/includes/plugin.php'; |
| @@ -52,15 +52,20 @@ | ||
| 52 | 52 | exit; |
| 53 | 53 | } |
| 54 | 54 | } else { |
| 55 | 55 | // Go on loading the plugin |
| 56 | - define( 'POLYLANG_VERSION', '2.8.2' ); | |
| 57 | - define( 'PLL_MIN_WP_VERSION', '4.9' ); | |
| 58 | - define( 'PLL_MIN_PHP_VERSION', '5.6' ); | |
| 56 | + define( 'POLYLANG_VERSION', '3.6.7' ); | |
| 57 | + define( 'PLL_MIN_WP_VERSION', '6.2' ); | |
| 58 | + define( 'PLL_MIN_PHP_VERSION', '7.0' ); | |
| 59 | 59 | |
| 60 | 60 | define( 'POLYLANG_FILE', __FILE__ ); |
| 61 | 61 | define( 'POLYLANG_DIR', __DIR__ ); |
| 62 | 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 | + } | |
| 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'; |
| 66 | 71 | } |
| @@ -66,7 +71,8 @@ | ||
| 66 | 71 | } |
| 67 | 72 | |
| 68 | 73 | define( 'POLYLANG', ucwords( str_replace( '-', ' ', dirname( POLYLANG_BASENAME ) ) ) ); |
| 69 | 74 | |
| 70 | - require __DIR__ . '/include/class-polylang.php'; | |
| 71 | - new Polylang(); | |
| 75 | + if ( empty( $_GET['deactivate-polylang'] ) ) { // phpcs:ignore WordPress.Security.NonceVerification | |
| 76 | + new Polylang(); | |
| 77 | + } | |
| 72 | 78 | } |