Version Description
Download this release
Release Info
Developer | pmenard |
Plugin | Simply Exclude |
Version | 1.7.5 |
Comparing to | |
See all releases |
Code changes from version 1.7.2.1 to 1.7.5
- readme.txt +4 -3
- simplyexclude.php +72 -19
readme.txt
CHANGED
@@ -2,9 +2,9 @@
|
|
2 |
Contributors: Paul Menard
|
3 |
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.
|
6 |
-
Tested up to: 2.8
|
7 |
-
Stable tag: 1.7.
|
8 |
|
9 |
== Description ==
|
10 |
|
@@ -57,4 +57,5 @@ At the time (version 1.6.1) the plugin only effects Pages included in the tradit
|
|
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 |
1.7.2 - 2009-02.05 Fixed some PHP warning by checking variable is set. Also added style to 2.7 interface.
|
59 |
1.7.2.1 - 2009-07.01 Fixed some PHP warning by checking variable is set. Also added style for 2.8 interface. Very minor changes.
|
|
|
60 |
</p>
|
2 |
Contributors: Paul Menard
|
3 |
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.6
|
6 |
+
Tested up to: 2.8.1
|
7 |
+
Stable tag: 1.7.5
|
8 |
|
9 |
== Description ==
|
10 |
|
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 |
1.7.2 - 2009-02.05 Fixed some PHP warning by checking variable is set. Also added style to 2.7 interface.
|
59 |
1.7.2.1 - 2009-07.01 Fixed some PHP warning by checking variable is set. Also added style for 2.8 interface. Very minor changes.
|
60 |
+
1.7.5 - 2009-07.15 Fixed some PHP warning by checking variable is set. Also added style for 2.8 interface. Very minor changes.
|
61 |
</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
|
@@ -16,6 +16,8 @@ Revision history
|
|
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 |
1.7.2 - 2009-02.05 Fixed some PHP warning by checking variable is set. Also added style to 2.7 interface.
|
18 |
1.7.2.1 - 2009-07.01 Fixed some PHP warning by checking variable is set. Also added style for 2.8 interface. Very minor changes.
|
|
|
|
|
19 |
*/
|
20 |
|
21 |
class SimplyExclude
|
@@ -266,8 +268,22 @@ class SimplyExclude
|
|
266 |
function se_add_nav()
|
267 |
{
|
268 |
// Add a new menu under Manage:
|
269 |
-
add_options_page('Simply Exclude', 'Simply Exclude', 8,
|
270 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
271 |
}
|
272 |
|
273 |
function se_admin_head()
|
@@ -338,6 +354,54 @@ class SimplyExclude
|
|
338 |
<?php
|
339 |
}
|
340 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
341 |
|
342 |
function se_display_navigation($se_admin)
|
343 |
{
|
@@ -394,6 +458,7 @@ class SimplyExclude
|
|
394 |
{
|
395 |
//echo "_REQUEST<pre>"; print_r($_REQUEST); echo "</pre>";
|
396 |
?>
|
|
|
397 |
<h2>Manage Category Exclusions</h2>
|
398 |
<?php
|
399 |
if ($se_admin['action'] == "save_categories")
|
@@ -449,9 +514,7 @@ class SimplyExclude
|
|
449 |
$this->display_instructions('cats');
|
450 |
?>
|
451 |
<form name="cat_exclusion" id="cat_exclusion"
|
452 |
-
action="?page
|
453 |
-
echo $this->options_key ?>&se_admin[action]=save_categories" method="post">
|
454 |
-
|
455 |
<table class="widefat" width="80%" cellpadding="0" cellspacing="2" border="0">
|
456 |
<thead>
|
457 |
<tr>
|
@@ -607,8 +670,7 @@ class SimplyExclude
|
|
607 |
$this->display_instructions('tags');
|
608 |
?>
|
609 |
<form name="tag_exclusion" id="tag_exclusion"
|
610 |
-
action="?page
|
611 |
-
echo $this->options_key ?>&se_admin[action]=save_tags" method="post">
|
612 |
|
613 |
<table class="widefat" width="80%" cellpadding="3" cellspacing="3" border="0">
|
614 |
<thead>
|
@@ -756,8 +818,7 @@ class SimplyExclude
|
|
756 |
$this->display_instructions('authors');
|
757 |
?>
|
758 |
<form name="author_exclusion" id="author_exclusion"
|
759 |
-
action="?page
|
760 |
-
echo $this->options_key ?>&se_admin[action]=save_authors" method="post">
|
761 |
|
762 |
<table class="widefat" width="80%" cellpadding="0" cellspacing="2" border="0">
|
763 |
<thead>
|
@@ -861,15 +922,6 @@ class SimplyExclude
|
|
861 |
// END CONFIG FUNCTIONS
|
862 |
/////////////////////////////////////////////////////////////////
|
863 |
|
864 |
-
|
865 |
-
|
866 |
-
|
867 |
-
|
868 |
-
|
869 |
-
|
870 |
-
|
871 |
-
|
872 |
-
|
873 |
// PAGE FUNCTIONS
|
874 |
/////////////////////////////////////////////////////////////////
|
875 |
function se_display_pages_panel($se_admin)
|
@@ -1278,6 +1330,7 @@ class SimplyExclude
|
|
1278 |
{
|
1279 |
|
1280 |
?>
|
|
|
1281 |
<p>Set the checkbox to exclude the respective page from the action</p>
|
1282 |
<p>So what is the difference between Exclusion and Inclusion?<br />
|
1283 |
<strong>Exclude</strong>: Select this action to exclude Pages from WP
|
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.5
|
8 |
Author URI: http://www.codehooligans.com
|
9 |
|
10 |
Revision history
|
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 |
1.7.2 - 2009-02.05 Fixed some PHP warning by checking variable is set. Also added style to 2.7 interface.
|
18 |
1.7.2.1 - 2009-07.01 Fixed some PHP warning by checking variable is set. Also added style for 2.8 interface. Very minor changes.
|
19 |
+
1.7.5 - 2009-07.15 Fixed some PHP warning by checking variable is set. Also added style for 2.8 interface. Very minor changes.
|
20 |
+
|
21 |
*/
|
22 |
|
23 |
class SimplyExclude
|
268 |
function se_add_nav()
|
269 |
{
|
270 |
// Add a new menu under Manage:
|
271 |
+
//add_options_page('Simply Exclude', 'Simply Exclude', 8,
|
272 |
+
// $this->options_key, array(&$this, 'se_manage_page'));
|
273 |
+
|
274 |
+
add_menu_page( 'Simply Exclude', 'Simply Exclude', 7, 'se_manage_categories', array(&$this, 'se_manage_categories'));
|
275 |
+
|
276 |
+
add_submenu_page( 'se_manage_categories', 'Exclude Categories', 'Exclude Categories', 7,
|
277 |
+
'se_manage_categories', array(&$this, 'se_manage_categories'));
|
278 |
+
|
279 |
+
add_submenu_page( 'se_manage_categories', 'Exclude Tags', 'Exclude Tags', 7,
|
280 |
+
'se_manage_tags', array(&$this, 'se_manage_tags'));
|
281 |
+
|
282 |
+
add_submenu_page( 'se_manage_categories', 'Exclude Authors', 'Exclude Authors', 7,
|
283 |
+
'se_manage_authors', array(&$this, 'se_manage_authors'));
|
284 |
+
|
285 |
+
add_submenu_page( 'se_manage_categories', 'Exclude Pages', 'Exclude Pages', 7,
|
286 |
+
'se_manage_pages', array(&$this, 'se_manage_pages'));
|
287 |
}
|
288 |
|
289 |
function se_admin_head()
|
354 |
<?php
|
355 |
}
|
356 |
|
357 |
+
function se_manage_categories()
|
358 |
+
{
|
359 |
+
if (isset($_REQUEST['se_admin']))
|
360 |
+
{
|
361 |
+
$se_admin = $_REQUEST['se_admin'];
|
362 |
+
$se_admin['action'] = $_GET['se_admin']['action'];
|
363 |
+
}
|
364 |
+
?><div class="wrap"><?php
|
365 |
+
$this->se_display_categories_panel($se_admin);
|
366 |
+
?></div><?php
|
367 |
+
}
|
368 |
+
|
369 |
+
function se_manage_tags()
|
370 |
+
{
|
371 |
+
if (isset($_REQUEST['se_admin']))
|
372 |
+
{
|
373 |
+
$se_admin = $_REQUEST['se_admin'];
|
374 |
+
$se_admin['action'] = $_GET['se_admin']['action'];
|
375 |
+
}
|
376 |
+
?><div class="wrap"><?php
|
377 |
+
$this->se_display_tags_panel($se_admin);
|
378 |
+
?></div><?php
|
379 |
+
}
|
380 |
+
|
381 |
+
function se_manage_authors()
|
382 |
+
{
|
383 |
+
if (isset($_REQUEST['se_admin']))
|
384 |
+
{
|
385 |
+
$se_admin = $_REQUEST['se_admin'];
|
386 |
+
$se_admin['action'] = $_GET['se_admin']['action'];
|
387 |
+
}
|
388 |
+
?><div class="wrap"><?php
|
389 |
+
$this->se_display_authors_panel($se_admin);
|
390 |
+
?></div><?php
|
391 |
+
}
|
392 |
+
|
393 |
+
function se_manage_pages()
|
394 |
+
{
|
395 |
+
if (isset($_REQUEST['se_admin']))
|
396 |
+
{
|
397 |
+
$se_admin = $_REQUEST['se_admin'];
|
398 |
+
$se_admin['action'] = $_GET['se_admin']['action'];
|
399 |
+
}
|
400 |
+
?><div class="wrap"><?php
|
401 |
+
$this->se_display_pages_panel($se_admin);
|
402 |
+
?></div><?php
|
403 |
+
}
|
404 |
+
|
405 |
|
406 |
function se_display_navigation($se_admin)
|
407 |
{
|
458 |
{
|
459 |
//echo "_REQUEST<pre>"; print_r($_REQUEST); echo "</pre>";
|
460 |
?>
|
461 |
+
|
462 |
<h2>Manage Category Exclusions</h2>
|
463 |
<?php
|
464 |
if ($se_admin['action'] == "save_categories")
|
514 |
$this->display_instructions('cats');
|
515 |
?>
|
516 |
<form name="cat_exclusion" id="cat_exclusion"
|
517 |
+
action="?page=se_manage_categories&se_admin[action]=save_categories" method="post">
|
|
|
|
|
518 |
<table class="widefat" width="80%" cellpadding="0" cellspacing="2" border="0">
|
519 |
<thead>
|
520 |
<tr>
|
670 |
$this->display_instructions('tags');
|
671 |
?>
|
672 |
<form name="tag_exclusion" id="tag_exclusion"
|
673 |
+
action="?page=se_manage_tags&se_admin[action]=save_tags" method="post">
|
|
|
674 |
|
675 |
<table class="widefat" width="80%" cellpadding="3" cellspacing="3" border="0">
|
676 |
<thead>
|
818 |
$this->display_instructions('authors');
|
819 |
?>
|
820 |
<form name="author_exclusion" id="author_exclusion"
|
821 |
+
action="?page=se_manage_authors&se_admin[action]=save_authors" method="post">
|
|
|
822 |
|
823 |
<table class="widefat" width="80%" cellpadding="0" cellspacing="2" border="0">
|
824 |
<thead>
|
922 |
// END CONFIG FUNCTIONS
|
923 |
/////////////////////////////////////////////////////////////////
|
924 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
925 |
// PAGE FUNCTIONS
|
926 |
/////////////////////////////////////////////////////////////////
|
927 |
function se_display_pages_panel($se_admin)
|
1330 |
{
|
1331 |
|
1332 |
?>
|
1333 |
+
<p style="color: red"><strong>WARNING: There is a known conflict when excluding pages here and via the plugin Search Everything. The problem is related to how each plugin will modify the SQL query used by WordPress. If you are using Search Everything plugin please do not make any exclusions here.</p>
|
1334 |
<p>Set the checkbox to exclude the respective page from the action</p>
|
1335 |
<p>So what is the difference between Exclusion and Inclusion?<br />
|
1336 |
<strong>Exclude</strong>: Select this action to exclude Pages from WP
|