Version Description
Download this release
Release Info
Developer | simonwheatley |
Plugin | Exclude Pages |
Version | 1.51 |
Comparing to | |
See all releases |
Code changes from version 1.5 to 1.51
- exclude_pages.php +2 -1
- readme.txt +7 -3
exclude_pages.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Exclude Pages from Navigation
|
4 |
Plugin URI: http://wordpress.org/extend/plugins/exclude-pages/
|
5 |
Description: Provides a checkbox on the editing page which you can check to exclude pages from the primary navigation. IMPORTANT NOTE: This will remove the pages from any "consumer" side page listings, which may not be limited to your page navigation listings.
|
6 |
-
Version: 1.
|
7 |
Author: Simon Wheatley
|
8 |
Author URI: http://simonwheatley.co.uk/wordpress/
|
9 |
|
@@ -73,6 +73,7 @@ function ep_exclude_pages( & $pages )
|
|
73 |
|
74 |
// Reindex the array, for neatness
|
75 |
// SWFIXME: Is reindexing the array going to create a memory optimisation problem for large arrays of WP post/page objects?
|
|
|
76 |
$pages = array_values( $pages );
|
77 |
|
78 |
return $pages;
|
3 |
Plugin Name: Exclude Pages from Navigation
|
4 |
Plugin URI: http://wordpress.org/extend/plugins/exclude-pages/
|
5 |
Description: Provides a checkbox on the editing page which you can check to exclude pages from the primary navigation. IMPORTANT NOTE: This will remove the pages from any "consumer" side page listings, which may not be limited to your page navigation listings.
|
6 |
+
Version: 1.51
|
7 |
Author: Simon Wheatley
|
8 |
Author URI: http://simonwheatley.co.uk/wordpress/
|
9 |
|
73 |
|
74 |
// Reindex the array, for neatness
|
75 |
// SWFIXME: Is reindexing the array going to create a memory optimisation problem for large arrays of WP post/page objects?
|
76 |
+
if ( ! is_array( $pages ) ) $pages = (array) $pages;
|
77 |
$pages = array_values( $pages );
|
78 |
|
79 |
return $pages;
|
readme.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: simonwheatley
|
|
3 |
Donate link: http://www.simonwheatley.co.uk/wordpress-plugins/
|
4 |
Tags: get_pages, navigation, menu, exclude pages, hide pages
|
5 |
Requires at least: 2.2.3
|
6 |
-
Tested up to: 2.7
|
7 |
-
Stable tag: 1.
|
8 |
|
9 |
This plugin adds a checkbox, “include this page in menus”, uncheck this to exclude pages from the
|
10 |
page navigation that users see on your site.
|
@@ -26,11 +26,15 @@ Please [contact me](http://www.simonwheatley.co.uk/contact-me/) if you're comple
|
|
26 |
|
27 |
Exclude pages is incompatible with:
|
28 |
|
29 |
-
* [WP CSS Dropdown Menus
|
30 |
* [Phantom theme](http://wordpress.org/extend/themes/phantom) - This theme
|
31 |
|
32 |
== Change Log ==
|
33 |
|
|
|
|
|
|
|
|
|
34 |
= v1.5 2008/11/03 =
|
35 |
|
36 |
* ENHANCEMENT: Now compatible with WP 2.7-beta1
|
3 |
Donate link: http://www.simonwheatley.co.uk/wordpress-plugins/
|
4 |
Tags: get_pages, navigation, menu, exclude pages, hide pages
|
5 |
Requires at least: 2.2.3
|
6 |
+
Tested up to: 2.7.1
|
7 |
+
Stable tag: 1.51
|
8 |
|
9 |
This plugin adds a checkbox, “include this page in menus”, uncheck this to exclude pages from the
|
10 |
page navigation that users see on your site.
|
26 |
|
27 |
Exclude pages is incompatible with:
|
28 |
|
29 |
+
* [WP CSS Dropdown Menus](http://wordpress.org/extend/plugins/wordpress-css-drop-down-menu/)
|
30 |
* [Phantom theme](http://wordpress.org/extend/themes/phantom) - This theme
|
31 |
|
32 |
== Change Log ==
|
33 |
|
34 |
+
= v1.51 2009/4/23 =
|
35 |
+
|
36 |
+
* FIX: Was throwing an error when $pages turned out not to be an array. Thanks to (Sandra)[http://www.vinyltangerine.com/] for reporting this.
|
37 |
+
|
38 |
= v1.5 2008/11/03 =
|
39 |
|
40 |
* ENHANCEMENT: Now compatible with WP 2.7-beta1
|