WP Photo Album Plus - Version 6.6.21

Version Description

Download this release

Release Info

Developer opajaap
Plugin Icon wp plugin WP Photo Album Plus
Version 6.6.21
Comparing to
See all releases

Code changes from version 6.6.20 to 6.6.21

js/wppa-ajax-front.js CHANGED
@@ -3,7 +3,7 @@
3
  // Contains frontend ajax modules
4
  // Dependancies: wppa.js and default wp jQuery library
5
  //
6
- var wppaJsAjaxVersion = '6.6.19';
7
 
8
  var wppaRenderAdd = false;
9
  var wppaWaitForCounter = 0;
@@ -125,7 +125,10 @@ function wppaDoAjaxRender( mocc, ajaxurl, newurl, add, waitfor, addHilite ) {
125
  wppaUpdateLightboxes();
126
 
127
  // Update qrcode
128
- if ( typeof( wppaQRUpdate ) != 'undefined' ) wppaQRUpdate( newurl );
 
 
 
129
 
130
  // Run Autocol?
131
  wppaColWidth[mocc] = 0;
@@ -160,7 +163,7 @@ function wppaDoAjaxRender( mocc, ajaxurl, newurl, add, waitfor, addHilite ) {
160
  if ( ! wppaRenderModal ) {
161
  jQuery('html, body').animate({ scrollTop: jQuery("#wppa-container-"+mocc).offset().top - 32 - wppaStickyHeaderHeight }, 1000);
162
  }
163
-
164
  // Remove spinner
165
  jQuery( '#wppa-ajax-spin-'+mocc ).stop().fadeOut();
166
 
@@ -1064,6 +1067,7 @@ function wppaAjaxSetQrCodeSrc( url, elm ) {
1064
  timeout: 10000,
1065
  success: function( result, status, xhr ) {
1066
  document.getElementById( elm ).src = result;
 
1067
  },
1068
  error: function( xhr, status, error ) {
1069
  wppaConsoleLog( 'wppaAjaxSetQrCodeSrc failed. Error = ' + error + ', status = ' + status, 'force' );
3
  // Contains frontend ajax modules
4
  // Dependancies: wppa.js and default wp jQuery library
5
  //
6
+ var wppaJsAjaxVersion = '6.6.21';
7
 
8
  var wppaRenderAdd = false;
9
  var wppaWaitForCounter = 0;
125
  wppaUpdateLightboxes();
126
 
127
  // Update qrcode
128
+ if ( typeof( wppaQRUpdate ) != 'undefined' ) {
129
+ wppaConsoleLog( 'Ajax render asked qr code for '+newurl, 'force' );
130
+ wppaQRUpdate( newurl );
131
+ }
132
 
133
  // Run Autocol?
134
  wppaColWidth[mocc] = 0;
163
  if ( ! wppaRenderModal ) {
164
  jQuery('html, body').animate({ scrollTop: jQuery("#wppa-container-"+mocc).offset().top - 32 - wppaStickyHeaderHeight }, 1000);
165
  }
166
+
167
  // Remove spinner
168
  jQuery( '#wppa-ajax-spin-'+mocc ).stop().fadeOut();
169
 
1067
  timeout: 10000,
1068
  success: function( result, status, xhr ) {
1069
  document.getElementById( elm ).src = result;
1070
+ wppaConsoleLog( 'wppaAjaxSetQrCodeSrc put '+result+' into '+elm );
1071
  },
1072
  error: function( xhr, status, error ) {
1073
  wppaConsoleLog( 'wppaAjaxSetQrCodeSrc failed. Error = ' + error + ', status = ' + status, 'force' );
js/wppa-ajax-front.min.js CHANGED
@@ -4,7 +4,7 @@
4
  // Dependancies: wppa.js and default wp jQuery library
5
  //
6
 
7
- var wppaJsAjaxVersion='6.6.19';var wppaRenderAdd=false;var wppaWaitForCounter=0;function wppaDoAjaxRender(mocc,ajaxurl,newurl,add,waitfor,addHilite){if(parseInt(waitfor)>0&&waitfor!=wppaWaitForCounter){setTimeout('wppaDoAjaxRender( '+mocc+', \''+ajaxurl+'\', \''+newurl+'\', \''+add+'\', '+waitfor+' )',100);return;}
8
  wppaRenderAdd=add;if(wppaLang!='')ajaxurl+='&lang='+wppaLang;if(wppaAutoColumnWidth[mocc])ajaxurl+='&resp=1';if(addHilite&&_wppaCurIdx[mocc]&&_wppaId[mocc][_wppaCurIdx[mocc]])ajaxurl+='&wppa-hilite='+_wppaId[mocc][_wppaCurIdx[mocc]];if(wppaCanAjaxRender){jQuery.ajax({url:ajaxurl,async:true,type:'GET',timeout:60000,beforeSend:function(xhr){if(_wppaSSRuns[mocc])_wppaStop(mocc);jQuery('#wppa-ajax-spin-'+mocc).fadeIn();},success:function(result,status,xhr){if(wppaRenderAdd){jQuery(wppaRenderAdd+result).insertBefore('#wppa-container-'+mocc+'-end');}
9
  else{if(wppaRenderModal){var opt={modal:true,resizable:true,width:wppaGetContainerWidth(mocc),show:{effect:"fadeIn",duration:400},closeText:"",};jQuery('#wppa-modal-container-'+mocc).html(result).dialog(opt).dialog("open");jQuery('.ui-dialog').css({boxShadow:'0px 0px 5px 5px #aaaaaa',borderRadius:wppaBoxRadius+'px',padding:'8px',backgroundColor:wppaModalBgColor,boxSizing:'content-box',zIndex:100000,});jQuery('.ui-dialog-titlebar').css({lineHeight:'0px',height:'32px',});jQuery('.ui-button').css({backgroundImage:wppaModalQuitImg,padding:0,position:'absolute',right:'8px',top:'8px',width:'16px',height:'16px',});jQuery('.ui-button').attr('title','Close');jQuery('.ui-button').on('click',function(){_wppaStop(mocc);});}
10
  else{jQuery('#wppa-container-'+mocc).html(result);}}
@@ -12,7 +12,8 @@ if(wppaCanPushState&&wppaUpdateAddressLine){wppaHis++;try{history.pushState({pag
12
  catch(err){try{history.replaceState({page:wppaHis,occur:mocc,type:'html'},"",newurl);wppaConsoleLog('Ajax rendering: History stack updated','force');}
13
  catch(err){wppaConsoleLog('Ajax rendering: History stack update failed','force');}}
14
  if(wppaFirstOccur==0)wppaFirstOccur=mocc;}
15
- wppaUpdateLightboxes();if(typeof(wppaQRUpdate)!='undefined')wppaQRUpdate(newurl);wppaColWidth[mocc]=0;_wppaDoAutocol(mocc);var scriptPos=result.indexOf('<script');var scriptPosLast=result.lastIndexOf('<script');if(scriptPos==-1){wppaConsoleLog('Ajax render did NOT contain a script tag','force');}
 
16
  else{wppaConsoleLog('Ajax render did contain a script tag at position '+scriptPos+' last at '+scriptPosLast,'force');}},error:function(xhr,status,error){wppaConsoleLog('wppaDoAjaxRender failed. Error = '+error+', status = '+status,'force');document.location.href=newurl;wppaColWidth[mocc]=0;_wppaDoAutocol(mocc);},complete:function(xhr,status,newurl){wppaWaitForCounter++;wppaReplaceSvg();if(!wppaRenderModal){jQuery('html, body').animate({scrollTop:jQuery("#wppa-container-"+mocc).offset().top-32-wppaStickyHeaderHeight},1000);}
17
  jQuery('#wppa-ajax-spin-'+mocc).stop().fadeOut();}});}
18
  else{document.location.href=newurl;wppaColWidth[mocc]=0;_wppaDoAutocol(mocc);}}
@@ -75,5 +76,5 @@ wppaOpenComments(mocc);},error:function(xhr,status,error){wppaConsoleLog('wppaAj
75
  function wppaUpdatePhotoNew(id){var myItems=['name','description','tags','custom_0','custom_1','custom_2','custom_3','custom_4','custom_5','custom_6','custom_7','custom_8','custom_9'];var myData='action=wppa'+'&wppa-action=update-photo-new'+'&photo-id='+id+'&wppa-nonce='+jQuery('#wppa-nonce-'+id).val();var i=0;while(i<myItems.length){if(typeof(jQuery('#'+myItems[i]).val())!='undefined'){myData+='&'+myItems[i]+'='+jQuery('#'+myItems[i]).val();}
76
  i++;}
77
  jQuery.ajax({url:wppaAjaxUrl,data:myData,async:false,type:'POST',timeout:10000,beforeSend:function(xhr){},success:function(result,status,xhr){if(result.length>0){alert(result);}},error:function(xhr,status,error){alert(result);wppaConsoleLog('wppaUpdatePhotoNew failed. Error = '+error+', status = '+status,'force');},complete:function(xhr,status,newurl){}});}
78
- function wppaAjaxSetQrCodeSrc(url,elm){var myData='action=wppa'+'&wppa-action=getqrcode'+'&wppa-qr-nonce='+jQuery('#wppa-qr-nonce').val()+'&url='+encodeURIComponent(url);jQuery.ajax({url:wppaAjaxUrl,data:myData,async:true,type:'POST',timeout:10000,success:function(result,status,xhr){document.getElementById(elm).src=result;},error:function(xhr,status,error){wppaConsoleLog('wppaAjaxSetQrCodeSrc failed. Error = '+error+', status = '+status,'force');}});}
79
  wppaConsoleLog('wppa-ajax-front.js version '+wppaJsAjaxVersion+' loaded.','force');
4
  // Dependancies: wppa.js and default wp jQuery library
5
  //
6
 
7
+ var wppaJsAjaxVersion='6.6.21';var wppaRenderAdd=false;var wppaWaitForCounter=0;function wppaDoAjaxRender(mocc,ajaxurl,newurl,add,waitfor,addHilite){if(parseInt(waitfor)>0&&waitfor!=wppaWaitForCounter){setTimeout('wppaDoAjaxRender( '+mocc+', \''+ajaxurl+'\', \''+newurl+'\', \''+add+'\', '+waitfor+' )',100);return;}
8
  wppaRenderAdd=add;if(wppaLang!='')ajaxurl+='&lang='+wppaLang;if(wppaAutoColumnWidth[mocc])ajaxurl+='&resp=1';if(addHilite&&_wppaCurIdx[mocc]&&_wppaId[mocc][_wppaCurIdx[mocc]])ajaxurl+='&wppa-hilite='+_wppaId[mocc][_wppaCurIdx[mocc]];if(wppaCanAjaxRender){jQuery.ajax({url:ajaxurl,async:true,type:'GET',timeout:60000,beforeSend:function(xhr){if(_wppaSSRuns[mocc])_wppaStop(mocc);jQuery('#wppa-ajax-spin-'+mocc).fadeIn();},success:function(result,status,xhr){if(wppaRenderAdd){jQuery(wppaRenderAdd+result).insertBefore('#wppa-container-'+mocc+'-end');}
9
  else{if(wppaRenderModal){var opt={modal:true,resizable:true,width:wppaGetContainerWidth(mocc),show:{effect:"fadeIn",duration:400},closeText:"",};jQuery('#wppa-modal-container-'+mocc).html(result).dialog(opt).dialog("open");jQuery('.ui-dialog').css({boxShadow:'0px 0px 5px 5px #aaaaaa',borderRadius:wppaBoxRadius+'px',padding:'8px',backgroundColor:wppaModalBgColor,boxSizing:'content-box',zIndex:100000,});jQuery('.ui-dialog-titlebar').css({lineHeight:'0px',height:'32px',});jQuery('.ui-button').css({backgroundImage:wppaModalQuitImg,padding:0,position:'absolute',right:'8px',top:'8px',width:'16px',height:'16px',});jQuery('.ui-button').attr('title','Close');jQuery('.ui-button').on('click',function(){_wppaStop(mocc);});}
10
  else{jQuery('#wppa-container-'+mocc).html(result);}}
12
  catch(err){try{history.replaceState({page:wppaHis,occur:mocc,type:'html'},"",newurl);wppaConsoleLog('Ajax rendering: History stack updated','force');}
13
  catch(err){wppaConsoleLog('Ajax rendering: History stack update failed','force');}}
14
  if(wppaFirstOccur==0)wppaFirstOccur=mocc;}
15
+ wppaUpdateLightboxes();if(typeof(wppaQRUpdate)!='undefined'){wppaConsoleLog('Ajax render asked qr code for '+newurl,'force');wppaQRUpdate(newurl);}
16
+ wppaColWidth[mocc]=0;_wppaDoAutocol(mocc);var scriptPos=result.indexOf('<script');var scriptPosLast=result.lastIndexOf('<script');if(scriptPos==-1){wppaConsoleLog('Ajax render did NOT contain a script tag','force');}
17
  else{wppaConsoleLog('Ajax render did contain a script tag at position '+scriptPos+' last at '+scriptPosLast,'force');}},error:function(xhr,status,error){wppaConsoleLog('wppaDoAjaxRender failed. Error = '+error+', status = '+status,'force');document.location.href=newurl;wppaColWidth[mocc]=0;_wppaDoAutocol(mocc);},complete:function(xhr,status,newurl){wppaWaitForCounter++;wppaReplaceSvg();if(!wppaRenderModal){jQuery('html, body').animate({scrollTop:jQuery("#wppa-container-"+mocc).offset().top-32-wppaStickyHeaderHeight},1000);}
18
  jQuery('#wppa-ajax-spin-'+mocc).stop().fadeOut();}});}
19
  else{document.location.href=newurl;wppaColWidth[mocc]=0;_wppaDoAutocol(mocc);}}
76
  function wppaUpdatePhotoNew(id){var myItems=['name','description','tags','custom_0','custom_1','custom_2','custom_3','custom_4','custom_5','custom_6','custom_7','custom_8','custom_9'];var myData='action=wppa'+'&wppa-action=update-photo-new'+'&photo-id='+id+'&wppa-nonce='+jQuery('#wppa-nonce-'+id).val();var i=0;while(i<myItems.length){if(typeof(jQuery('#'+myItems[i]).val())!='undefined'){myData+='&'+myItems[i]+'='+jQuery('#'+myItems[i]).val();}
77
  i++;}
78
  jQuery.ajax({url:wppaAjaxUrl,data:myData,async:false,type:'POST',timeout:10000,beforeSend:function(xhr){},success:function(result,status,xhr){if(result.length>0){alert(result);}},error:function(xhr,status,error){alert(result);wppaConsoleLog('wppaUpdatePhotoNew failed. Error = '+error+', status = '+status,'force');},complete:function(xhr,status,newurl){}});}
79
+ function wppaAjaxSetQrCodeSrc(url,elm){var myData='action=wppa'+'&wppa-action=getqrcode'+'&wppa-qr-nonce='+jQuery('#wppa-qr-nonce').val()+'&url='+encodeURIComponent(url);jQuery.ajax({url:wppaAjaxUrl,data:myData,async:true,type:'POST',timeout:10000,success:function(result,status,xhr){document.getElementById(elm).src=result;wppaConsoleLog('wppaAjaxSetQrCodeSrc put '+result+' into '+elm);},error:function(xhr,status,error){wppaConsoleLog('wppaAjaxSetQrCodeSrc failed. Error = '+error+', status = '+status,'force');}});}
80
  wppaConsoleLog('wppa-ajax-front.js version '+wppaJsAjaxVersion+' loaded.','force');
readme.txt CHANGED
@@ -2,8 +2,8 @@
2
  Contributors: opajaap
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=OpaJaap@OpaJaap.nl&item_name=WP-Photo-Album-Plus&item_number=Support-Open-Source&currency_code=USD&lc=US
4
  Tags: photo, album, gallery, slideshow, video, audio, lightbox, iptc, exif, cloudinary, fotomoto, imagemagick
5
- Version: 6.6.20
6
- Stable tag: 6.6.20
7
  Author: J.N. Breetvelt
8
  Author URI: http://www.opajaap.nl/
9
  Requires at least: 3.9
@@ -180,6 +180,12 @@ Oh, just Google on 'picture resizer' and you will find a bunch of free programs
180
 
181
  See for additional information: <a href="http://www.wppa.nl/changelog/" >The documentation website</a>
182
 
 
 
 
 
 
 
183
  = 6.6.20 =
184
 
185
  = Bug Fixes =
2
  Contributors: opajaap
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=OpaJaap@OpaJaap.nl&item_name=WP-Photo-Album-Plus&item_number=Support-Open-Source&currency_code=USD&lc=US
4
  Tags: photo, album, gallery, slideshow, video, audio, lightbox, iptc, exif, cloudinary, fotomoto, imagemagick
5
+ Version: 6.6.21
6
+ Stable tag: 6.6.21
7
  Author: J.N. Breetvelt
8
  Author URI: http://www.opajaap.nl/
9
  Requires at least: 3.9
180
 
181
  See for additional information: <a href="http://www.wppa.nl/changelog/" >The documentation website</a>
182
 
183
+ = 6.6.21 =
184
+
185
+ = Bug Fixes =
186
+
187
+ * QR widget now works as designed
188
+
189
  = 6.6.20 =
190
 
191
  = Bug Fixes =
wppa-ajax.php CHANGED
@@ -2,7 +2,7 @@
2
  /* wppa-ajax.php
3
  *
4
  * Functions used in ajax requests
5
- * Version 6.6.19
6
  *
7
  */
8
 
@@ -50,17 +50,21 @@ global $wppa_log_file;
50
 
51
  switch ( $wppa_action ) {
52
  case 'getqrcode':
 
53
  $nonce = $_REQUEST['wppa-qr-nonce'];
54
  if ( ! wp_verify_nonce( $nonce, 'wppa-qr-nonce' ) ) {
55
  die( 'Security check falure' );
56
  }
57
  $url = strip_tags( $_REQUEST['url'] );
58
- if ( wppa_switch( 'qr_cache' ) ) {
59
- echo wppa_create_qrcode_cache( urldecode( $url ) );
60
- }
61
- else {
62
- echo $url;
63
- }
 
 
 
64
  wppa_exit();
65
  break;
66
  case 'gettogo':
2
  /* wppa-ajax.php
3
  *
4
  * Functions used in ajax requests
5
+ * Version 6.6.21
6
  *
7
  */
8
 
50
 
51
  switch ( $wppa_action ) {
52
  case 'getqrcode':
53
+ wppa_log( 'obs', 'Ajax getqrcode for '.$_REQUEST['url'] );
54
  $nonce = $_REQUEST['wppa-qr-nonce'];
55
  if ( ! wp_verify_nonce( $nonce, 'wppa-qr-nonce' ) ) {
56
  die( 'Security check falure' );
57
  }
58
  $url = strip_tags( $_REQUEST['url'] );
59
+ $src = 'http' . ( is_ssl() ? 's' : '' ) . '://api.qrserver.com/v1/create-qr-code/' .
60
+ '?format=svg' .
61
+ '&size=' . wppa_opt( 'qr_size' ) . 'x' . wppa_opt( 'qr_size' ) .
62
+ '&color=' . trim( wppa_opt( 'qr_color' ), '#' ) .
63
+ '&bgcolor=' . trim( wppa_opt( 'qr_bgcolor' ), '#' ) .
64
+ '&data=' . $url;
65
+
66
+ $result = wppa_create_qrcode_cache( $src );
67
+ echo $result;
68
  wppa_exit();
69
  break;
70
  case 'gettogo':
wppa-qr-widget.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * display qr code
6
- * Version 6.6.19
7
  */
8
 
9
 
@@ -36,43 +36,31 @@ class wppaQRWidget extends WP_Widget {
36
  '&size='. wppa_opt( 'qr_size' ).'x'.wppa_opt( 'qr_size' ) .
37
  '&color='.trim( wppa_opt( 'qr_color' ), '#' ) .
38
  '&bgcolor='.trim( wppa_opt( 'qr_bgcolor' ), '#' ) .
39
- '&data=' . site_url();
40
 
41
- // Get the qrcode
42
  $qrsrc = wppa_create_qrcode_cache( $qrsrc );
43
-
44
  // Make the html
45
  $widget_content =
46
  '<div style="text-align:center;" >' .
47
- '<img id="wppa-qr-img" src="' . $qrsrc . '" title="" alt="' . __('QR code', 'wp-photo-album-plus') . '" />' .
48
  '</div>' .
49
  '<div style="clear:both" ></div>';
50
 
51
  $widget_content .=
52
  '<script type="text/javascript">
53
  /*[CDATA[*/
54
- var wppaQRData = document.location.href;
55
- var wppaQRDataOld = "";
56
- var wppaQRSrc = "";
57
- var workData = "";
58
 
59
- wppaConsoleLog( "doc.loc.href = " + wppaQRData );
60
 
61
  function wppaQRUpdate( arg ) {
62
- if ( arg ) wppaQRData = arg;
63
- if ( wppaQRData != wppaQRDataOld ) {
64
- wppaQRDataOld = wppaQRData;
65
- workData = wppaQRData;
66
- wppaQRSrc = "http' . ( is_ssl() ? 's' : '' ) . '://api.qrserver.com/v1/create-qr-code/' .
67
- '?format=svg&size=' . wppa_opt( 'qr_size' ) .
68
- 'x' . wppa_opt( 'qr_size' ) .
69
- '&color=' . trim( wppa_opt( 'qr_color' ), '#' ) .
70
- '&bgcolor=' . trim( wppa_opt( 'qr_bgcolor' ), '#' ) .
71
- '&data=" + encodeURIComponent( workData );
72
-
73
- wppaAjaxSetQrCodeSrc( wppaQRSrc, "wppa-qr-img" );
74
- document.getElementById( "wppa-qr-img" ).title = workData;
75
  }
 
 
76
  return;
77
  }
78
 
3
  * Package: wp-photo-album-plus
4
  *
5
  * display qr code
6
+ * Version 6.6.20
7
  */
8
 
9
 
36
  '&size='. wppa_opt( 'qr_size' ).'x'.wppa_opt( 'qr_size' ) .
37
  '&color='.trim( wppa_opt( 'qr_color' ), '#' ) .
38
  '&bgcolor='.trim( wppa_opt( 'qr_bgcolor' ), '#' ) .
39
+ '&data=' . urlencode( $_SERVER['SCRIPT_URI'] );
40
 
41
+ // Get the qrcode
42
  $qrsrc = wppa_create_qrcode_cache( $qrsrc );
43
+
44
  // Make the html
45
  $widget_content =
46
  '<div style="text-align:center;" >' .
47
+ '<img id="wppa-qr-img" src="' . $qrsrc . '" title="' . esc_attr( $_SERVER['SCRIPT_URI'] ) . '" alt="' . __('QR code', 'wp-photo-album-plus') . '" />' .
48
  '</div>' .
49
  '<div style="clear:both" ></div>';
50
 
51
  $widget_content .=
52
  '<script type="text/javascript">
53
  /*[CDATA[*/
54
+ var wppaQRUrl = document.location.href;
 
 
 
55
 
56
+ wppaConsoleLog( "doc.loc.href = " + wppaQRUrl );
57
 
58
  function wppaQRUpdate( arg ) {
59
+ if ( arg ) {
60
+ wppaQRUrl = arg;
 
 
 
 
 
 
 
 
 
 
 
61
  }
62
+ wppaAjaxSetQrCodeSrc( wppaQRUrl, "wppa-qr-img" );
63
+ document.getElementById( "wppa-qr-img" ).title = wppaQRUrl;
64
  return;
65
  }
66
 
wppa-utils.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * Contains low-level utility routines
6
- * Version 6.6.20
7
  *
8
  */
9
 
@@ -3573,9 +3573,6 @@ function wppa_memry_limit() {
3573
  // Create qr code cache and return its url
3574
  function wppa_create_qrcode_cache( $qrsrc ) {
3575
 
3576
- // Init
3577
- $key = md5( $qrsrc );
3578
-
3579
  // Make sure the data portion is url encoded
3580
  $temp = explode( 'data=', $qrsrc );
3581
  $qrsrc = $temp[0] . 'data=' . urlencode( urldecode( $temp[1] ) );
@@ -3591,6 +3588,7 @@ function wppa_create_qrcode_cache( $qrsrc ) {
3591
  }
3592
 
3593
  // In cache already?
 
3594
  if ( is_file( WPPA_UPLOAD_PATH . '/qr/' . $key . '.svg' ) ) {
3595
 
3596
  // Bump cache found counter
3
  * Package: wp-photo-album-plus
4
  *
5
  * Contains low-level utility routines
6
+ * Version 6.6.21
7
  *
8
  */
9
 
3573
  // Create qr code cache and return its url
3574
  function wppa_create_qrcode_cache( $qrsrc ) {
3575
 
 
 
 
3576
  // Make sure the data portion is url encoded
3577
  $temp = explode( 'data=', $qrsrc );
3578
  $qrsrc = $temp[0] . 'data=' . urlencode( urldecode( $temp[1] ) );
3588
  }
3589
 
3590
  // In cache already?
3591
+ $key = md5( $qrsrc );
3592
  if ( is_file( WPPA_UPLOAD_PATH . '/qr/' . $key . '.svg' ) ) {
3593
 
3594
  // Bump cache found counter
wppa.php CHANGED
@@ -2,7 +2,7 @@
2
  /*
3
  * Plugin Name: WP Photo Album Plus
4
  * Description: Easily manage and display your photo albums and slideshows within your WordPress site.
5
- * Version: 6.6.20
6
  * Author: J.N. Breetvelt a.k.a. OpaJaap
7
  * Author URI: http://wppa.opajaap.nl/
8
  * Plugin URI: http://wordpress.org/extend/plugins/wp-photo-album-plus/
@@ -23,7 +23,7 @@ global $wp_version;
23
 
24
  /* WPPA GLOBALS */
25
  global $wppa_revno; $wppa_revno = '6620'; // WPPA db version
26
- global $wppa_api_version; $wppa_api_version = '6-6-20-006'; // WPPA software version
27
 
28
  /* start timers */
29
  global $wppa_starttime; $wppa_starttime = microtime(true);
2
  /*
3
  * Plugin Name: WP Photo Album Plus
4
  * Description: Easily manage and display your photo albums and slideshows within your WordPress site.
5
+ * Version: 6.6.21
6
  * Author: J.N. Breetvelt a.k.a. OpaJaap
7
  * Author URI: http://wppa.opajaap.nl/
8
  * Plugin URI: http://wordpress.org/extend/plugins/wp-photo-album-plus/
23
 
24
  /* WPPA GLOBALS */
25
  global $wppa_revno; $wppa_revno = '6620'; // WPPA db version
26
+ global $wppa_api_version; $wppa_api_version = '6-6-21-001'; // WPPA software version
27
 
28
  /* start timers */
29
  global $wppa_starttime; $wppa_starttime = microtime(true);