Version Description
Download this release
Release Info
Developer | simonwheatley |
Plugin | Exclude Pages |
Version | 1.91 |
Comparing to | |
See all releases |
Code changes from version 1.9 to 1.91
- exclude_pages.php +4 -3
- 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 |
|
@@ -172,12 +172,13 @@ function ep_get_excluded_ids() {
|
|
172 |
// one row seems more sensible.
|
173 |
function ep_update_exclusions( $post_ID ) {
|
174 |
// Bang (!) to reverse the polarity of the boolean, turning include into exclude
|
175 |
-
$exclude_this_page = ! (bool) $_POST['ep_this_page_included'];
|
176 |
// SWTODO: Also check for a hidden var, which confirms that this checkbox was present
|
177 |
// If hidden var not present, then default to including the page in the nav (i.e. bomb out here rather
|
178 |
// than add the page ID to the list of IDs to exclude)
|
179 |
$ctrl_present = (bool) @ $_POST['ep_ctrl_present'];
|
180 |
-
if ( ! $ctrl_present )
|
|
|
181 |
|
182 |
$excluded_ids = ep_get_excluded_ids();
|
183 |
// If we need to EXCLUDE the page from the navigation...
|
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.91
|
7 |
Author: Simon Wheatley
|
8 |
Author URI: http://simonwheatley.co.uk/wordpress/
|
9 |
|
172 |
// one row seems more sensible.
|
173 |
function ep_update_exclusions( $post_ID ) {
|
174 |
// Bang (!) to reverse the polarity of the boolean, turning include into exclude
|
175 |
+
$exclude_this_page = ! (bool) @ $_POST['ep_this_page_included'];
|
176 |
// SWTODO: Also check for a hidden var, which confirms that this checkbox was present
|
177 |
// If hidden var not present, then default to including the page in the nav (i.e. bomb out here rather
|
178 |
// than add the page ID to the list of IDs to exclude)
|
179 |
$ctrl_present = (bool) @ $_POST['ep_ctrl_present'];
|
180 |
+
if ( ! $ctrl_present )
|
181 |
+
return;
|
182 |
|
183 |
$excluded_ids = ep_get_excluded_ids();
|
184 |
// If we need to EXCLUDE the page from the navigation...
|
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: 3.
|
7 |
-
Stable tag: 1.
|
8 |
|
9 |
This plugin adds a checkbox, “include this page in menus”, uncheck this to exclude pages from the page navigation that users see on your site.
|
10 |
|
@@ -43,9 +43,13 @@ Exclude pages is incompatible with:
|
|
43 |
|
44 |
== Change Log ==
|
45 |
|
|
|
|
|
|
|
|
|
46 |
= v1.9 2010/6/16 =
|
47 |
|
48 |
-
* Tested with WP 3.
|
49 |
* ENHANCEMENT: Detects the use of WP menus and advises the user accordingly
|
50 |
|
51 |
= v1.8.4 2010/5/21 =
|
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: 3.2.1
|
7 |
+
Stable tag: 1.91
|
8 |
|
9 |
This plugin adds a checkbox, “include this page in menus”, uncheck this to exclude pages from the page navigation that users see on your site.
|
10 |
|
43 |
|
44 |
== Change Log ==
|
45 |
|
46 |
+
= v1.91 2011/08/26 =
|
47 |
+
|
48 |
+
* BUGFIX: Prevent notice from appearing, thanks [Ray](http://wordpress.org/support/topic/notice-undefined-index-1)
|
49 |
+
|
50 |
= v1.9 2010/6/16 =
|
51 |
|
52 |
+
* Tested with WP 3.2.1
|
53 |
* ENHANCEMENT: Detects the use of WP menus and advises the user accordingly
|
54 |
|
55 |
= v1.8.4 2010/5/21 =
|