Exclude Pages - Version 1.92

Version Description

Download this release

Release Info

Developer simonwheatley
Plugin Icon wp plugin Exclude Pages
Version 1.92
Comparing to
See all releases

Code changes from version 1.91 to 1.92

Files changed (2) hide show
  1. exclude_pages.php +4 -4
  2. readme.txt +8 -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.91
7
  Author: Simon Wheatley
8
  Author URI: http://simonwheatley.co.uk/wordpress/
9
 
@@ -196,15 +196,15 @@ function ep_update_exclusions( $post_ID ) {
196
  if ( $index !== false ) unset( $excluded_ids[$index] );
197
  }
198
  $excluded_ids_str = implode( EP_OPTION_SEP, $excluded_ids );
199
- ep_set_option( EP_OPTION_NAME, $excluded_ids_str, __( "Comma separated list of post and page IDs to exclude when returning pages from the get_pages function.", "exclude-pages" ) );
200
  }
201
 
202
  // Take an option, delete it if it exists, then add it.
203
- function ep_set_option( $name, $value, $description ) {
204
  // Delete option
205
  delete_option($name);
206
  // Insert option
207
- add_option($name, $value, $description);
208
  }
209
 
210
  /**
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.92
7
  Author: Simon Wheatley
8
  Author URI: http://simonwheatley.co.uk/wordpress/
9
 
196
  if ( $index !== false ) unset( $excluded_ids[$index] );
197
  }
198
  $excluded_ids_str = implode( EP_OPTION_SEP, $excluded_ids );
199
+ ep_set_option( EP_OPTION_NAME, $excluded_ids_str );
200
  }
201
 
202
  // Take an option, delete it if it exists, then add it.
203
+ function ep_set_option( $name, $value ) {
204
  // Delete option
205
  delete_option($name);
206
  // Insert option
207
+ add_option( $name, $value );
208
  }
209
 
210
  /**
readme.txt CHANGED
@@ -1,10 +1,10 @@
1
  === Exclude Pages ===
2
  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.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,6 +43,11 @@ Exclude pages is incompatible with:
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)
1
  === Exclude Pages ===
2
  Contributors: simonwheatley
3
+ Donate link: http://www.simonwheatley.co.uk/wordpress/
4
  Tags: get_pages, navigation, menu, exclude pages, hide pages
5
  Requires at least: 2.2.3
6
+ Tested up to: 3.4
7
+ Stable tag: 1.92
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.92 =
47
+
48
+ * BUGFIX: Fix deprecated notice when WP_DEBUG is true, thanks [hansfordmc](http://wordpress.org/support/topic/plugin-exclude-pages-cant-update-pages)
49
+ * Tested up to WordPress v3.3
50
+
51
  = v1.91 2011/08/26 =
52
 
53
  * BUGFIX: Prevent notice from appearing, thanks [Ray](http://wordpress.org/support/topic/notice-undefined-index-1)