Version Description
Download this release
Release Info
Developer | pmenard |
Plugin | Simply Exclude |
Version | 1.7.1 |
Comparing to | |
See all releases |
Code changes from version 1.7 to 1.7.1
- readme.txt +2 -2
- simplyexclude.php +15 -2
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: http://www.codehooligans.com
|
|
4 |
Tags: admin, posts, pages, categories, tags, exclude, include, is_front, is_archive, is_search, is_feed
|
5 |
Requires at least: 2.3
|
6 |
Tested up to: 2.5.1
|
7 |
-
Stable tag: 1.7
|
8 |
|
9 |
== Description ==
|
10 |
|
@@ -54,5 +54,5 @@ At the time (version 1.6.1) the plugin only effects Pages included in the tradit
|
|
54 |
1.5 - 20008-04-27 Fixed display issues. Changes 'List' to 'Archive'. Added tags inclusion/exclusion login. Works only with WP 2.3 and greater.<br />
|
55 |
1.6 - 2008-05-22 Fixed various items. Added format display for Categories and Pages to reveal hierarchy, Disable plugin functions when searching in admin. This also corrected a display exclusion bug when showing categories and pages. <br />
|
56 |
1.7 - 2008-05-29 Added Author to the Include/Exclude logic. Now you can exclude Author's Posts from Search, Home, RSS, Archive.
|
57 |
-
|
58 |
</p>
|
4 |
Tags: admin, posts, pages, categories, tags, exclude, include, is_front, is_archive, is_search, is_feed
|
5 |
Requires at least: 2.3
|
6 |
Tested up to: 2.5.1
|
7 |
+
Stable tag: 1.7.1
|
8 |
|
9 |
== Description ==
|
10 |
|
54 |
1.5 - 20008-04-27 Fixed display issues. Changes 'List' to 'Archive'. Added tags inclusion/exclusion login. Works only with WP 2.3 and greater.<br />
|
55 |
1.6 - 2008-05-22 Fixed various items. Added format display for Categories and Pages to reveal hierarchy, Disable plugin functions when searching in admin. This also corrected a display exclusion bug when showing categories and pages. <br />
|
56 |
1.7 - 2008-05-29 Added Author to the Include/Exclude logic. Now you can exclude Author's Posts from Search, Home, RSS, Archive.
|
57 |
+
1.7.1 - 2008-07-16 Fixed an issue with WP 2.6 where it automatically decided to unserialize the option data structure.
|
58 |
</p>
|
simplyexclude.php
CHANGED
@@ -4,7 +4,7 @@ Plugin Name: Simply Exclude
|
|
4 |
Plugin URI: http://www.codehooligans.com/2008/04/27/simply-exclude-plugin/
|
5 |
Description: Provides an interface to selectively exclude/include categories, tags and page from the 4 actions used by WordPress. is_front, is_archive, is_search, is_feed.
|
6 |
Author: Paul Menard
|
7 |
-
Version: 1.7
|
8 |
Author URI: http://www.codehooligans.com
|
9 |
|
10 |
Revision history
|
@@ -13,6 +13,7 @@ Revision history
|
|
13 |
1.5 - 20008-04-27 Fixed display issues. Changes 'List' to 'Archive'. Added tags inclusion/exclusion login. Works only with WP 2.3 and greater.
|
14 |
1.6 - 2008-05-22 Fixed various items. Added format display for Categories and Pages to reveal heirarchy, Disable plugin functions when searching in admin. This also corrected a display exclusion bug when showing categories and pages.
|
15 |
1.7 - 2008-05-29 Added Author to the Include/Exclude logic. Now you can exclude Author's Posts from Search, Home, RSS, Archive.
|
|
|
16 |
*/
|
17 |
|
18 |
class SimplyExclude
|
@@ -201,12 +202,22 @@ class SimplyExclude
|
|
201 |
$this->default_IsActions['pages']['is_search']['action'] = "e";
|
202 |
|
203 |
$this->se_cfg['cfg']['page_name'] = "simplyexclude";
|
|
|
204 |
$tmp_se_cfg = get_option($this->options_key);
|
205 |
if ($tmp_se_cfg)
|
206 |
{
|
207 |
-
if (!is_array($tmp_se_cfg))
|
|
|
|
|
|
|
|
|
|
|
|
|
208 |
$this->se_cfg = unserialize($tmp_se_cfg);
|
|
|
|
|
209 |
}
|
|
|
210 |
$plugindir_node = dirname(plugin_basename(__FILE__));
|
211 |
$plugindir_url = get_bloginfo('wpurl') . "/wp-content/plugins/". $plugindir_node;
|
212 |
$this->se_cfg['cfg']['myurl'] = $plugindir_url;
|
@@ -367,11 +378,13 @@ class SimplyExclude
|
|
367 |
/////////////////////////////////////////////////////////////////
|
368 |
function se_display_categories_panel($se_admin)
|
369 |
{
|
|
|
370 |
?>
|
371 |
<h2>Manage Category Exclusions</h2>
|
372 |
<?php
|
373 |
if ($se_admin['action'] == "save_categories")
|
374 |
{
|
|
|
375 |
if (isset($se_admin['cats']))
|
376 |
$this->se_cfg['cats'] = $se_admin['cats'];
|
377 |
else
|
4 |
Plugin URI: http://www.codehooligans.com/2008/04/27/simply-exclude-plugin/
|
5 |
Description: Provides an interface to selectively exclude/include categories, tags and page from the 4 actions used by WordPress. is_front, is_archive, is_search, is_feed.
|
6 |
Author: Paul Menard
|
7 |
+
Version: 1.7.1
|
8 |
Author URI: http://www.codehooligans.com
|
9 |
|
10 |
Revision history
|
13 |
1.5 - 20008-04-27 Fixed display issues. Changes 'List' to 'Archive'. Added tags inclusion/exclusion login. Works only with WP 2.3 and greater.
|
14 |
1.6 - 2008-05-22 Fixed various items. Added format display for Categories and Pages to reveal heirarchy, Disable plugin functions when searching in admin. This also corrected a display exclusion bug when showing categories and pages.
|
15 |
1.7 - 2008-05-29 Added Author to the Include/Exclude logic. Now you can exclude Author's Posts from Search, Home, RSS, Archive.
|
16 |
+
1.7.1 - 2008-07-16 Fixed an issue with WP 2.6 where it automatically decided to unserialize the option data structure.
|
17 |
*/
|
18 |
|
19 |
class SimplyExclude
|
202 |
$this->default_IsActions['pages']['is_search']['action'] = "e";
|
203 |
|
204 |
$this->se_cfg['cfg']['page_name'] = "simplyexclude";
|
205 |
+
|
206 |
$tmp_se_cfg = get_option($this->options_key);
|
207 |
if ($tmp_se_cfg)
|
208 |
{
|
209 |
+
//if (!is_array($tmp_se_cfg))
|
210 |
+
// $this->se_cfg = unserialize($tmp_se_cfg);
|
211 |
+
|
212 |
+
// something new in WP 2.6.
|
213 |
+
// It might decide to unseralize the option data for you! Fuckers!!
|
214 |
+
// So check the return.
|
215 |
+
if (is_serialized($tmp_se_cfg))
|
216 |
$this->se_cfg = unserialize($tmp_se_cfg);
|
217 |
+
else
|
218 |
+
$this->se_cfg = $tmp_se_cfg;
|
219 |
}
|
220 |
+
|
221 |
$plugindir_node = dirname(plugin_basename(__FILE__));
|
222 |
$plugindir_url = get_bloginfo('wpurl') . "/wp-content/plugins/". $plugindir_node;
|
223 |
$this->se_cfg['cfg']['myurl'] = $plugindir_url;
|
378 |
/////////////////////////////////////////////////////////////////
|
379 |
function se_display_categories_panel($se_admin)
|
380 |
{
|
381 |
+
//echo "_REQUEST<pre>"; print_r($_REQUEST); echo "</pre>";
|
382 |
?>
|
383 |
<h2>Manage Category Exclusions</h2>
|
384 |
<?php
|
385 |
if ($se_admin['action'] == "save_categories")
|
386 |
{
|
387 |
+
//echo "se_admin<pre>"; print_r($se_admin); echo "</pre>";
|
388 |
if (isset($se_admin['cats']))
|
389 |
$this->se_cfg['cats'] = $se_admin['cats'];
|
390 |
else
|