Version Description
This upgrade contains new features and drastically reduces the plugin overhead on your site. It is strongly recommended that you updgrade.
Download this release
Release Info
Developer | prophecy2040 |
Plugin | Quick Page/Post Redirect Plugin |
Version | 4.1 |
Comparing to | |
See all releases |
Code changes from version 4.0.1 to 4.1
- page_post_redirect_plugin.php +11 -9
- readme.txt +3 -3
page_post_redirect_plugin.php
CHANGED
@@ -10,6 +10,7 @@ Version: 4.1
|
|
10 |
|
11 |
Version info:
|
12 |
See change log in readme.txt file.
|
|
|
13 |
|
14 |
Copyright (C) 2009-2011 Donald J. Fischer
|
15 |
|
@@ -108,7 +109,6 @@ class quick_page_post_reds {
|
|
108 |
add_filter( 'post_type_link', array($this, 'ppr_filter_page_links'), 20, 2 );
|
109 |
add_filter( 'get_permalink', array($this, 'ppr_filter_links'), 20, 2 );
|
110 |
}
|
111 |
-
|
112 |
if (isset( $_POST['submit_301']) ) {$this->quickppr_redirects = $this->save_redirects($_POST['quickppr_redirects']);$this->updatemsg ='Quick Redirects Updated.';} //if submitted, process the data
|
113 |
if (isset( $_REQUEST['settings-updated'] ) && $_REQUEST['settings-updated']=='true'){$this->updatemsg ='Settings Updated.';}
|
114 |
}
|
@@ -168,8 +168,10 @@ class quick_page_post_reds {
|
|
168 |
foreach($this->ppr_all_redir_array as $key=>$result){
|
169 |
$tempa['id']= $key;
|
170 |
$tempa['post_type'] = get_post_type( $key );
|
171 |
-
|
172 |
-
$
|
|
|
|
|
173 |
}
|
174 |
$tempReportArray[] = $tempa;
|
175 |
unset($tempa);
|
@@ -254,7 +256,7 @@ class quick_page_post_reds {
|
|
254 |
<td><label>Make ALL Rediects have <code>rel="nofollow"</code>? </label><input type="checkbox" name="ppr_override-nofollow" value="1"<?php if(get_option('ppr_override-nofollow')=='1'){echo ' checked="checked" ';} ?>/></td>
|
255 |
</tr>
|
256 |
<tr valign="top">
|
257 |
-
<td><label>Make ALL
|
258 |
</tr>
|
259 |
<tr valign="top">
|
260 |
<td><label>Make ALL Rediects this type: </label>
|
@@ -437,11 +439,11 @@ class quick_page_post_reds {
|
|
437 |
foreach($thetemp as $key){
|
438 |
// defaults
|
439 |
if(!isset($theArray[$key->post_id]['_pprredirect_rewritelink'])){$theArray[$key->post_id]['_pprredirect_rewritelink'] = 0;}
|
440 |
-
if(!isset($theArray[$key->post_id]['_pprredirect_url'])){$theArray[$key->post_id]['_pprredirect_url']
|
441 |
-
if(!isset($theArray[$key->post_id]['_pprredirect_type'] )){$theArray[$key->post_id]['_pprredirect_type']
|
442 |
if(!isset($theArray[$key->post_id]['_pprredirect_relnofollow'])){$theArray[$key->post_id]['_pprredirect_relnofollow'] = 0;}
|
443 |
if(!isset($theArray[$key->post_id]['_pprredirect_newwindow'] )) {$theArray[$key->post_id]['_pprredirect_newwindow'] = 0;}
|
444 |
-
if(!isset($theArray[$key->post_id]['_pprredirect_active'] )){$theArray[$key->post_id]['_pprredirect_active']
|
445 |
}
|
446 |
|
447 |
}
|
@@ -700,7 +702,7 @@ class quick_page_post_reds {
|
|
700 |
if($ppitems['_pprredirect_active'] == 1 && $this->pproverride_newwin =='1'){ // check override of NEW WINDOW
|
701 |
$ppr_newindow[] = $ppitems['post_id'];
|
702 |
}else{
|
703 |
-
if($ppitems['_pprredirect_active'] == 1 && $ppitems['_pprredirect_newwindow']
|
704 |
$ppr_newindow[] = $ppitems['post_id'];
|
705 |
}
|
706 |
}
|
@@ -879,7 +881,7 @@ class quick_page_post_reds {
|
|
879 |
|
880 |
if($this->pproverride_URL !=''){$theRedURL = $this->pproverride_URL;} // check override
|
881 |
|
882 |
-
if($theIsActives == '1' && $theNewWindow
|
883 |
$ppd->target = '_blank';
|
884 |
$ppd->classes[] = 'ppr-new-window';
|
885 |
}
|
10 |
|
11 |
Version info:
|
12 |
See change log in readme.txt file.
|
13 |
+
Version 3.2.4 to 4.0.1 are testing versions only
|
14 |
|
15 |
Copyright (C) 2009-2011 Donald J. Fischer
|
16 |
|
109 |
add_filter( 'post_type_link', array($this, 'ppr_filter_page_links'), 20, 2 );
|
110 |
add_filter( 'get_permalink', array($this, 'ppr_filter_links'), 20, 2 );
|
111 |
}
|
|
|
112 |
if (isset( $_POST['submit_301']) ) {$this->quickppr_redirects = $this->save_redirects($_POST['quickppr_redirects']);$this->updatemsg ='Quick Redirects Updated.';} //if submitted, process the data
|
113 |
if (isset( $_REQUEST['settings-updated'] ) && $_REQUEST['settings-updated']=='true'){$this->updatemsg ='Settings Updated.';}
|
114 |
}
|
168 |
foreach($this->ppr_all_redir_array as $key=>$result){
|
169 |
$tempa['id']= $key;
|
170 |
$tempa['post_type'] = get_post_type( $key );
|
171 |
+
if(count($result)>0){
|
172 |
+
foreach($result as $metakey => $metaval){
|
173 |
+
$tempa[$metakey] = $metaval;
|
174 |
+
}
|
175 |
}
|
176 |
$tempReportArray[] = $tempa;
|
177 |
unset($tempa);
|
256 |
<td><label>Make ALL Rediects have <code>rel="nofollow"</code>? </label><input type="checkbox" name="ppr_override-nofollow" value="1"<?php if(get_option('ppr_override-nofollow')=='1'){echo ' checked="checked" ';} ?>/></td>
|
257 |
</tr>
|
258 |
<tr valign="top">
|
259 |
+
<td><label>Make ALL Redirects open in a New Window? </label><input type="checkbox" name="ppr_override-newwindow" value="1"<?php if(get_option('ppr_override-newwindow')=='1'){echo ' checked="checked" ';} ?>/> <span>(Quick Redirect will open in a new Window).</span></td>
|
260 |
</tr>
|
261 |
<tr valign="top">
|
262 |
<td><label>Make ALL Rediects this type: </label>
|
439 |
foreach($thetemp as $key){
|
440 |
// defaults
|
441 |
if(!isset($theArray[$key->post_id]['_pprredirect_rewritelink'])){$theArray[$key->post_id]['_pprredirect_rewritelink'] = 0;}
|
442 |
+
if(!isset($theArray[$key->post_id]['_pprredirect_url'])){$theArray[$key->post_id]['_pprredirect_url'] = 'http://www.example.com';}
|
443 |
+
if(!isset($theArray[$key->post_id]['_pprredirect_type'] )){$theArray[$key->post_id]['_pprredirect_type'] = 302;}
|
444 |
if(!isset($theArray[$key->post_id]['_pprredirect_relnofollow'])){$theArray[$key->post_id]['_pprredirect_relnofollow'] = 0;}
|
445 |
if(!isset($theArray[$key->post_id]['_pprredirect_newwindow'] )) {$theArray[$key->post_id]['_pprredirect_newwindow'] = 0;}
|
446 |
+
if(!isset($theArray[$key->post_id]['_pprredirect_active'] )){$theArray[$key->post_id]['_pprredirect_active'] = 0;}
|
447 |
}
|
448 |
|
449 |
}
|
702 |
if($ppitems['_pprredirect_active'] == 1 && $this->pproverride_newwin =='1'){ // check override of NEW WINDOW
|
703 |
$ppr_newindow[] = $ppitems['post_id'];
|
704 |
}else{
|
705 |
+
if($ppitems['_pprredirect_active'] == 1 && $ppitems['_pprredirect_newwindow'] === '_blank'){
|
706 |
$ppr_newindow[] = $ppitems['post_id'];
|
707 |
}
|
708 |
}
|
881 |
|
882 |
if($this->pproverride_URL !=''){$theRedURL = $this->pproverride_URL;} // check override
|
883 |
|
884 |
+
if($theIsActives == '1' && $theNewWindow === '_blank'){
|
885 |
$ppd->target = '_blank';
|
886 |
$ppd->classes[] = 'ppr-new-window';
|
887 |
}
|
readme.txt
CHANGED
@@ -1,10 +1,10 @@
|
|
1 |
-
=== Quick Page/Post Redirect ===
|
2 |
Contributors: Don Fischer
|
3 |
Donate link: http://www.fischercreativemedia.com/wordpress-plugins/donate/
|
4 |
Tags: redirect, 301, 302, meta, post, plugin, page, forward, re-direct, nofollow, menu links, posts, pages, admin, 404, custom post types, nav menu
|
5 |
Requires at least: 2.5
|
6 |
-
Tested up to: 3.2
|
7 |
-
Stable tag:
|
8 |
|
9 |
Redirect Pages/Posts to another page/post or external URL. Has edit box as well as global options. Specify the redirect Location and type.
|
10 |
|
1 |
+
=== Quick Page/Post Redirect Plugin ===
|
2 |
Contributors: Don Fischer
|
3 |
Donate link: http://www.fischercreativemedia.com/wordpress-plugins/donate/
|
4 |
Tags: redirect, 301, 302, meta, post, plugin, page, forward, re-direct, nofollow, menu links, posts, pages, admin, 404, custom post types, nav menu
|
5 |
Requires at least: 2.5
|
6 |
+
Tested up to: 3.1.2
|
7 |
+
Stable tag: trunk
|
8 |
|
9 |
Redirect Pages/Posts to another page/post or external URL. Has edit box as well as global options. Specify the redirect Location and type.
|
10 |
|