Nested Pages - Version 1.1.6

Version Description

  • Minor UI Improvements - Current admin page now highlighted
  • Page post type bug - now verfied before plugin activation
  • Multisite bug fixes
  • French Translation (Provided by Nico Mollet)
Download this release

Release Info

Developer kylephillips
Plugin Icon 128x128 Nested Pages
Version 1.1.6
Comparing to
See all releases

Code changes from version 1.1.5 to 1.1.6

includes/class-nestedpages.php CHANGED
@@ -29,11 +29,12 @@ class NestedPages {
29
  {
30
  $this->init();
31
  $this->formActions();
32
- add_action('init', array($this, 'addLocalization') );
 
 
33
  add_filter( 'plugin_action_links_' . 'wp-nested-pages/nestedpages.php', array($this, 'settingsLink' ) );
34
  }
35
 
36
-
37
  /**
38
  * Initialize Plugin
39
  */
@@ -41,13 +42,22 @@ class NestedPages {
41
  {
42
  new NP_Activate;
43
  new NP_Dependencies;
44
- new NP_PageListing;
45
  new NP_NewPage;
46
  new NP_Redirects;
47
  new NP_PostTypes;
48
  new NP_Settings;
49
  }
50
 
 
 
 
 
 
 
 
 
 
 
51
 
52
  /**
53
  * Set Form Actions & Handlers
@@ -86,4 +96,17 @@ class NestedPages {
86
  }
87
 
88
 
 
 
 
 
 
 
 
 
 
 
 
 
 
89
  }
29
  {
30
  $this->init();
31
  $this->formActions();
32
+ add_action( 'init', array($this, 'listPages') );
33
+ add_action( 'init', array($this, 'addLocalization') );
34
+ add_action( 'admin_init', array($this, 'verifyPostType') );
35
  add_filter( 'plugin_action_links_' . 'wp-nested-pages/nestedpages.php', array($this, 'settingsLink' ) );
36
  }
37
 
 
38
  /**
39
  * Initialize Plugin
40
  */
42
  {
43
  new NP_Activate;
44
  new NP_Dependencies;
 
45
  new NP_NewPage;
46
  new NP_Redirects;
47
  new NP_PostTypes;
48
  new NP_Settings;
49
  }
50
 
51
+ /**
52
+ * Page Listing
53
+ * @since 1.1.6 - Moved into init due to Multisite bug
54
+ */
55
+ public function listPages()
56
+ {
57
+ new NP_PageListing;
58
+ }
59
+
60
+
61
 
62
  /**
63
  * Set Form Actions & Handlers
96
  }
97
 
98
 
99
+ /**
100
+ * Check for the page post type before doing anything
101
+ */
102
+ public function verifyPostType()
103
+ {
104
+ if ( !get_post_type_object( 'page' ) ){
105
+ $plugin = dirname(dirname( __FILE__ ) ) . '/nestedpages.php';
106
+ deactivate_plugins( $plugin );
107
+ wp_die('<p>Nested Pages has been deactivated. This plugin requires the <strong>"page"</strong> post type to be enabled and available for use. Please disable any plugins that may be interfering with this post type and reactivate.</p>','Plugin Activation Error', array( 'response'=>200, 'back_link'=>TRUE ) );
108
+ }
109
+ }
110
+
111
+
112
  }
includes/class-np-activate.php CHANGED
@@ -22,7 +22,7 @@ class NP_Activate {
22
  */
23
  public function install()
24
  {
25
- $this->version = '1.1.5';
26
  new NP_ActivateUpgrades($this->version);
27
  $this->setVersion();
28
  $this->setOptions();
22
  */
23
  public function install()
24
  {
25
+ $this->version = '1.1.6';
26
  new NP_ActivateUpgrades($this->version);
27
  $this->setVersion();
28
  $this->setOptions();
includes/class-np-handler-sort.php CHANGED
@@ -35,9 +35,9 @@ class NP_SortHandler extends NP_BaseHandler {
35
  if ( $order ){
36
  $this->response = array('status' => 'success', 'message' => __('Page order successfully updated.','nestedpages') );
37
  } else {
38
- $this->response = array('status'=>'error', 'message'=> __('There was an order updating the page order.','nestedpages') );
39
  }
40
  }
41
 
42
 
43
- }
35
  if ( $order ){
36
  $this->response = array('status' => 'success', 'message' => __('Page order successfully updated.','nestedpages') );
37
  } else {
38
+ $this->response = array('status'=>'error', 'message'=> __('There was an error updating the page order.','nestedpages') );
39
  }
40
  }
41
 
42
 
43
+ }
includes/class-np-newpage.php CHANGED
@@ -15,6 +15,7 @@ class NP_NewPage {
15
  {
16
  add_action('admin_notices', array($this, 'showNotice'));
17
  add_action('admin_head', array($this, 'selectParent'));
 
18
  }
19
 
20
 
@@ -54,5 +55,21 @@ class NP_NewPage {
54
  }
55
  }
56
 
57
- }
58
- ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
15
  {
16
  add_action('admin_notices', array($this, 'showNotice'));
17
  add_action('admin_head', array($this, 'selectParent'));
18
+ add_action('admin_head', array($this, 'expandPagesMenu'));
19
  }
