WP Photo Album Plus - Version 8.0.03.006

Version Description

= 8.0.03 =

  • This version addresses various minor bug fixes and feature requests.
Download this release

Release Info

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

Code changes from version 8.0.03.005 to 8.0.03.006

changelog.txt CHANGED
@@ -20,6 +20,8 @@ Provided a fix for this by resetting the counters at the end of the the process
20
  * When both defer javascript was active and the shortcode was cached, reponsiveness was no longer fully supported. Fixed.
21
  * Switching off manual control on a spheric panorama caused a js error resulting in not displaying the image. Fixed.
22
  * The documentation site https://wppa.nl now shows the version 8 settings.
 
 
23
 
24
  = 8.0.02 =
25
 
20
  * When both defer javascript was active and the shortcode was cached, reponsiveness was no longer fully supported. Fixed.
21
  * Switching off manual control on a spheric panorama caused a js error resulting in not displaying the image. Fixed.
22
  * The documentation site https://wppa.nl now shows the version 8 settings.
23
+ * Fixed a problem in scheduled renewing crypts. The time interval is now correctly obeyed.
24
+ * Cache is now cleared when a maintenance procedure has completed.
25
 
26
  = 8.0.02 =
27
 
theme/wppa-theme.php CHANGED
@@ -586,14 +586,8 @@ function wppa_get_extra_url() {
586
  }
587
 
588
  function wppa_report_nothing( $where ) {
589
- global $wppa;
590
 
591
- $t = $wppa;
592
- foreach ( array_keys( $t ) as $key ) {
593
- if ( ! $t[$key] ) unset ( $t[$key] );
594
- }
595
- $s = var_export( $t, true );
596
- $result = "Nothing found. Location: $where. Dynamic settings: $s";
597
- wppa_log( 'war', $result, true );
598
  }
599
 
586
  }
587
 
588
  function wppa_report_nothing( $where ) {
 
589
 
590
+ $result = "Nothing found. Location: $where";
591
+ wppa_log( 'dbg', $result );
 
 
 
 
 
592
  }
593
 
wppa-functions.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * Various functions
6
- * Version 8.0.03.004
7
  *
8
  */
9
 
@@ -1073,7 +1073,7 @@ global $wppa_session;
1073
 
1074
  wppa_dbg_msg( 'get_albums entered: ' . wppa( 'mocc' ) . ' Start_album=' . wppa( 'start_album' ) . ', Cover=' . wppa( 'is_cover' ) );
1075
 
1076
- // Check encryption
1077
  if ( wppa( 'start_album' ) ) {
1078
  $t = wppa_decrypt_album( wppa( 'start_album' ), true, true );
1079
  if ( $t != wppa( 'start_album' ) ) {
@@ -1081,6 +1081,7 @@ global $wppa_session;
1081
  wppa( 'start_album', $t );
1082
  }
1083
  }
 
1084
 
1085
  if ( wppa( 'is_topten' ) ) return false;
1086
  if ( wppa( 'is_lasten' ) ) return false;
@@ -1336,7 +1337,7 @@ global $wppa_session;
1336
  // Make Album clause if album given
