Changeset 1403416
- Timestamp:
- 04/24/2016 08:39:25 PM (10 years ago)
- Location:
- quick-pagepost-redirect-plugin/trunk
- Files:
-
- 3 edited
-
js/qppr_frontend_script.min.js (modified) (1 diff)
-
page_post_redirect_plugin.php (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
quick-pagepost-redirect-plugin/trunk/js/qppr_frontend_script.min.js
r1224061 r1403416 1 !function(t){t(document).ready(function(){function e(t,e){return"undefined"!=typeof e[t]?"1":"undefined"!=typeof e[t.replace(a,"")]?"2":"undefined"!=typeof e[t.replace(n,"")]?"3":!1}var r=qpprFrontData.linkData,a=qpprFrontData.siteURL,n=qpprFrontData.siteURLq;t("a[href]").each(function(){var i=t(this),f="undefined"!=typeof t(this).attr("href")?t(this).attr("href"):"",l=e(f,r);if(l!==!1){var o="undefined"!=typeof t(this).attr("rel")?t(this).attr("rel"):"",p=("undefined"!=typeof t(this).attr("target")?t(this).attr("target"):"",!1),h=!1,c="",d=f;if("1"==l?(p=r[f][0],h=r[f][1],c=r[f][2]):"2"==l?(p=r[f.replace(a,"")][0],h=r[f.replace(a,"")][1],c=r[f.replace(a,"")][2],d=f.replace(a,"")):"3"==l&&(p=r[f.replace(n,"")][0],h=r[f.replace(n,"")][1],c=r[f.replace(n,"")][2],d=f.replace(n,"")),p&&""===this.target&&(this.target="_blank"),h&&(""!==o&&"nofollow"!==o?t(this).attr("rel",o+" nofollow"):t(this).attr("rel","nofollow")),""!=c){t(this).attr("href",c);var s=i.html();s=s.replace(d,c),i.html(s)}}})})}(jQuery); 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); -
quick-pagepost-redirect-plugin/trunk/page_post_redirect_plugin.php
r1332090 r1403416 7 7 Author URI: http://www.anadnet.com/ 8 8 Donate link: 9 Version: 5.1. 79 Version: 5.1.8 10 10 Text Domain: quick-pagepost-redirect-plugin 11 11 Domain Path: /lang … … 72 72 73 73 function __construct() { 74 $this->ppr_curr_version = '5.1. 7';74 $this->ppr_curr_version = '5.1.8'; 75 75 $this->ppr_nofollow = array(); 76 76 $this->ppr_newindow = array(); -
quick-pagepost-redirect-plugin/trunk/readme.txt
r1332096 r1403416 7 7 License URI: http://www.gnu.org/licenses/gpl-2.0.html 8 8 Tested up to: 4.3.1 9 Stable tag: 5.1. 79 Stable tag: 5.1.8 10 10 11 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 12 13 13 == Description == 14 **Current Version 5.1. 7**14 **Current Version 5.1.8** 15 15 16 16 This plugin has two redirect functionalities - **"Quick Redirects"** and **"Individual Redirects"**: … … 183 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 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. 185 187 = 5.1.7 = 186 188 * **Bug Fix:** Fixed Post redirects bug caused by 5.1.6
Note: See TracChangeset
for help on using the changeset viewer.