20
 
21
 
55
  }
56
  }
57
 
58
+ /**
59
+ * Expand the Pages submenu
60
+ */
61
+ public function expandPagesMenu()
62
+ {
63
+ $page = get_current_screen();
64
+ if ( ($page->id == 'page') && ($page->action == 'add') ){
65
+ echo '<script>jQuery(document).ready(function(){jQuery("#toplevel_page_nestedpages").removeClass("wp-not-current-submenu").addClass("wp-has-current-submenu").addClass("wp-menu-open");jQuery("#toplevel_page_nestedpages a:first").addClass("wp-has-current-submenu");var addnew = jQuery("#toplevel_page_nestedpages ul li:nth-child(3)");jQuery(addnew).addClass("current");jQuery(addnew).children("a").addClass("current");});</script>';
66
+ }
67
+ if ( $page->id == 'edit-page' ){
68
+ echo '<script>jQuery(document).ready(function(){jQuery("#toplevel_page_nestedpages").removeClass("wp-not-current-submenu").addClass("wp-has-current-submenu").addClass("wp-menu-open");jQuery("#toplevel_page_nestedpages a:first").addClass("wp-has-current-submenu");var addnew = jQuery("#toplevel_page_nestedpages ul li:nth-child(4)");jQuery(addnew).addClass("current");jQuery(addnew).children("a").addClass("current");});</script>';
69
+ }
70
+ if ( $page->id == 'toplevel_page_nestedpages' ){
71
+ echo '<script>jQuery(document).ready(function(){jQuery("#toplevel_page_nestedpages").removeClass("wp-not-current-submenu").addClass("wp-has-current-submenu").addClass("wp-menu-open");jQuery("#toplevel_page_nestedpages a:first").addClass("wp-has-current-submenu");var addnew = jQuery("#toplevel_page_nestedpages ul li:nth-child(2)");jQuery(addnew).addClass("current");jQuery(addnew).children("a").addClass("current");});</script>';
72
+ }
73
+ }
74
+
75
+ }
includes/class-np-pagelisting.php CHANGED
@@ -45,7 +45,7 @@ class NP_PageListing {
45
  public function __construct()
46
  {
47
  $this->post_repo = new NP_PostRepository;
48
- $this->post_type = get_post_type_object('page');
49
  add_action( 'admin_menu', array($this, 'adminMenu') );
50
  add_action( 'admin_menu', array($this, 'submenu') );
51
  }
@@ -70,6 +70,16 @@ class NP_PageListing {
70
  }
71
 
72
 
 
 
 
 
 
 
 
 
 
 
73
  /**
74
  * Add Submenu
75
  */
45
  public function __construct()
46
  {
47
  $this->post_repo = new NP_PostRepository;
48
+ $this->setPostType();
49
  add_action( 'admin_menu', array($this, 'adminMenu') );
50
  add_action( 'admin_menu', array($this, 'submenu') );
51
  }
70
  }
71
 
72
 
73
+ /**
74
+ * Set the Post Type & verify it exists
75
+ * @since 1.1.16
76
+ */
77
+ private function setPostType()
78
+ {
79
+ $this->post_type = get_post_type_object('page');
80
+ }
81
+
82
+
83
  /**
84
  * Add Submenu
85
  */
