PluginProbe ʕ •ᴥ•ʔ
Nested Pages / 3.2.9
Nested Pages v3.2.9
3.1.8 3.1.9 3.2.0 3.2.1 3.2.10 3.2.11 3.2.12 3.2.13 3.2.2 3.2.3 3.2.4 3.2.5 3.2.6 3.2.7 3.2.8 3.2.9 trunk 1.0 1.1 1.1.1 1.1.2 1.1.3 1.1.4 1.1.5 1.1.6 1.1.7 1.1.8 1.1.9 1.2.0 1.2.1 1.3.0 1.3.1 1.3.10 1.3.11 1.3.12 1.3.13 1.3.14 1.3.15 1.3.2 1.3.4 1.3.5 1.3.6 1.3.7 1.3.8 1.3.9 1.4.0 1.4.1 1.5.0 1.5.1 1.5.2 1.5.3 1.5.4 1.6.0 1.6.1 1.6.2 1.6.3 1.6.3.1 1.6.3.2 1.6.4 1.6.5 1.6.5.1 1.6.5.2 1.6.6 1.6.7 1.6.8 1.7.0 1.7.1 2.0.1 2.0.2 2.0.3 2.0.4 3.0.1 3.0.10 3.0.11 3.0.2 3.0.3 3.0.4 3.0.5 3.0.6 3.0.7 3.0.8 3.0.9 3.1.0 3.1.1 3.1.10 3.1.11 3.1.12 3.1.13 3.1.14 3.1.15 3.1.16 3.1.17 3.1.18 3.1.19 3.1.2 3.1.20 3.1.21 3.1.22 3.1.3 3.1.4 3.1.5 3.1.6 3.1.7
wp-nested-pages / nestedpages.php
wp-nested-pages Last commit date
app 1 year ago assets 1 year ago languages 6 years ago vendor 7 years ago composer.json 5 years ago nestedpages.php 1 year ago readme.txt 2 months ago
nestedpages.php
57 lines
1 <?php
2 /*
3 Plugin Name: Nested Pages
4 Plugin URI: http://nestedpages.com
5 Description: Provides an intuitive drag and drop interface for managing pages in the Wordpress admin, while enhancing quick edit. Includes an auto-generated menu to match the nested interface, support for all post types and more.
6 Version: 3.2.9
7 Author: Kyle Phillips
8 Author URI: https://github.com/kylephillips
9 Text Domain: wp-nested-pages
10 Domain Path: /languages/
11 License: GPLv2 or later.
12 Copyright: Kyle Phillips
13 */
14
15 /* Copyright 2024 Kyle Phillips (email : support@nestedpages.com)
16
17 This program is free software; you can redistribute it and/or modify
18 it under the terms of the GNU General Public License, version 2, as
19 published by the Free Software Foundation.
20
21 This program is distributed in the hope that it will be useful,
22 but WITHOUT ANY WARRANTY; without even the implied warranty of
23 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24 GNU General Public License for more details.
25
26 You should have received a copy of the GNU General Public License
27 along with this program; if not, write to the Free Software
28 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
29 */
30
31 /**
32 * Check Wordpress and PHP versions before instantiating plugin
33 */
34 register_activation_hook( __FILE__, 'nestedpages_check_versions' );
35 function nestedpages_check_versions( $wp = '3.9', $php = '5.4.0' ) {
36 global $wp_version;
37 if ( version_compare( PHP_VERSION, $php, '<' ) ) $flag = 'PHP';
38 elseif ( version_compare( $wp_version, $wp, '<' ) ) $flag = 'WordPress';
39 else return;
40 $version = 'PHP' == $flag ? $php : $wp;
41
42 if (function_exists('deactivate_plugins')){
43 deactivate_plugins( basename( __FILE__ ) );
44 }
45
46 wp_die('<p>The <strong>Nested Pages</strong> plugin requires'.$flag.' version '.$version.' or greater.</p>','Plugin Activation Error', array( 'response'=>200, 'back_link'=>TRUE ) );
47 }
48
49 if( !class_exists('Bootstrap') ) :
50 define('NESTEDPAGES_DIR', __DIR__);
51 define('NESTEDPAGES_URI', __FILE__);
52
53 nestedpages_check_versions();
54 require_once(NESTEDPAGES_DIR . '/vendor/autoload.php');
55 require_once(NESTEDPAGES_DIR . '/app/NestedPages.php');
56 NestedPages::init();
57 endif;