PluginProbe
Polylang / 2.5.2
Polylang v2.5.2
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 +21 -25 2.7.32.5.2 View file →
@@ -1,29 +1,24 @@
1 1 <?php
2 2
3 3 /**
4 - * Plugin Name: Polylang
5 - * Plugin URI: https://polylang.pro
6 - * Description: Adds multilingual capability to WordPress
7 - * Version: 2.7.3
8 - * Requires at least: 4.9
9 - * Requires PHP: 5.6
10 - * Author: WP SYNTEX
11 - * Author uri: https://polylang.pro
12 - * License: GPL v3 or later
13 - * License URI: https://www.gnu.org/licenses/gpl-3.0.html
14 - * Text Domain: polylang
15 - * Domain Path: /languages
4 +Plugin Name: Polylang
5 +Plugin URI: https://polylang.pro
6 +Version: 2.5.2
7 +Author: Frédéric Demarle
8 +Author uri: https://polylang.pro
9 +Description: Adds multilingual capability to WordPress
10 +Text Domain: polylang
11 +Domain Path: /languages
16 12 */
17 13
18 14 /*
19 15 * Copyright 2011-2019 Frédéric Demarle
20 - * Copyright 2019-2020 WP SYNTEX
21 16 *
22 - * This program is free software: you can redistribute it and/or modify
17 + * This program is free software; you can redistribute it and/or modify
23 18 * it under the terms of the GNU General Public License as published by
24 - * the Free Software Foundation, either version 3 of the License, or
25 - * (at your option) any later version.
19 + * the Free Software Foundation; either version 2 of the License, or
20 + * ( at your option ) any later version.
26 21 *
27 22 * This program is distributed in the hope that it will be useful,
28 23 * but WITHOUT ANY WARRANTY; without even the implied warranty of
29 24 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
@@ -29,9 +24,12 @@
29 24 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
30 25 * GNU General Public License for more details.
31 26 *
32 27 * You should have received a copy of the GNU General Public License
33 - * along with this program. If not, see <https://www.gnu.org/licenses/>.
28 + * along with this program; if not, write to the Free Software
29 + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
30 + * MA 02110-1301, USA.
31 + *
34 32 */
35 33
36 34 if ( ! defined( 'ABSPATH' ) ) {
37 35 exit; // don't access directly
@@ -54,11 +52,10 @@
54 52 deactivate_plugins( POLYLANG_BASENAME );
55 53 }
56 54 } else {
57 55 // Go on loading the plugin
58 - define( 'POLYLANG_VERSION', '2.7.3' );
59 - define( 'PLL_MIN_WP_VERSION', '4.9' );
60 - define( 'PLL_MIN_PHP_VERSION', '5.6' );
56 + define( 'POLYLANG_VERSION', '2.5.2' );
57 + define( 'PLL_MIN_WP_VERSION', '4.7' );
61 58
62 59 define( 'POLYLANG_FILE', __FILE__ ); // this file
63 60 define( 'POLYLANG_BASENAME', plugin_basename( POLYLANG_FILE ) ); // plugin name as known by WP
64 61 define( 'POLYLANG_DIR', dirname( POLYLANG_FILE ) ); // our directory
@@ -69,13 +66,12 @@
69 66 define( 'PLL_INC', POLYLANG_DIR . '/include' );
70 67 define( 'PLL_INSTALL_INC', POLYLANG_DIR . '/install' );
71 68 define( 'PLL_MODULES_INC', POLYLANG_DIR . '/modules' );
72 69 define( 'PLL_SETTINGS_INC', POLYLANG_DIR . '/settings' );
73 - define( 'PLL_PREFIX', 'pll_' );
74 70
75 - if ( file_exists( PLL_MODULES_INC . '/pro.php' ) ) {
71 + require_once PLL_INC . '/class-polylang.php';
72 +
73 + if ( file_exists( PLL_INC . '/class-polylang-pro.php' ) ) {
76 74 define( 'POLYLANG_PRO', true );
75 + require_once PLL_INC . '/class-polylang-pro.php';
77 76 }
78 -
79 - require_once PLL_INC . '/class-polylang.php';
80 - new Polylang();
81 77 }