languages/nestedpages-fr_FR.mo ADDED
Binary file
languages/nestedpages-fr_FR.po ADDED
@@ -0,0 +1,341 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: Nested Pages\n"
4
+ "POT-Creation-Date: 2014-11-20 20:17-0500\n"
5
+ "PO-Revision-Date: 2014-12-02 23:31+0100\n"
6
+ "Last-Translator: Nicolas Mollet <nico.mollet@gmail.com>\n"
7
+ "Language-Team: \n"
8
+ "MIME-Version: 1.0\n"
9
+ "Content-Type: text/plain; charset=UTF-8\n"
10
+ "Content-Transfer-Encoding: 8bit\n"
11
+ "X-Generator: Poedit 1.5.4\n"
12
+ "X-Poedit-Basepath: ..\n"
13
+ "X-Poedit-SourceCharset: UTF-8\n"
14
+ "X-Poedit-KeywordsList: __;_e;_n:1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;esc_attr__;"
15
+ "esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c;_n_noop:1,2;"
16
+ "_nx_noop:3c,1,2;__ngettext_noop:1,2\n"
17
+ "X-Poedit-SearchPath-0: .\n"
18
+
19
+ #: includes/class-nestedpages.php:85
20
+ msgid "Settings"
21
+ msgstr "Réglages"
22
+
23
+ #: includes/class-np-confirmation.php:58
24
+ msgid "pages moved to the Trash"
25
+ msgstr "pages mises à la corbeille"
26
+
27
+ #: includes/class-np-confirmation.php:60
28
+ msgid "page moved to the Trash"
29
+ msgstr "page mise à la corbeille"
30
+
31
+ #: includes/class-np-confirmation.php:65
32
+ msgid "Undo"
33
+ msgstr "Annuler"
34
+
35
+ #: includes/class-np-confirmation.php:80
36
+ msgid "pages"
37
+ msgstr "pages"
38
+
39
+ #: includes/class-np-confirmation.php:80
40
+ msgid "page"
41
+ msgstr "page"
42
+
43
+ #: includes/class-np-confirmation.php:81
44
+ msgid "restored from trash"
45
+ msgstr "rétablies de la corbeille"
46
+
47
+ #: includes/class-np-confirmation.php:90
48
+ msgid "Link successfully deleted."
49
+ msgstr "Lien supprimé."
50
+
51
+ #: includes/class-np-dependencies.php:77 views/pages.php:18
52
+ msgid "Expand Pages"
53
+ msgstr "Développer les Pages"
54
+
55
+ #: includes/class-np-dependencies.php:78
56
+ msgid "Collapse Pages"
57
+ msgstr "Fermer les Pages"
58
+
59
+ #: includes/class-np-dependencies.php:79 views/pages.php:34
60
+ msgid "Show Hidden"
61
+ msgstr "Afficher les pages cachées"
62
+
63
+ #: includes/class-np-dependencies.php:80
64
+ msgid "Hide Hidden"
65
+ msgstr "Masquer les pages cachées"
66
+
67
+ #: includes/class-np-dependencies.php:81 views/link-form.php:14
68
+ #: views/pages.php:9 views/pages.php:10
69
+ msgid "Add Link"
70
+ msgstr "Ajouter un lien"
71
+
72
+ #: includes/class-np-dependencies.php:82
73
+ msgid "Add Child Link"
74
+ msgstr "Ajouter un lien enfant"
75
+
76
+ #: includes/class-np-handler-base.php:64
77
+ msgid "Incorrect Form Field"
78
+ msgstr "Champ incorrect"
79
+
80
+ #: includes/class-np-handler-base.php:94
81
+ msgid "There was an error updating the page."
82
+ msgstr "Une erreur s'est produite lors de l'enregistrement de la page."
83
+
84
+ #: includes/class-np-handler-newredirect.php:40
85
+ #: includes/class-np-handler-quickedit-redirect.php:36
86
+ msgid "Link successfully updated"
87
+ msgstr "Lien mis à jour"
88
+
89
+ #: includes/class-np-handler-quickedit.php:38
90
+ msgid "Post successfully updated"
91
+ msgstr "Article mis à jour"
92
+
93
+ #: includes/class-np-handler-sort.php:36
94
+ msgid "Page order successfully updated."
95
+ msgstr "Ordre des pages mis à jour."
96
+
97
+ #: includes/class-np-handler-sort.php:38
98
+ msgid "There was an order updating the page order."
99
+ msgstr ""
100
+ "Une erreur s'est produite lors de l'enregistrement de l'ordre des pages."
101
+
102
+ #: includes/class-np-handler-syncmenu.php:32
103
+ msgid "Menu sync enabled."
104
+ msgstr "Synchronisation des menus activée."
105
+
106
+ #: includes/class-np-handler-syncmenu.php:35
107
+ msgid "Menu sync disabled."
108
+ msgstr "Synchronisation des menus désactivée."
109
+
110
+ #: includes/class-np-newpage.php:42
111
+ msgid "Adding child page under:"
112
+ msgstr "Ajouter une page enfant sous :"
113
+
114
+ #: includes/class-np-pagelisting.php:79
115
+ msgid "All Pages"
116
+ msgstr "Toutes les pages"
117
+
118
+ #: includes/class-np-pagelisting.php:80
119
+ msgid "Add New"
120
+ msgstr "Ajouter"
121
+
122
+ #: includes/class-np-pagelisting.php:81
123
+ msgid "Default Pages"
124
+ msgstr "Pages par défaut"
125
+
126
+ #: includes/class-np-posttypes.php:21
127
+ msgid "Redirects"
128
+ msgstr "Redirections"
129
+
130
+ #: includes/class-np-posttypes.php:22
131
+ msgid "Redirect"
132
+ msgstr "Redirection"
133
+
134
+ #: includes/class-np-redirects.php:65
135
+ msgid "Nested Pages"
136
+ msgstr "Arborescence"
137
+
138
+ #: includes/class-np-repository-post.php:58 views/quickedit.php:20
139
+ msgid "Title"
140
+ msgstr "Titre"
141
+
142
+ #: includes/class-np-repository-post.php:298
143
+ msgid "Label"
144
+ msgstr "Libellé"
145
+
146
+ #: includes/class-np-validation.php:49 includes/class-np-validation.php:64
147
+ msgid "Please provide a valid date."
148
+ msgstr "Renseignez une date valide."
149
+
150
+ #: includes/class-np-validation.php:76
151
+ msgid "Please provide a menu title."
152
+ msgstr "Renseignez un titre de menu."
153
+
154
+ #: includes/class-np-validation.php:79
155
+ msgid "Please provide a valid URL."
156
+ msgstr "Renseignez une URL valide."
157
+
158
+ #: includes/class-np-validation.php:90
159
+ msgid "Please provide a "
160
+ msgstr "Renseignez : "
161
+
162
+ #: views/link-form.php:31 views/quickedit-redirect.php:17
163
+ #: views/quickedit.php:148
164
+ msgid "Navigation Label"
165
+ msgstr "Libellé de navigation"
166
+
167
+ #: views/link-form.php:36 views/quickedit-redirect.php:22
168
+ msgid "URL"
169
+ msgstr "URL"
170
+
171
+ #: views/link-form.php:41 views/quickedit-redirect.php:27
172
+ #: views/quickedit.php:58
173
+ msgid "Status"
174
+ msgstr "Statut"
175
+
176
+ #: views/link-form.php:44 views/pages.php:33 views/quickedit-redirect.php:30
177
+ #: views/quickedit.php:61
178
+ msgid "Published"
179
+ msgstr "Publié"
180
+
181
+ #: views/link-form.php:45 views/quickedit-redirect.php:31
182
+ #: views/quickedit.php:62
183
+ msgid "Scheduled"
184
+ msgstr "Planifié"
185
+
186
+ #: views/link-form.php:47 views/quickedit-redirect.php:33
187
+ #: views/quickedit.php:64
188
+ msgid "Pending Review"
189
+ msgstr "En attente de relecture"
190
+
191
+ #: views/link-form.php:48 views/quickedit-redirect.php:34
192
+ #: views/quickedit.php:65
193
+ msgid "Draft"
194
+ msgstr "Brouillon"
195
+
196
+ #: views/link-form.php:59 views/quickedit-redirect.php:54
197
+ #: views/quickedit.php:164
198
+ msgid "Hide in Nav Menu"
199
+ msgstr "Masquer dans le Menu"
200
+
201
+ #: views/link-form.php:64 views/quickedit-redirect.php:60
202
+ #: views/quickedit.php:105
203
+ msgid "Hide in Nested Pages"
204
+ msgstr "Masquer dans l'arborescence"
205
+
206
+ #: views/link-form.php:69 views/quickedit-redirect.php:66
207
+ #: views/quickedit.php:170
208
+ msgid "Open link in a new window/tab"
209
+ msgstr "Ouvrir le lien dans une nouvelle fenêtre/onglet"
210
+
211
+ #: views/link-form.php:80
212
+ msgid "Close"
213
+ msgstr "Fermer"
214
+
215
+ #: views/link-form.php:83
216
+ msgid "Save Link"
217
+ msgstr "Enregistrer le lien"
218
+
219
+ #: views/pages.php:24
220
+ msgid "Sync Menu"
221
+ msgstr "Synchroniser le Menu"
222
+
223
+ #: views/pages.php:32
224
+ msgid "All"
225
+ msgstr "Tout"
226
+
227
+ #: views/pages.php:37
228
+ msgid "Trash"
229
+ msgstr "Corbeille"
230
+
231
+ #: views/pages.php:40
232
+ msgid "Default"
233
+ msgstr "Défaut"
234
+
235
+ #: views/quickedit-redirect.php:8
236
+ msgid "Link"
237
+ msgstr "Lien"
238
+
239
+ #: views/quickedit-redirect.php:44 views/quickedit.php:152
240
+ msgid "Title Attribute"
241
+ msgstr "Attribut de titre"
242
+
243
+ #: views/quickedit-redirect.php:48 views/quickedit.php:156
244
+ msgid "CSS Classes"
245
+ msgstr "Classes CSS"
246
+
247
+ #: views/quickedit-redirect.php:81 views/quickedit.php:184
248
+ msgid "Cancel"
249
+ msgstr "Annuler"
250
+
251
+ #: views/quickedit-redirect.php:84 views/quickedit.php:187
252
+ msgid "Update"
253
+ msgstr "Mettre à jour"
254
+
255
+ #: views/quickedit.php:11 views/row-redirect.php:53 views/row.php:94
256
+ msgid "Quick Edit"
257
+ msgstr "Modification rapide"
258
+
259
+ #: views/quickedit.php:24
260
+ msgid "Slug"
261
+ msgstr "Identifiant"
262
+
263
+ #: views/quickedit.php:28
264
+ msgid "Date"
265
+ msgstr "Date"
266
+
267
+ #: views/quickedit.php:49
268
+ msgid "Author"
269
+ msgstr "Auteur"
270
+
271
+ #: views/quickedit.php:73
272
+ msgid "Template"
273
+ msgstr "Modèle"
274
+
275
+ #: views/quickedit.php:75
276
+ msgid "Default Template"
277
+ msgstr "Modèle par défaut"
278
+
279
+ #: views/quickedit.php:82
280
+ msgid "Password"
281
+ msgstr "Mot de passe"
282
+
283
+ #: views/quickedit.php:85
284
+ msgid "&ndash;OR&ndash;"
285
+ msgstr "&ndash;OU&ndash;"
286
+
287
+ #: views/quickedit.php:88
288
+ msgid "Private"
289
+ msgstr "Privé"
290
+
291
+ #: views/quickedit.php:97
292
+ msgid "Allow Comments"
293
+ msgstr "Autoriser les commentaires"
294
+
295
+ #: views/quickedit.php:113
296
+ msgid "Menu Options"
297
+ msgstr "Options du Menu"
298
+
299
+ #: views/quickedit.php:115
300
+ msgid "Taxonomies"
301
+ msgstr "Taxonomies"
302
+
303
+ #: views/row-redirect.php:30 views/row.php:33
304
+ msgid "Hidden"
305
+ msgstr "Masqué"
306
+
307
+ #: views/row.php:41
308
+ msgid "currently editing"
309
+ msgstr "en cours de modification"
310
+
311
+ #: views/row.php:43
312
+ msgid "Edit"
313
+ msgstr "Modifier"
314
+
315
+ #: views/row.php:66
316
+ msgid "Add Child"
317
+ msgstr "Ajouter une page enfant"
318
+
319
+ #: views/row.php:98
320
+ msgid "View"
321
+ msgstr "Voir"
322
+
323
+ #: views/settings.php:2
324
+ msgid "Nested Pages Settings"
325
+ msgstr "Réglages d'Arborescence"
326
+
327
+ #: views/settings.php:8
328
+ msgid "Nested Pages Version"
329
+ msgstr "Version de Nested Pages"
330
+
331
+ #: views/settings.php:12
332
+ msgid "Menu Name"
333
+ msgstr "Nom du menu"
334
+
335
+ #: views/settings.php:15
336
+ msgid ""
337
+ "Important: Once the menu name has changed, theme files should be updated to "
338
+ "reference the new name."
339
+ msgstr ""
340
+ "Important : une fois que le nom du menu est changé, les fichiers du thème "
341
+ "doivent mettre à jour la référence vers le nouveau nom."
nestedpages.php CHANGED
@@ -3,7 +3,7 @@
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 maintaining quick edit functionality.
6
- Version: 1.1.5
7
  Author: Kyle Phillips
