Version Description
- Bug Fix: Used a different minified version for the qppr_frontend_script.min.js file after it received a false positive of being a Trojan. The 5.1.7 version is totally safe to use too. The false positive was caused due to the way the specific file was minified. This is a confirmation that nothing was infected or was acting as a trojan of any sort in any previous version.
Download this release
Release Info
Developer | anadnet |
Plugin | Quick Page/Post Redirect Plugin |
Version | 5.1.8 |
Comparing to | |
See all releases |
Code changes from version 5.1.7 to 5.1.8
- js/qppr_frontend_script.min.js +9 -1
- page_post_redirect_plugin.php +2 -2
- readme.txt +4 -2
js/qppr_frontend_script.min.js
CHANGED
@@ -1 +1,9 @@
|
|
1 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
;(function($){$(document).ready(function(){var newWindowArr=qpprFrontData.linkData;var root=qpprFrontData.siteURL;var qroot=qpprFrontData.siteURLq;$('a[href]').each(function(){var thisMatch=$(this);var href=typeof $(this).attr('href')!=='undefined'?$(this).attr('href'):'';var linkFound=qppr_in_array(href,newWindowArr);if(linkFound!==false){var rel='undefined'!==typeof $(this).attr('rel')?$(this).attr('rel'):'';var tar='undefined'!==typeof $(this).attr('target')?$(this).attr('target'):'';var doNW=false;var doNF=false;var rURL='';var hChk=href;if(linkFound=='1'){doNW=newWindowArr[href][0];doNF=newWindowArr[href][1];rURL=newWindowArr[href][2];}else if(linkFound=='2'){doNW=newWindowArr[href.replace(root,'')][0];doNF=newWindowArr[href.replace(root,'')][1];rURL=newWindowArr[href.replace(root,'')][2];hChk=href.replace(root,'');}else if(linkFound=='3'){doNW=newWindowArr[href.replace(qroot,'')][0];doNF=newWindowArr[href.replace(qroot,'')][1];rURL=newWindowArr[href.replace(qroot,'')][2];hChk=href.replace(qroot,'');}
|
2 |
+
if(doNW){if(this.target==='')
|
3 |
+
this.target="_blank";}
|
4 |
+
if(doNF){if(rel!==''&&rel!=='nofollow')
|
5 |
+
$(this).attr('rel',rel+' nofollow');else
|
6 |
+
$(this).attr('rel','nofollow');}
|
7 |
+
if(rURL!=''){$(this).attr('href',rURL);var newTxt=thisMatch.html();newTxt=newTxt.replace(hChk,rURL)
|
8 |
+
thisMatch.html(newTxt);}}});function qppr_in_array(needle,haystack){if('undefined'!==typeof haystack[needle]){return'1';}else if('undefined'!==typeof haystack[needle.replace(root,'')]){return'2';}else if('undefined'!==typeof haystack[needle.replace(qroot,'')]){return'3';}
|
9 |
+
return false;}});})(jQuery);
|
page_post_redirect_plugin.php
CHANGED
@@ -6,7 +6,7 @@ Description: Redirect Pages, Posts or Custom Post Types to another location quic
|
|
6 |
Author: anadnet
|
7 |
Author URI: http://www.anadnet.com/
|
8 |
Donate link:
|
9 |
-
Version: 5.1.
|
10 |
Text Domain: quick-pagepost-redirect-plugin
|
11 |
Domain Path: /lang
|
12 |
License: GPLv2 or later
|
@@ -71,7 +71,7 @@ class quick_page_post_reds {
|
|
71 |
public $pprptypes_ok;
|
72 |
|
73 |
function __construct() {
|
74 |
-
$this->ppr_curr_version = '5.1.
|
75 |
$this->ppr_nofollow = array();
|
76 |
$this->ppr_newindow = array();
|
77 |
$this->ppr_url = array();
|
6 |
Author: anadnet
|
7 |
Author URI: http://www.anadnet.com/
|
8 |
Donate link:
|
9 |
+
Version: 5.1.8
|
10 |
Text Domain: quick-pagepost-redirect-plugin
|
11 |
Domain Path: /lang
|
12 |
License: GPLv2 or later
|
71 |
public $pprptypes_ok;
|
72 |
|
73 |
function __construct() {
|
74 |
+
$this->ppr_curr_version = '5.1.8';
|
75 |
$this->ppr_nofollow = array();
|
76 |
$this->ppr_newindow = array();
|
77 |
$this->ppr_url = array();
|
readme.txt
CHANGED
@@ -6,12 +6,12 @@ Requires at least: 4.0
|
|
6 |
License: GPLv2 or later
|
7 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
8 |
Tested up to: 4.3.1
|
9 |
-
Stable tag: 5.1.
|
10 |
|
11 |
Easily redirect pages/posts or custom post types to another page/post or external URL by specifying the redirect URL and type (301, 302, 307, meta).
|
12 |
|
13 |
== Description ==
|
14 |
-
**Current Version 5.1.
|
15 |
|
16 |
This plugin has two redirect functionalities - **"Quick Redirects"** and **"Individual Redirects"**:
|
17 |
|
@@ -182,6 +182,8 @@ NO it isn't! Check the plugin FAQs/Help page for a more up to date list of Frequ
|
|
182 |
* THIS SECTION IS JUST TO KEEP TRACK OF TODO ITEMS FOR FUTURE UPDATES.
|
183 |
* Add New Window and No Follow to links where the URL has been rewritten. Currently if you rewrite the URL neither will work as they are referenced with the original URL, not the rewrite.
|
184 |
|
|
|
|
|
185 |
= 5.1.7 =
|
186 |
* **Bug Fix:** Fixed Post redirects bug caused by 5.1.6
|
187 |
|
6 |
License: GPLv2 or later
|
7 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
8 |
Tested up to: 4.3.1
|
9 |
+
Stable tag: 5.1.8
|
10 |
|
11 |
Easily redirect pages/posts or custom post types to another page/post or external URL by specifying the redirect URL and type (301, 302, 307, meta).
|
12 |
|
13 |
== Description ==
|
14 |
+
**Current Version 5.1.8**
|
15 |
|
16 |
This plugin has two redirect functionalities - **"Quick Redirects"** and **"Individual Redirects"**:
|
17 |
|
182 |
* THIS SECTION IS JUST TO KEEP TRACK OF TODO ITEMS FOR FUTURE UPDATES.
|
183 |
* Add New Window and No Follow to links where the URL has been rewritten. Currently if you rewrite the URL neither will work as they are referenced with the original URL, not the rewrite.
|
184 |
|
185 |
+
= 5.1.8 =
|
186 |
+
* **Bug Fix:** Used a different minified version for the qppr_frontend_script.min.js file after it received a false positive of being a Trojan. The 5.1.7 version is totally safe to use too. The false positive was caused due to the way the specific file was minified. This is a confirmation that nothing was infected or was acting as a trojan of any sort in any previous version.
|
187 |
= 5.1.7 =
|
188 |
* **Bug Fix:** Fixed Post redirects bug caused by 5.1.6
|
189 |
|