Quick Page/Post Redirect Plugin - Version 5.0.1

Version Description

  • Fix to jQuery conflict issue.
Download this release

Release Info

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

Code changes from version 5.0 to 5.0.1

Files changed (2) hide show
  1. page_post_redirect_plugin.php +43 -35
  2. readme.txt +7 -4
page_post_redirect_plugin.php CHANGED
@@ -6,7 +6,7 @@ Description: Redirect Pages, Posts or Custom Post Types to another location quic
6
Author: Don Fischer
7
Author URI: http://www.fischercreativemedia.com/
8
Donate link: http://www.fischercreativemedia.com/donations/
9
- Version: 5.0
10
11
Version info:
12
See change log in readme.txt file.
@@ -237,49 +237,57 @@ jQuery(document).ready(function() {
237
if(jqvers >= 1.6){
238
jQuery('a').each(function (i) {
239
var tempfga = jQuery(this).attr('href');
240
- var tempfg = tempfga.replace(pprspoturl,'');
241
- var tempfg2 = tempfg.replace(/\//gi,'');
242
- var tempfg3 = tempfga.replace(/\//gi,'');
243
- var tempfh = jQuery(this).prop('rel');
244
- var tempfi = jQuery(this).prop('target');
245
- if(pprrewrite == '1'){
246
- pprnewurl = jQuery(this).attr('href',pprrewriteurl);
247
- }
248
- if(jQuery.inArray(tempfg2, pprNoFollArr) >= 0 || jQuery.inArray(tempfg3, pprNoFollArr) >= 0){
249
- if(tempfh =='' || tempfh =='undefined' ){
250
- jQuery(this).prop('rel','nofollow');
251
- }else{
252
- if(tempfh != 'nofollow' && tempfh.indexOf('nofollow') == -1){
253
- jQuery(this).prop('rel','nofollow '+tempfh);
254
}
255
}
256
- }
257
- if(jQuery.inArray(tempfg2,pprNewWinArr) >= 0 || jQuery.inArray(tempfg3, pprNewWinArr) >= 0){
258
- if(tempfi =='' || tempfi =='undefined'){jQuery(this).prop('target','_blank');}
259
}
260
});
261
}else{
262
jQuery('a').each(function (i) {
263
var tempfga = jQuery(this).attr('href');
264
- var tempfg = tempfga.replace(pprspoturl,'');
265
- var tempfg2 = tempfg.replace(/\//gi,'');
266
- var tempfg3 = tempfga.replace(/\//gi,'');
267
- var tempfh = jQuery(this).attr('rel');
268
- var tempfi = jQuery(this).attr('target');
269
- if(pprrewrite == '1'){
270
- pprnewurl = jQuery(this).attr('href',pprrewriteurl);
271
- }
272
- if(jQuery.inArray(tempfg2, pprNoFollArr) >= 0 || jQuery.inArray(tempfg3, pprNoFollArr) >= 0){
273
- if(tempfh =='' || tempfh =='undefined' ){
274
- jQuery(this).attr('rel','nofollow');
275
- }else{
276
- if(tempfh != 'nofollow' && tempfh.indexOf('nofollow') == -1){
277
- jQuery(this).attr('rel','nofollow '+tempfh);
278
}
279
}
280
- }
281
- if(jQuery.inArray(tempfg2,pprNewWinArr) >= 0 || jQuery.inArray(tempfg3, pprNewWinArr) >= 0){
282
- if(tempfi =='' || tempfi =='undefined'){jQuery(this).attr('target','_blank');}
283
}
284
});
285
}
6
Author: Don Fischer
7
Author URI: http://www.fischercreativemedia.com/
8
Donate link: http://www.fischercreativemedia.com/donations/
9
+ Version: 5.0.1
10
11
Version info:
12
See change log in readme.txt file.
237
if(jqvers >= 1.6){
238
jQuery('a').each(function (i) {
239
var tempfga = jQuery(this).attr('href');
240
+ if(tempfga != '' && typeof tempfga != 'undefined'){
241
+ var tempfg = tempfga.replace(pprspoturl,'');
242
+ var tempfg2 = tempfg.replace(/\//gi,'');
243
+ var tempfg3 = tempfga.replace(/\//gi,'');
244
+ var tempfh = jQuery(this).prop('rel');
245
+ var tempfi = jQuery(this).prop('target');
246
+ if(pprrewrite == '1'){
247
+ pprnewurl = jQuery(this).attr('href',pprrewriteurl);
248
+ }
249
+ if(jQuery.inArray(tempfg2, pprNoFollArr) >= 0 || jQuery.inArray(tempfg3, pprNoFollArr) >= 0){
250
+ if(tempfh =='' || tempfh =='undefined' ){
251
+ jQuery(this).prop('rel','nofollow');
252
+ }else{
253
+ if(tempfh != 'nofollow' && tempfh.indexOf('nofollow') == -1){
254
+ jQuery(this).prop('rel','nofollow '+tempfh);
255
+ }
256
}
257
+ jQuery(this).addClass('qppr-nf');
258
+ }
259
+ if(jQuery.inArray(tempfg2,pprNewWinArr) >= 0 || jQuery.inArray(tempfg3, pprNewWinArr) >= 0){
260
+ jQuery(this).addClass('qppr-nw');
261
+ if(tempfi =='' || tempfi =='undefined'){jQuery(this).prop('target','_blank');}
262
}
263
}
264
});
265
}else{
266
jQuery('a').each(function (i) {
267
var tempfga = jQuery(this).attr('href');
268
+ if(tempfga != '' && typeof tempfga != 'undefined'){
269
+ var tempfg = tempfga.replace(pprspoturl,'');
270
+ var tempfg2 = tempfg.replace(/\//gi,'');
271
+ var tempfg3 = tempfga.replace(/\//gi,'');
272
+ var tempfh = jQuery(this).attr('rel');
273
+ var tempfi = jQuery(this).attr('target');
274
+ if(pprrewrite == '1'){
275
+ pprnewurl = jQuery(this).attr('href',pprrewriteurl);
276
+ }
277
+ if(jQuery.inArray(tempfg2, pprNoFollArr) >= 0 || jQuery.inArray(tempfg3, pprNoFollArr) >= 0){
278
+ if(tempfh =='' || tempfh =='undefined' ){
279
+ jQuery(this).attr('rel','nofollow');
280
+ }else{
281
+ if(tempfh != 'nofollow' && tempfh.indexOf('nofollow') == -1){
282
+ jQuery(this).attr('rel','nofollow '+tempfh);
283
+ }
284
}
285
+ jQuery(this).addClass('qppr-nf');
286
+ }
287
+ if(jQuery.inArray(tempfg2,pprNewWinArr) >= 0 || jQuery.inArray(tempfg3, pprNewWinArr) >= 0){
288
+ jQuery(this).addClass('qppr-nw');
289
+ if(tempfi =='' || tempfi =='undefined'){jQuery(this).attr('target','_blank');}
290
}
291
}
292
});
293
}
readme.txt CHANGED
@@ -9,8 +9,8 @@ Stable tag: trunk
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. For PHP5+
10
11
== Description ==
12
-
13
- It adds an option box to the edit section where you can specify the redirect location and type of redirect that you want, temporary, permanent, or meta. See below for additional features added.
14
15
= Features: =
16
* Works with new WordPress menus
@@ -129,6 +129,9 @@ NO it isn't! Check the plugin FAQs/Help page for a more up to date list of Frequ
129
5. Summary of redirects plugin page.
130
131
== Changelog ==
132
= 5.0 =
133
* Added jQuery version check to ensure no problmes with themes forcing older versions of jQuery
134
* Added a few warning /info messages to Quick Redirects page.
@@ -228,5 +231,5 @@ NO it isn't! Check the plugin FAQs/Help page for a more up to date list of Frequ
228
* Initial Plugin creation (7/1/2009)
229
230
== Upgrade Notice ==
231
- = 5.0 =
232
- This upgrade contains fixes bugs for SSL Force installs and fixes PHP NOTICE/WARNING Messages on settings pages when no Quick Redirects are set up. Several new features have been added.
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. For PHP5+
10
11
== Description ==
12
+ Version 5.0.1.
13
+ This plugin adds adds an option box to the edit section where you can specify the redirect location and type of redirect that you want, temporary, permanent, or meta. See below for additional features added.
14
15
= Features: =
16
* Works with new WordPress menus
129
5. Summary of redirects plugin page.
130
131
== Changelog ==
132
+ = 5.0.1 =
133
+ * Fix to jQuery conflict issue.
134
+
135
= 5.0 =
136
* Added jQuery version check to ensure no problmes with themes forcing older versions of jQuery
137
* Added a few warning /info messages to Quick Redirects page.
231
* Initial Plugin creation (7/1/2009)
232
233
== Upgrade Notice ==
234
+ = 5.0.1 =
235
+ Fix to jQuery conlict in version 5.0 that caused some jQuery features to malfunction on frontend of site.