8
  Author URI: https://github.com/kylephillips
9
  Text Domain: nestedpages
@@ -36,13 +36,15 @@ function nestedpages_check_versions( $wp = '3.9', $php = '5.3.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
  deactivate_plugins( basename( __FILE__ ) );
42
 
43
- wp_die('<p><strong>Nested Pages</strong> plugin requires'.$flag.' version '.$version.' or greater.</p>','Plugin Activation Error', array( 'response'=>200, 'back_link'=>TRUE ) );
44
  }
45
 
 
46
  if( !class_exists('NestedPages') ) :
47
  require_once('includes/class-nestedpages.php');
48
  $nested_pages = new NestedPages;
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 maintaining quick edit functionality.
6
+ Version: 1.1.6
7
  Author: Kyle Phillips
8
  Author URI: https://github.com/kylephillips
9
  Text Domain: nestedpages
36
  global $wp_version;
37
  if ( version_compare( PHP_VERSION, $php, '<' ) ) $flag = 'PHP';
38
  elseif ( version_compare( $wp_version, $wp, '<' ) ) $flag = 'WordPress';
39
+ elseif ( !get_post_type_object( 'page' ) ) $flag = 'Page Post Type';
40
  else return;
41
  $version = 'PHP' == $flag ? $php : $wp;
