Quick Page/Post Redirect Plugin - Version 1.6.1

Version Description

  • Small fix to correct the same problem as 1.6 for Category and Archive pages (9/1/2009)
Download this release

Release Info

Developer prophecy2040
Plugin Icon 128x128 Quick Page/Post Redirect Plugin
Version 1.6.1
Comparing to
See all releases

Code changes from version 1.6 to 1.6.1

Files changed (2) hide show
  1. page_post_redirect_plugin.php +4 -3
  2. readme.txt +3 -1
page_post_redirect_plugin.php CHANGED
@@ -5,10 +5,11 @@ Plugin URI: http://fischercreativemedia.com/wordpress-plugins/quick-pagepost-red
5
  Description: Redirect Pages or Posts to another location quickly. Adds a redirect box to the page or post edit page where you can specify the redirect Location and type. Location can be to another WordPress page/post or an external URL. UPDATE: Page or post NO LONGER needs to be published for this to work correctly - however you do need to publish it and then save it as a draft so WordPress creates the proper meta for it.
6
  Author: Don Fischer
7
  Author URI: http://www.fischercreativemedia.com/
8
- Version: 1.6
9
 
10
  Version info:
11
- 1.6 - Fix wrongfull redirect when the first blog post on home page (main blog page) has a redirect set up - this was redirecting the
 
12
  entire page incorrectly. (9/1/2009)
13
  1.5 - Re-Write plugin core function to hook WP at a later time to take advantage of the POST function - no sense re-creating the wheel.
14
  Can have page/post as draft and still redirect - but ONLY after the post/page has first been published and
@@ -56,7 +57,7 @@ Version info:
56
 
57
  function ppr_do_redirect(){
58
  global $post,$wp_query,$ppr_url,$ppr_active,$ppr_url,$ppr_type;
59
- if(!$wp_query->is_home):
60
  $thisidis_current= $post->ID;
61
  $ppr_active=get_post_meta($thisidis_current,'pprredirect_active',true);
62
  $ppr_url=get_post_meta($thisidis_current,'pprredirect_url',true);
5
  Description: Redirect Pages or Posts to another location quickly. Adds a redirect box to the page or post edit page where you can specify the redirect Location and type. Location can be to another WordPress page/post or an external URL. UPDATE: Page or post NO LONGER needs to be published for this to work correctly - however you do need to publish it and then save it as a draft so WordPress creates the proper meta for it.
6
  Author: Don Fischer
7
  Author URI: http://www.fischercreativemedia.com/
8
+ Version: 1.6.1
9
 
10
  Version info:
11
+ 1.6.1 - Small fix to correct the same problem as 1.6 for Category and Archive pages (9/1/2009)
12
+ 1.6 - Fix wrongful redirect when the first blog post on home page (main blog page) has a redirect set up - this was redirecting the
13
  entire page incorrectly. (9/1/2009)
14
  1.5 - Re-Write plugin core function to hook WP at a later time to take advantage of the POST function - no sense re-creating the wheel.
15
  Can have page/post as draft and still redirect - but ONLY after the post/page has first been published and
57
 
58
  function ppr_do_redirect(){
59
  global $post,$wp_query,$ppr_url,$ppr_active,$ppr_url,$ppr_type;
60
+ if($wp_query->is_single):
61
  $thisidis_current= $post->ID;
62
  $ppr_active=get_post_meta($thisidis_current,'pprredirect_active',true);
63
  $ppr_url=get_post_meta($thisidis_current,'pprredirect_url',true);
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://fischercreativemedia.com/
4
  Tags: redirect, 301, 302, meta, post, plugin, page, forward, re-direct
5
  Requires at least: 2.5
6
  Tested up to: 2.8.4
7
- Stable tag: 1.6
8
 
9
  Redirect Pages/Posts to another page/post or external URL. Adds edit box to admin edit so user can specify the redirect Location and type.
10
 
@@ -67,6 +67,8 @@ Yes, you can, but you do not always need to. If you are redirecting to an extern
67
 
68
 
69
  == Changelog ==
 
 
70
  = 1.6 =
71
  * Fixed wrongfull redirect when the first blog post on home page (main blog page) has a redirect set up - this was redirecting the entire page incorrectly. This was only an issue with the first post on a page. (9/1/2009)
72
  = 1.5 =
4
  Tags: redirect, 301, 302, meta, post, plugin, page, forward, re-direct
5
  Requires at least: 2.5
6
  Tested up to: 2.8.4
7
+ Stable tag: 1.6.1
8
 
9
  Redirect Pages/Posts to another page/post or external URL. Adds edit box to admin edit so user can specify the redirect Location and type.
10
 
67
 
68
 
69
  == Changelog ==
70
+ = 1.6.1 =
71
+ * Small fix to correct the same problem as 1.6 for Category and Archive pages (9/1/2009)
72
  = 1.6 =
73
  * Fixed wrongfull redirect when the first blog post on home page (main blog page) has a redirect set up - this was redirecting the entire page incorrectly. This was only an issue with the first post on a page. (9/1/2009)
74
  = 1.5 =