1337
  if ( wppa( 'start_album' ) ) {
1338
 
1339
- // Check encryption
1340
  if ( wppa( 'start_album' ) ) {
1341
  $t = wppa_decrypt_album( wppa( 'start_album' ), true, true );
1342
  if ( $t != wppa( 'start_album' ) ) {
@@ -1344,6 +1345,7 @@ global $wppa_session;
1344
  wppa( 'start_album', $t );
1345
  }
1346
  }
 
1347
 
1348
  // See if album is an enumeration or range
1349
  $fullalb = wppa( 'start_album' );
@@ -1379,12 +1381,13 @@ global $wppa_session;
1379
  // Single image slideshow?
1380
  if ( wppa( 'start_photo' ) && wppa( 'is_single' ) ) {
1381
 
1382
- // Check encryption
1383
  $t = wppa_decrypt_photo( wppa( 'start_photo' ), true, true );
1384
  if ( $t != wppa( 'start_photo' ) ) {
1385
  wppa_log( 'err', 'Encrypted photo id founc in wppa_get_thumbs() ' . wppa( 'start_album' ) . ' jit fixed' );
1386
  wppa( 'start_photo', $t );
1387
  }
 
1388
 
1389
  $query = $wpdb->prepare( "SELECT * FROM $wpdb->wppa_photos
1390
  WHERE id = %s", wppa( 'start_photo' ) );
3
  * Package: wp-photo-album-plus
4
  *
5
  * Various functions
6
+ * Version 8.0.03.006
7
  *
8
  */
9
 
1073
 
1074
  wppa_dbg_msg( 'get_albums entered: ' . wppa( 'mocc' ) . ' Start_album=' . wppa( 'start_album' ) . ', Cover=' . wppa( 'is_cover' ) );
1075
 
1076
+ /* Check encryption
1077
  if ( wppa( 'start_album' ) ) {
1078
  $t = wppa_decrypt_album( wppa( 'start_album' ), true, true );
1079
  if ( $t != wppa( 'start_album' ) ) {
1081
  wppa( 'start_album', $t );
1082
  }
1083
  }
1084
+ */
1085
 
1086
  if ( wppa( 'is_topten' ) ) return false;
1087
  if ( wppa( 'is_lasten' ) ) return false;
1337
  // Make Album clause if album given
1338
  if ( wppa( 'start_album' ) ) {
1339
 
1340
+ /* Check encryption
1341
  if ( wppa( 'start_album' ) ) {
1342
  $t = wppa_decrypt_album( wppa( 'start_album' ), true, true );
1343
  if ( $t != wppa( 'start_album' ) ) {
1345
  wppa( 'start_album', $t );
1346
  }
1347
  }
1348
+ */
1349
 
1350
  // See if album is an enumeration or range
1351
  $fullalb = wppa( 'start_album' );
1381
  // Single image slideshow?
1382
  if ( wppa( 'start_photo' ) && wppa( 'is_single' ) ) {
1383
 
1384
+ /* Check encryption
1385
  $t = wppa_decrypt_photo( wppa( 'start_photo' ), true, true );
1386
  if ( $t != wppa( 'start_photo' ) ) {
1387
  wppa_log( 'err', 'Encrypted photo id founc in wppa_get_thumbs() ' . wppa( 'start_album' ) . ' jit fixed' );
1388
  wppa( 'start_photo', $t );
1389
  }
1390
+ */
1391
 
1392
  $query = $wpdb->prepare( "SELECT * FROM $wpdb->wppa_photos
1393
  WHERE id = %s", wppa( 'start_photo' ) );
wppa-maintenance.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * Contains (not yet, but in the future maybe) all the maintenance routines
6
- * Version 8.0.00.004
7
  *
8
  */
9
 
@@ -340,6 +340,7 @@ global $wppa_endtime;
340
 
341
  case 'wppa_crypt_albums':
342
  wppa_update_album( array( 'id' => $album['id'], 'crypt' => wppa_get_unique_album_crypt() ) );
 
343
  break;
344
 
345
  case 'wppa_custom_album_proc':
@@ -1151,11 +1152,10 @@ global $wppa_endtime;
1151
  }
1152
 
1153
  // Re-Init options
1154
- delete_option( $slug.'_togo', '' );
1155
- delete_option( $slug.'_status', '' );
1156
- delete_option( $slug.'_last', '0' );
1157
- delete_option( $slug.'_user', '' );
1158
- delete_option( $slug.'_lasttimestamp', '0' );
1159
 
1160
  // Post-processing needed?
1161
  switch ( $slug ) {
@@ -1247,6 +1247,7 @@ global $wppa_endtime;
1247
  else {
1248
  return $errtxt.'||'.$slug.'||'.$status.'||'.$togo.'||'.$reload;
1249
  }
 
1250
  wppa_exit();
1251
  }
1252
 
3
  * Package: wp-photo-album-plus
4
  *
5
  * Contains (not yet, but in the future maybe) all the maintenance routines
6
+ * Version 8.0.03.006
7
  *
8
  */
9
 
340
 
341
  case 'wppa_crypt_albums':
342
  wppa_update_album( array( 'id' => $album['id'], 'crypt' => wppa_get_unique_album_crypt() ) );
343
+ wppa_log('cron', 'New album crypt found for album '.$album['id']);
344
  break;
345
 
346
  case 'wppa_custom_album_proc':
1152
  }
1153
 
1154
  // Re-Init options
1155
+ delete_option( $slug . '_togo' );
1156
+ delete_option( $slug . '_status' );
1157
+ delete_option( $slug . '_last' );
1158
+ delete_option( $slug . '_user' );
 
1159
 
1160
  // Post-processing needed?
1161
  switch ( $slug ) {
1247
  else {
1248
  return $errtxt.'||'.$slug.'||'.$status.'||'.$togo.'||'.$reload;
1249
  }
1250
+ wppa_clear_cache();
1251
  wppa_exit();
1252
  }
1253
 
wppa-non-admin.php CHANGED
@@ -442,7 +442,7 @@ global $wppa_api_version;
442
  echo wppa_create_wppa_dynamic_css();
443
 
444
  // Inline styles?
445
- if ( wppa_switch( 'inline_css') ) {
446
  echo '
447
  <!-- WPPA+ Custom styles -->
448
  <style type="text/css" >';
442
  echo wppa_create_wppa_dynamic_css();
443
 
444
  // Inline styles?
445
+ if ( wppa_opt( 'custom_style' ) ) {
446
  echo '
447
  <!-- WPPA+ Custom styles -->
448
  <style type="text/css" >';
wppa-setting-functions.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * manage all options
6
- * Version 8.0.00.012
7
  *
8
  */
9
 
@@ -229,7 +229,7 @@ global $wppa_opt;
229
  if ($class != '') $html .= ' class="'.$class.'"';
230
  $html .= '>';
231
 
232
- $val = wppa_opt( $xslug );
233
  $idx = 0;
234
  $cnt = count($opts);
235
  while ($idx < $cnt) {
3
  * Package: wp-photo-album-plus
4
  *
5
  * manage all options
6
+ * Version 8.0.03.006
7
  *
8
  */
9
 
229
  if ($class != '') $html .= ' class="'.$class.'"';
230
  $html .= '>';
231
 
232
+ $val = wppa_opt( $slug );
233
  $idx = 0;
234
  $cnt = count($opts);
235
  while ($idx < $cnt) {
wppa-settings-autosave.php CHANGED
@@ -10175,7 +10175,7 @@ global $wppa_subtab_names;
10175
  $html = wppa_input($slug, '300px', '', '', 'wppaRefreshAfter();');
10176
  wppa_setting_new($slug, '13', $name, $desc, $html, $help);
10177
 
10178
- if ( wppa_opt( '' ) != 'none' ) {
10179
 
10180
  $name = __('Image Magick cropping', 'wp-photo-album-plus');
10181
  $desc = __('Select default aspect for cropping', 'wp-photo-album-plus');
10175
  $html = wppa_input($slug, '300px', '', '', 'wppaRefreshAfter();');
10176
  wppa_setting_new($slug, '13', $name, $desc, $html, $help);
10177
 
10178
+ if ( wppa_opt( 'image_magick' ) != 'none' ) {
10179
 
10180
  $name = __('Image Magick cropping', 'wp-photo-album-plus');
10181
  $desc = __('Select default aspect for cropping', 'wp-photo-album-plus');
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: 8.0.03.005
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/
@@ -24,7 +24,7 @@ global $wp_version;
24
 
25
  /* WPPA GLOBALS */
26
  global $wppa_api_version;
27
- $wppa_api_version = '8.0.03.005'; // WPPA software version
28
  global $wppa_revno;
29
  $wppa_revno = str_replace( '.', '', $wppa_api_version ); // WPPA db version
30
 
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: 8.0.03.006
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/
24
 
25
  /* WPPA GLOBALS */
26
  global $wppa_api_version;
27
+ $wppa_api_version = '8.0.03.006'; // WPPA software version
28
  global $wppa_revno;
29
  $wppa_revno = str_replace( '.', '', $wppa_api_version ); // WPPA db version
30