42
  deactivate_plugins( basename( __FILE__ ) );
43
 
44
+ 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 ) );
45
  }
46
 
47
+
48
  if( !class_exists('NestedPages') ) :
49
  require_once('includes/class-nestedpages.php');
50
  $nested_pages = new NestedPages;
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://nestedpages.com/
4
  Tags: pages, admin, nested, tree view, page tree, sort, quick edit
5
  Requires at least: 3.8
6
  Tested up to: 4.0.1
7
- Stable tag: 1.1.4
8
 
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
@@ -25,6 +25,11 @@ For more information visit [nestedpages.com](http://nestedpages.com).
25
 
26
  **Nested Pages requires Wordpress version 3.8 or higher, and PHP version 5.3 or higher.**
27
 
 
 
 
 
 
28
  == Installation ==
29
 
30
  1. Upload wp-nested-pages to the wp-content/plugins/ directory
@@ -65,6 +70,12 @@ If you have Wordpress SEO by Yoast installed, your page score indicators are sho
65
 
66
  == Changelog ==
67
 
 
 
 
 
 
 
68
  = 1.1.5 =
69
  * Menu Sync bug fixes
70
  * Localization bug fixes
@@ -94,6 +105,9 @@ If you have Wordpress SEO by Yoast installed, your page score indicators are sho
94
 
95
  == Upgrade Notice ==
96
 
 
 
 
97
  = 1.1.5 =
98
  Various bug fixes in the menu system and localization.
99
 
4
  Tags: pages, admin, nested, tree view, page tree, sort, quick edit
5
  Requires at least: 3.8
6
  Tested up to: 4.0.1
7
+ Stable tag: 1.1.5
8
 
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
25
 
26
  **Nested Pages requires Wordpress version 3.8 or higher, and PHP version 5.3 or higher.**
27
 
28
+ **Languages:**
29
+
30
+ * English
31
+ * Français (Nico Mollet)
32
+
33
  == Installation ==
34
 
35
  1. Upload wp-nested-pages to the wp-content/plugins/ directory
70
 
71
  == Changelog ==
72
 
73
+ = 1.1.6 =
74
+ * Minor UI Improvements - Current admin page now highlighted
75
+ * Page post type bug - now verfied before plugin activation
76
+ * Multisite bug fixes
77
+ * French Translation (Provided by Nico Mollet)
78
+
79
  = 1.1.5 =
80
  * Menu Sync bug fixes
81
  * Localization bug fixes
105
 
106
  == Upgrade Notice ==
107
 
108
+ = 1.1.6 =
109
+ Minor UI enhancements and bug fixes.
110
+
111
  = 1.1.5 =
112
  Various bug fixes in the menu system and localization.
113