WP Photo Album Plus - Version 8.2.03.006

Version Description

= 8.1.08 =

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

Release Info

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

Code changes from version 8.2.03.005 to 8.2.03.006

changelog.txt CHANGED
@@ -1,10 +1,10 @@
1
  WP Photo Album Plus Changelog
2
 
3
- = 8.3.01 =
4
 
5
  * The display of the album and photo admin page has been restructured. Phase II
6
  * You can now enter exif dates ending in 00 min and 00 sec.
7
- * New album setting: Max children. This setting only limits the creation of child albums at the frontend and looks at first generation children only.
8
 
9
  = 8.2.02 =
10
 
1
  WP Photo Album Plus Changelog
2
 
3
+ = 8.2.03 =
4
 
5
  * The display of the album and photo admin page has been restructured. Phase II
6
  * You can now enter exif dates ending in 00 min and 00 sec.
7
+ * New album setting: Max subalbums. This setting only limits the creation of sub albums at the frontend and looks at direct subalbums only.
8
 
9
  = 8.2.02 =
10
 
readme.txt CHANGED
@@ -5,7 +5,7 @@ Tags: photo, album, slideshow, video, audio, lightbox, iptc, exif, cloudinary, f
5
  Requires at least: 3.9
6
  Tested up to: 6.0
7
  Requires PHP: 5.5
8
- Stable tag: 8.2.02.010
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
5
  Requires at least: 3.9
6
  Tested up to: 6.0
7
  Requires PHP: 5.5
8
+ Stable tag: 8.2.03.006
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
wppa-ajax.php CHANGED
@@ -2,7 +2,7 @@
2
  /* wppa-ajax.php
3
  *
4
  * Functions used in ajax requests
5
- * Version 8.2.03.005
6
  *
7
  */
8
 
@@ -2614,7 +2614,7 @@ global $wppa;
2614
  wppa_log( 'err', $thumb_id->get_error_message() );
2615
  }
2616
  else {
2617
- wppa_log( 'obs', 'Attachment id = ' . ( $thumb_id ? $thumb_id : 'none' ) );
2618
  }
2619
  }
2620
  }
@@ -2651,7 +2651,7 @@ global $wppa;
2651
  wppa_log( 'err', $thumb_id->get_error_message() );
2652
  }
2653
  else {
2654
- wppa_log( 'obs', 'Attachment id = ' . ( $thumb_id ? $thumb_id : 'none' ) );
2655
  }
2656
  }
2657
  }
@@ -2665,7 +2665,7 @@ global $wppa;
2665
  wppa_log( 'err', $thumb_id->get_error_message() );
2666
  }
2667
  else {
2668
- wppa_log( 'obs', 'Attachment id = ' . ( $thumb_id ? $thumb_id : 'none' ) );
2669
  }
2670
  }
2671
  }
2
  /* wppa-ajax.php
3
  *
4
  * Functions used in ajax requests
5
+ * Version 8.2.03.006
6
  *
7
  */
8
 
2614
  wppa_log( 'err', $thumb_id->get_error_message() );
2615
  }
2616
  else {
2617
+ // wppa_log( 'obs', 'Attachment id = ' . ( $thumb_id ? $thumb_id : 'none' ) );
2618
  }
2619
  }
2620
  }
2651
  wppa_log( 'err', $thumb_id->get_error_message() );
2652
  }
2653
  else {
2654
+ // wppa_log( 'obs', 'Attachment id = ' . ( $thumb_id ? $thumb_id : 'none' ) );
2655
  }
2656
  }
2657
  }
2665
  wppa_log( 'err', $thumb_id->get_error_message() );
2666
  }
2667
  else {
2668
+ // wppa_log( 'obs', 'Attachment id = ' . ( $thumb_id ? $thumb_id : 'none' ) );
2669
  }
2670
  }
2671
  }
wppa-album-admin-autosave.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * create, edit and delete albums
6
- * Version 8.2.03.005
7
  *
8
  */
9
 
@@ -435,7 +435,7 @@ global $wppa_revno;
435
  $the_js = '
436
  function wppaTryInheritCats( id ) {
437
 
438
- var query = "' . esc_js( __( 'Are you sure you want to inherit categories to all (grand)children of this album?', 'wp-photo-album-plus' ) ) . '";
439
  if ( confirm( query ) ) {
440
  wppaAjaxUpdateAlbum( id, \'inherit_cats\', Math.random() );
441
  }
@@ -443,7 +443,7 @@ global $wppa_revno;
443
 
444
  function wppaTryAddCats( id ) {
445
 
446
- var query = "' . esc_js( __( 'Are you sure you want to add the categories to all (grand)children of this album?', 'wp-photo-album-plus' ) ) . '";
447
  if ( confirm( query ) ) {
448
  wppaAjaxUpdateAlbum( id, \'inhadd_cats\', Math.random() );
449
  }
@@ -1048,12 +1048,12 @@ jQuery(document).ready(function(){wppaGetCoverPreview( '.$id.', "cover-preview-"
1048
  style="max-width: 200px;margin-right: 4px;">
1049
  <label
1050
  for="altthumb">' .
1051
- __( 'Max children', 'wp-photo-album-plus' ) . '
1052
  </label><br>
1053
  <select
1054
  id="maxchild"
1055
  onchange="wppaAjaxUpdateAlbum( ' . $id . ', \'max_children\', this )"
1056
- title="' . esc_attr( 'This setting can only llimit the creation of child albums at the frontend and looks at first generation children only', 'wp-photo-album-plus' ) . '"
1057
  >
1058
  <option value="0"' . ( $val == '0' ? $sel : '' ) . ' >' .
1059
  __( 'unlimited', 'wp-photo-album-plus' ) . '
@@ -1130,8 +1130,8 @@ jQuery(document).ready(function(){wppaGetCoverPreview( '.$id.', "cover-preview-"
1130
 
1131
  // Tree limit
1132
  {
1133
- $title = __( 'The upload limit for this album and all its (grand)children.', 'wp-photo-album-plus' ) . ' ' .
1134
- __( 'This setting overrules all other limits that may apply to this album or its (grand)children.', 'wp-photo-album-plus' ) . ' ' .
1135
  __( '0 means no limit.', 'wp-photo-album-plus' );
1136
  wppa_echo( '
1137
  <div class="left">
@@ -1437,7 +1437,7 @@ jQuery(document).ready(function(){wppaGetCoverPreview( '.$id.', "cover-preview-"
1437
  type="button"
1438
  class="wppa-admin-button button"
1439
  onclick="' . $onc . '"
1440
- value="' . esc_attr( __( 'Create child', 'wp-photo-album-plus' ) ) . '"
1441
  />' );
1442
  }
1443
 
@@ -1482,14 +1482,14 @@ jQuery(document).ready(function(){wppaGetCoverPreview( '.$id.', "cover-preview-"
1482
  <input
1483
  type="button"
1484
  class="wppa-admin-button button"
1485
- title="' . esc_attr( __( 'Apply categories to all (grand)children.', 'wp-photo-album-plus' ) ) . '"
1486
  onclick="wppaTryInheritCats( ' . $id . ' )"
1487
  value="' . esc_attr( __( 'Apply Cats to subalbums', 'wp-photo-album-plus' ) ) . '"
1488
  />
1489
  <input
1490
  type="button"
1491
  class="wppa-admin-button button"
1492
- title="' . esc_attr( __( 'Add categories to all (grand)children.', 'wp-photo-album-plus' ) ) . '"
1493
  onclick="wppaTryAddCats( ' . $id . ' )"
1494
  value="' . esc_attr( __( 'Add Cats to subalbums', 'wp-photo-album-plus' ) ) . '"
1495
  />' );
@@ -3521,8 +3521,8 @@ global $wpdb;
3521
  $opts = array( __( '--- random ---', 'wp-photo-album-plus' ),
3522
  __( '--- random featured ---', 'wp-photo-album-plus' ),
3523
  __( '--- most recent added ---', 'wp-photo-album-plus' ),
3524
- __( '--- random from (grand)children ---', 'wp-photo-album-plus' ),
3525
- __( '--- most recent from (grand)children ---', 'wp-photo-album-plus' ),
3526
  __( '--- according to albums photo sequence ---', 'wp-photo-album-plus' ),
3527
  );
3528
  $vals = array( '-9', '-1', '-2', '-3', '-4', '-5' );
@@ -3648,8 +3648,8 @@ global $wpdb;
3648
  }
3649
  }
3650
 
3651
- // Subalbum order
3652
- {
3653
  $sel = ' selected';
3654
  $opts = array(
3655
  __( '--- default ---', 'wp-photo-album-plus' ),
@@ -3670,37 +3670,38 @@ global $wpdb;
3670
  $dflt = $opts[$key];
3671
  }
3672
  }
3673
- }
3674
- $title = sprintf( __( 'The default is set in %s and is currently set to %s', 'wp-photo-album-plus' ), wppa_setting_path( 'b', 'misc', 1, 1 ), $dflt );
3675
- $suba_order_by = wppa_get_album_item( $parent, 'suba_order_by' );
3676
- $result = '
3677
- <div style="margin-left:6px">
3678
- <label
3679
- for="subalbumorder">' .
3680
- __( 'Subalbum sequence method', 'wp-photo-album-plus' ) . '
3681
- </label><br>
3682
- <select
3683
- id="subalbumorder"
3684
- style="max-width:200px;"
3685
- onchange="
3686
- wppaAjaxUpdateAlbum( ' . $parent . ', \'suba_order_by\', this );
3687
- var ord=Math.abs(jQuery(this).val());
3688
- var dft=Math.abs(' . wppa_opt('wppa_list_albums_by') . ');
3689
- if (ord == 1 || (ord == 0 && dft == 1)) {
3690
- jQuery(\'#wppa-album-sequence\').show();
 
 
 
 
 
 
 
 
3691
  }
3692
- else {
3693
- jQuery(\'#wppa-album-sequence\').hide();
3694
- }"
3695
- title="' . esc_attr( $title ) . '"
3696
- >';
3697
- for ( $i = 0; $i < 7; $i++ ) {
3698
- $result .= '<option value="' . esc_attr( $vals[$i] ) . '" ' . ( $suba_order_by == $vals[$i] ? $sel : '' ) . ' >' . $opts[$i] . '</option>';
3699
- }
3700
- $result .= '
3701
- </select>
3702
- </div>';
3703
- wppa_echo( $result );
3704
 
3705
  // Check album order
3706
  if ( $albumorder_col != 'a_order' ) {
3
  * Package: wp-photo-album-plus
4
  *
5
  * create, edit and delete albums
6
+ * Version 8.2.03.006
7
  *
8
  */
9
 
435
  $the_js = '
436
  function wppaTryInheritCats( id ) {
437
 
438
+ var query = "' . esc_js( __( 'Are you sure you want to inherit categories to all (sub-)subalbums of this album?', 'wp-photo-album-plus' ) ) . '";
439
  if ( confirm( query ) ) {
440
  wppaAjaxUpdateAlbum( id, \'inherit_cats\', Math.random() );
441
  }
443
 
444
  function wppaTryAddCats( id ) {
445
 
446
+ var query = "' . esc_js( __( 'Are you sure you want to add the categories to all (sub-)subalbums of this album?', 'wp-photo-album-plus' ) ) . '";
447
  if ( confirm( query ) ) {
448
  wppaAjaxUpdateAlbum( id, \'inhadd_cats\', Math.random() );
449
  }
1048
  style="max-width: 200px;margin-right: 4px;">
1049
  <label
1050
  for="altthumb">' .
1051
+ __( 'Max subalbums', 'wp-photo-album-plus' ) . '
1052
  </label><br>
1053
  <select
1054
  id="maxchild"
1055
  onchange="wppaAjaxUpdateAlbum( ' . $id . ', \'max_children\', this )"
1056
+ title="' . esc_attr( 'This setting can only llimit the creation of subalbums at the frontend and looks at direct subalbums only', 'wp-photo-album-plus' ) . '"
1057
  >
1058
  <option value="0"' . ( $val == '0' ? $sel : '' ) . ' >' .
1059
  __( 'unlimited', 'wp-photo-album-plus' ) . '
1130
 
1131
  // Tree limit
1132
  {
1133
+ $title = __( 'The upload limit for this album and all its (sub-)subalbums.', 'wp-photo-album-plus' ) . ' ' .
1134
+ __( 'This setting overrules all other limits that may apply to this album or its (sub-)subalbums.', 'wp-photo-album-plus' ) . ' ' .
1135
  __( '0 means no limit.', 'wp-photo-album-plus' );
1136
  wppa_echo( '
1137
  <div class="left">
1437
  type="button"
1438
  class="wppa-admin-button button"
1439
  onclick="' . $onc . '"
1440
+ value="' . esc_attr( __( 'Create subalbum', 'wp-photo-album-plus' ) ) . '"
1441
  />' );
1442
  }
1443
 
1482
  <input
1483
  type="button"
1484
  class="wppa-admin-button button"
1485
+ title="' . esc_attr( __( 'Apply categories to all (sub-)subalbums.', 'wp-photo-album-plus' ) ) . '"
1486
  onclick="wppaTryInheritCats( ' . $id . ' )"
1487
  value="' . esc_attr( __( 'Apply Cats to subalbums', 'wp-photo-album-plus' ) ) . '"
1488
  />
1489
  <input
1490
  type="button"
1491
  class="wppa-admin-button button"
1492
+ title="' . esc_attr( __( 'Add categories to all (sub-)subalbums.', 'wp-photo-album-plus' ) ) . '"
1493
  onclick="wppaTryAddCats( ' . $id . ' )"
1494
  value="' . esc_attr( __( 'Add Cats to subalbums', 'wp-photo-album-plus' ) ) . '"
1495
  />' );
3521
  $opts = array( __( '--- random ---', 'wp-photo-album-plus' ),
3522
  __( '--- random featured ---', 'wp-photo-album-plus' ),
3523
  __( '--- most recent added ---', 'wp-photo-album-plus' ),
3524
+ __( '--- random from (sub-)subalbums ---', 'wp-photo-album-plus' ),
3525
+ __( '--- most recent from (sub-)subalbums ---', 'wp-photo-album-plus' ),
3526
  __( '--- according to albums photo sequence ---', 'wp-photo-album-plus' ),
3527
  );
3528
  $vals = array( '-9', '-1', '-2', '-3', '-4', '-5' );
3648
  }
3649
  }
3650
 
3651
+ // Subalbum order
3652
+ if ( $parent ) {
3653
  $sel = ' selected';
3654
  $opts = array(
3655
  __( '--- default ---', 'wp-photo-album-plus' ),
3670
  $dflt = $opts[$key];
3671
  }
3672
  }
3673
+
3674
+ $title = sprintf( __( 'The default is set in %s and is currently set to %s', 'wp-photo-album-plus' ), wppa_setting_path( 'b', 'misc', 1, 1 ), $dflt );
3675
+ $suba_order_by = wppa_get_album_item( $parent, 'suba_order_by' );
3676
+ $result = '
3677
+ <div style="margin-left:6px">
3678
+ <label
3679
+ for="subalbumorder">' .
3680
+ __( 'Subalbum sequence method', 'wp-photo-album-plus' ) . '
3681
+ </label><br>
3682
+ <select
3683
+ id="subalbumorder"
3684
+ style="max-width:200px;"
3685
+ onchange="
3686
+ wppaAjaxUpdateAlbum( ' . $parent . ', \'suba_order_by\', this );
3687
+ var ord=Math.abs(jQuery(this).val());
3688
+ var dft=Math.abs(' . wppa_opt('wppa_list_albums_by') . ');
3689
+ if (ord == 1 || (ord == 0 && dft == 1)) {
3690
+ jQuery(\'#wppa-album-sequence\').show();
3691
+ }
3692
+ else {
3693
+ jQuery(\'#wppa-album-sequence\').hide();
3694
+ }"
3695
+ title="' . esc_attr( $title ) . '"
3696
+ >';
3697
+ for ( $i = 0; $i < 7; $i++ ) {
3698
+ $result .= '<option value="' . esc_attr( $vals[$i] ) . '" ' . ( $suba_order_by == $vals[$i] ? $sel : '' ) . ' >' . $opts[$i] . '</option>';
3699
  }
3700
+ $result .= '
3701
+ </select>
3702
+ </div>';
3703
+ wppa_echo( $result );
3704
+ }
 
 
 
 
 
 
 
3705
 
3706
  // Check album order
3707
  if ( $albumorder_col != 'a_order' ) {
wppa-album-covers.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * Functions for album covers
6
- * Version 8.2.03.002
7
  *
8
  */
9
 
@@ -15,7 +15,7 @@ function wppa_album_cover( $id ) {
15
 
16
  // Find the album specific cover type
17
  $cover_type = wppa_get_album_item( $id, 'cover_type' );
18
- wppa_log('obs', 'album covertype='.$cover_type);
19
  // No type specified (0), use default
20
  if ( ! $cover_type ) {
21
  $cover_type = wppa_opt( 'cover_type' );
@@ -1424,7 +1424,7 @@ function wppa_get_coverphoto_id( $xalb = '' ) {
1424
  if ( $save_it ) {
1425
  wppa_update_album( array( 'id' => $xalb, 'main_photo' => $result['0'] ) );
1426
  wppa_cache_album( 'invalidate', $xalb );
1427
- wppa_log( 'obs', 'Cover photo of album ' . $xalb . ' set to ' . $result['0'] );
1428
  }
1429
  return $result['0'];
1430
  }
3
  * Package: wp-photo-album-plus
4
  *
5
  * Functions for album covers
6
+ * Version 8.2.03.006
7
  *
8
  */
9
 
15
 
16
  // Find the album specific cover type
17
  $cover_type = wppa_get_album_item( $id, 'cover_type' );
18
+ // wppa_log('obs', 'album covertype='.$cover_type);
19
  // No type specified (0), use default
20
  if ( ! $cover_type ) {
21
  $cover_type = wppa_opt( 'cover_type' );
1424
  if ( $save_it ) {
1425
  wppa_update_album( array( 'id' => $xalb, 'main_photo' => $result['0'] ) );
1426
  wppa_cache_album( 'invalidate', $xalb );
1427
+ // wppa_log( 'obs', 'Cover photo of album ' . $xalb . ' set to ' . $result['0'] );
1428
  }
1429
  return $result['0'];
1430
  }
wppa-cache.php CHANGED
@@ -3,7 +3,7 @@
3
  /*
4
  /* Contains all wppa smart cache functions
5
  /*
6
- /* Version 8.2.01.001
7
  */
8
 
9
  // Test for caching
@@ -381,13 +381,13 @@ global $wpdb;
381
  if ( function_exists( 'prune_super_cache' ) ) {
382
  prune_super_cache( $cache_path . 'supercache/', true );
383
  prune_super_cache( $cache_path, true );
384
- wppa_log('obs', 'Super cache cleared');
385
  }
386
 
387
  // W3 Total cache
388
  if ( function_exists( 'w3tc_pgcache_flush' ) ) {
389
  w3tc_pgcache_flush();
390
- wppa_log('obs', 'w3tc pgcache cleared');
391
  }
392
 
393
  // SG_CachePress
@@ -395,20 +395,20 @@ global $wpdb;
395
  $c = new SG_CachePress_Supercacher();
396
  if ( $c->purge_cache ) {
397
  $c->purge_cache();
398
- wppa_log('obs', 'SG CachePress Supercacher cache cleared');
399
  }
400
  }
401
 
402
  // Quick cache
403
  if ( isset($GLOBALS['quick_cache']) ) {
404
  $GLOBALS['quick_cache']->clear_cache();
405
- wppa_log('obs', 'Quick cache cleared');
406
  }
407
 
408
  // Comet cache
409
  if ( class_exists( 'comet_cache' ) ) {
410
  comet_cache::clear();
411
- wppa_log('obs', 'Comet cache cleared');
412
  }
413
 
414
  wppa_log( 'fso', 'All non wppa caches cleared' );
3
  /*
4
  /* Contains all wppa smart cache functions
5
  /*
6
+ /* Version 8.2.03.006
7
  */
8
 
9
  // Test for caching
381
  if ( function_exists( 'prune_super_cache' ) ) {
382
  prune_super_cache( $cache_path . 'supercache/', true );
383
  prune_super_cache( $cache_path, true );
384
+ // wppa_log('obs', 'Super cache cleared');
385
  }
386
 
387
  // W3 Total cache
388
  if ( function_exists( 'w3tc_pgcache_flush' ) ) {
389
  w3tc_pgcache_flush();
390
+ // wppa_log('obs', 'w3tc pgcache cleared');
391
  }
392
 
393
  // SG_CachePress
395
  $c = new SG_CachePress_Supercacher();
396
  if ( $c->purge_cache ) {
397
  $c->purge_cache();
398
+ // wppa_log('obs', 'SG CachePress Supercacher cache cleared');
399
  }
400
  }
401
 
402
  // Quick cache
403
  if ( isset($GLOBALS['quick_cache']) ) {
404
  $GLOBALS['quick_cache']->clear_cache();
405
+ // wppa_log('obs', 'Quick cache cleared');
406
  }
407
 
408
  // Comet cache
409
  if ( class_exists( 'comet_cache' ) ) {
410
  comet_cache::clear();
411
+ // wppa_log('obs', 'Comet cache cleared');
412
  }
413
 
414
  wppa_log( 'fso', 'All non wppa caches cleared' );
wppa-common-functions.php CHANGED
@@ -2,7 +2,7 @@
2
  /* wppa-common-functions.php
3
  *
4
  * Functions used in admin and in themes
5
- * Version 8.2.03.005
6
  *
7
  */
8
 
2
  /* wppa-common-functions.php
3
  *
4
  * Functions used in admin and in themes
5
+ * Version 8.2.03.006
6
  *
7
  */
8
 
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.2.03.002
7
  *
8
  */
9
 
@@ -150,7 +150,7 @@ global $wppa_endtime;
150
  // Pre-processing needed?
151
  if ( $lastid == '0' ) {
152
  update_option( $slug.'_status', 'Busy' );
153
- if ( wppa_is_cron() ) {
154
  wppa_log( 'Cron', '{b}' . $slug . '{/b} started. Allowed runtime: ' . ( $wppa_endtime - time() ) . 's. Cron id = ' . wppa_is_cron() );
155
  }
156
  else {
3
  * Package: wp-photo-album-plus
4
  *
5
  * Contains (not yet, but in the future maybe) all the maintenance routines
6
+ * Version 8.2.03.006
7
  *
8
  */
9
 
150
  // Pre-processing needed?
151
  if ( $lastid == '0' ) {
152
  update_option( $slug.'_status', 'Busy' );
153
+ if ( wppa_is_cron() ) {
154
  wppa_log( 'Cron', '{b}' . $slug . '{/b} started. Allowed runtime: ' . ( $wppa_endtime - time() ) . 's. Cron id = ' . wppa_is_cron() );
155
  }
156
  else {
wppa-privacy-policy.php CHANGED
@@ -4,7 +4,7 @@
4
  *
5
  * This file contains all procedures related to the privacy policy.
6
  *
7
- * Version 8.1.09.003
8
  */
9
 
10
  function wppa_comment_exporter( $email_address, $page = 1 ) {
@@ -23,7 +23,7 @@ global $wpdb;
23
  "LIMIT %d,%d", $email_address, ( $page - 1 ) * $number, $number
24
  ), ARRAY_A );
25
 
26
- wppa_log( 'obs', count($comments) .' comments found to export' );
27
 
28
  foreach ( (array) $comments as $comment ) {
29
 
@@ -85,7 +85,7 @@ global $wpdb;
85
  "DELETE FROM $wpdb->wppa_comments " .
86
  "WHERE email = %s ", $email_address ) );
87
 
88
- wppa_log( 'obs', $count . ' comments found to remove' );
89
 
90
  return array( 'items_removed' => true,
91
  'items_retained' => false,
@@ -131,7 +131,7 @@ global $wpdb;
131
  LIMIT %d,%d", $owner, $owner_display, ( $page - 1 ) * $number, $number
132
  ), ARRAY_A );
133
 
134
- wppa_log( 'obs', count($ratings) .' ratings found to export' );
135
 
136
  foreach ( (array) $ratings as $rating ) {
137
 
@@ -196,7 +196,7 @@ global $wpdb;
196
  WHERE user = %s
197
  OR user = %s", $owner, $owner_display ) );
198
 
199
- wppa_log( 'obs', $count . ' ratings found to remove' );
200
 
201
  // Need recalc when ratings are removed
202
  if ( $count ) {
@@ -550,7 +550,7 @@ function wppa_zip_addfile( $zip, $wppa_media_file, $wppa_media_name ) {
550
  wppa_log( 'err', $error );
551
  }
552
  else {
553
- wppa_log('obs', $wppa_media_file.' added as '. $wppa_media_name);
554
  }
555
 
556
  }
4
  *
5
  * This file contains all procedures related to the privacy policy.
6
  *
7
+ * Version 8.2.03.006
8
  */
9
 
10
  function wppa_comment_exporter( $email_address, $page = 1 ) {
23
  "LIMIT %d,%d", $email_address, ( $page - 1 ) * $number, $number
24
  ), ARRAY_A );
25
 
26
+ // wppa_log( 'obs', count($comments) .' comments found to export' );
27
 
28
  foreach ( (array) $comments as $comment ) {
29
 
85
  "DELETE FROM $wpdb->wppa_comments " .
86
  "WHERE email = %s ", $email_address ) );
87
 
88
+ // wppa_log( 'obs', $count . ' comments found to remove' );
89
 
90
  return array( 'items_removed' => true,
91
  'items_retained' => false,
131
  LIMIT %d,%d", $owner, $owner_display, ( $page - 1 ) * $number, $number
132
  ), ARRAY_A );
133
 
134
+ // wppa_log( 'obs', count($ratings) .' ratings found to export' );
135
 
136
  foreach ( (array) $ratings as $rating ) {
137
 
196
  WHERE user = %s
197
  OR user = %s", $owner, $owner_display ) );
198
 
199
+ // wppa_log( 'obs', $count . ' ratings found to remove' );
200
 
201
  // Need recalc when ratings are removed
202
  if ( $count ) {
550
  wppa_log( 'err', $error );
551
  }
552
  else {
553
+ // wppa_log('obs', $wppa_media_file.' added as '. $wppa_media_name);
554
  }
555
 
556
  }
wppa-search-widget.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * display the search widget
6
- * Version 8.2.01.006
7
  *
8
  */
9
 
@@ -113,7 +113,7 @@ class SearchPhotos extends WP_Widget {
113
  $body,
114
  __( 'Album', 'wp-photo-album-plus' ),
115
  false,
116
- __( 'If you want the search to be limited to a specific album and its (grand)children, select the album here.', 'wp-photo-album-plus' ) .
117
  ' ' .
118
  __( 'If you select an album here, it will overrule the previous checkbox using the album as a \'fixed\' root.', 'wp-photo-album-plus' )
119
  );
3
  * Package: wp-photo-album-plus
4
  *
5
  * display the search widget
6
+ * Version 8.2.03.006
7
  *
8
  */
9
 
113
  $body,
114
  __( 'Album', 'wp-photo-album-plus' ),
115
  false,
116
+ __( 'If you want the search to be limited to a specific album and its (sub-)subalbums, select the album here.', 'wp-photo-album-plus' ) .
117
  ' ' .
118
  __( 'If you select an album here, it will overrule the previous checkbox using the album as a \'fixed\' root.', 'wp-photo-album-plus' )
119
  );
wppa-session.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * Contains all session routines
6
- * Version 8.1.01.004
7
  *
8
  * Firefox modifies data in the superglobal $_SESSION.
9
  * See https://bugzilla.mozilla.org/show_bug.cgi?id=991019
@@ -93,7 +93,7 @@ global $wppa_session;
93
  return false;
94
  }
95
  else {
96
- wppa_log( 'Obs', 'Session ' . $iret . ' created after 1 retry for user ' . wppa_get_user() );
97
  }
98
  }
99
 
3
  * Package: wp-photo-album-plus
4
  *
5
  * Contains all session routines
6
+ * Version 8.2.03.006
7
  *
8
  * Firefox modifies data in the superglobal $_SESSION.
9
  * See https://bugzilla.mozilla.org/show_bug.cgi?id=991019
93
  return false;
94
  }
95
  else {
96
+ // wppa_log( 'Obs', 'Session ' . $iret . ' created after 1 retry for user ' . wppa_get_user() );
97
  }
98
  }
99
 
wppa-settings-autosave.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * manage all options
6
- * Version 8.2.03.004
7
  *
8
  */
9
 
@@ -1990,27 +1990,27 @@ global $wppa_subtab_names;
1990
  $linktype = wppa_opt( 'potd_linktype' );
1991
  if ( $linktype == 'custom' ) {
1992
 
1993
- $name = __( 'Link to:', 'wp-photo-album-plus' );
1994
  $desc = __( 'Enter the url. Do\'nt forget the HTTP://', 'wp-photo-album-plus' );
1995
  $slug = 'wppa_potd_linkurl';
1996
  $html = wppa_input( $slug, '85%', '', '', '', __( 'Type your custom url here', 'wp-photo-album-plus' ) );
1997
  wppa_setting_new( $slug, '1', $name, $desc, $html );
1998
 
1999
- $name = __( 'Link Title:', 'wp-photo-album-plus' );
2000
  $desc = __( 'The balloon text when hovering over the photo.', 'wp-photo-album-plus' );
2001
  $slug = 'wppa_potd_linktitle';
2002
  $html = wppa_input( $slug, '85%', '', '', '', __( 'Type the title here', 'wp-photo-album-plus' ) );
2003
  wppa_setting_new($slug, '2', $name, $desc, $html );
2004
  }
2005
  else {
2006
- $name = __( 'Links:', 'wp-photo-album-plus' );
2007
  $desc = __( 'Links are set on the Links tab.', 'wp-photo-album-plus' ) . wppa_see_also( 'links', '3', '1' );
2008
  $slug = 'wppa_potd_linkurl';
2009
  $html = '';
2010
  wppa_setting_new( $slug, '3', $name, $desc, $html );
2011
  }
2012
 
2013
- $name = __( 'Subtitle:', 'wp-photo-album-plus' );
2014
  $desc = __( 'Select the content of the subtitle.', 'wp-photo-album-plus' );
2015
  $slug = 'wppa_potd_subtitle';
2016
  $opts = array( __( '--- none ---', 'wp-photo-album-plus' ),
@@ -2028,13 +2028,13 @@ global $wppa_subtab_names;
2028
  $html = wppa_select( $slug, $opts, $vals );
2029
  wppa_setting_new( $slug, '4', $name, $desc, $html );
2030
 
2031
- $name = __( 'Counter:', 'wp-photo-album-plus' );
2032
  $desc = __( 'Display a counter of other photos in the album.', 'wp-photo-album-plus' );
2033
  $slug = 'wppa_potd_counter';
2034
  $html = wppa_checkbox( $slug );
2035
  wppa_setting_new( $slug, '5', $name, $desc, $html );
2036
 
2037
- $name = __( 'Link to:', 'wp-photo-album-plus' );
2038
  $desc = __( 'The counter links to.', 'wp-photo-album-plus' );
2039
  $slug = 'wppa_potd_counter_link';
2040
  $opts = array( __( 'thumbnails', 'wp-photo-album-plus' ),
@@ -2048,7 +2048,7 @@ global $wppa_subtab_names;
2048
  $html = wppa_select( $slug, $opts, $vals );
2049
  wppa_setting_new( $slug, '5a', $name, $desc, $html );
2050
 
2051
- $name = __( 'Type of album(s) to use:', 'wp-photo-album-plus' );
2052
  $desc = __( 'Select physical or virtual.', 'wp-photo-album-plus' );
2053
  $slug = 'wppa_potd_album_type';
2054
  $opts = array( __( 'physical albums', 'wp-photo-album-plus' ),
@@ -2060,7 +2060,7 @@ global $wppa_subtab_names;
2060
  $html = wppa_select( $slug, $opts, $vals, 'wppaRefreshAfter();' );
2061
  wppa_setting_new( $slug, '6', $name, $desc, $html );
2062
 
2063
- $name = __( 'Albums to use:', 'wp-photo-album-plus' );
2064
  $desc = __( 'Select the albums to use for the photo of the day.', 'wp-photo-album-plus' );
2065
  $slug = 'wppa_potd_album';
2066
  if ( wppa_get_option( 'wppa_potd_album_type' ) == 'physical' ) {
@@ -2090,7 +2090,6 @@ global $wppa_subtab_names;
2090
  wppa_setting_new( $slug, '7', $name, $desc, $html );
2091
  }
2092
  else {
2093
- $desc = __( 'Select the albums to use for the photo of the day.', 'wp-photo-album-plus' );
2094
  $opts = array( __( '- all albums -' , 'wp-photo-album-plus' ),
2095
  __( '- all -separate- albums -' , 'wp-photo-album-plus' ),
2096
  __( '- all albums except -separate-' , 'wp-photo-album-plus' ),
@@ -2101,25 +2100,25 @@ global $wppa_subtab_names;
2101
  'all-sep',
2102
  'topten',
2103
  );
2104
- $html = wppa_select( $slug, $opts, $vals );
2105
  wppa_setting_new( $slug, '8', $name, $desc, $html );
2106
  }
2107
 
2108
  if ( wppa_get_option( 'wppa_potd_album_type' ) == 'physical' ) {
2109
- $name = __( 'Include (grand)children:', 'wp-photo-album-plus' );
2110
  $desc = __( 'Include the photos of all subalbums?', 'wp-photo-album-plus' );
2111
  $slug = 'wppa_potd_include_subs';
2112
  $html = wppa_checkbox( $slug, 'wppaRefreshAfter();' );
2113
  wppa_setting_new( $slug, '9', $name, $desc, $html );
2114
 
2115
- $name = __( 'Inverse selection:', 'wp-photo-album-plus' );
2116
  $desc = __( 'Use any album, except the selection made above.', 'wp-photo-album-plus' );
2117
  $slug = 'wppa_potd_inverse';
2118
  $html = wppa_checkbox( $slug, 'wppaRefreshAfter();' );
2119
  wppa_setting_new( $slug, '10', $name, $desc, $html );
2120
  }
2121
 
2122
- $name = __( 'Status filter:', 'wp-photo-album-plus' );
2123
  $desc = __( 'Use only photos with a certain status.', 'wp-photo-album-plus' );
2124
  $slug = 'wppa_potd_status_filter';
2125
  $opts = array( __( '- none -', 'wp-photo-album-plus' ),
@@ -2141,7 +2140,7 @@ global $wppa_subtab_names;
2141
  $html = wppa_select( $slug, $opts, $vals );
2142
  wppa_setting_new( $slug, '11', $name, $desc, $html );
2143
 
2144
- $name = __( 'Display method:', 'wp-photo-album-plus' );
2145
  $desc = __( 'Select the way a photo will be selected.', 'wp-photo-album-plus' );
2146
  $slug = 'wppa_potd_method';
2147
  $opts = array( __( 'Fixed photo', 'wp-photo-album-plus' ),
@@ -2158,7 +2157,7 @@ global $wppa_subtab_names;
2158
  wppa_setting_new( $slug, '12', $name, $desc, $html );
2159
 
2160
  if ( wppa_get_option( 'wppa_potd_method' ) == '4' ) { // Change every
2161
- $name = __( 'Change every period:', 'wp-photo-album-plus' );
2162
  $desc = __( 'The time period a certain photo is used.', 'wp-photo-album-plus' );
2163
  $slug = 'wppa_potd_period';
2164
  $opts = array( __( 'pageview.', 'wp-photo-album-plus' ),
@@ -5658,8 +5657,8 @@ global $wppa_subtab_names;
5658
  $html1 = wppa_select($slug1, $opts, $vals, 'wppaRefreshAfter();');
5659
  $opts = array(
5660
  __('No display at all', 'wp-photo-album-plus' ),
5661
- __('A list with sub(sub) albums', 'wp-photo-album-plus' ),
5662
- __('A list of children only', 'wp-photo-album-plus' ),
5663
  __('An enumeration of names', 'wp-photo-album-plus' ),
5664
  __('Micro thumbnails', 'wp-photo-album-plus' ),
5665
  );
@@ -9729,8 +9728,8 @@ global $wppa_subtab_names;
9729
  $opts = array( __('--- random ---', 'wp-photo-album-plus' ),
9730
  __('--- random featured ---', 'wp-photo-album-plus' ),
9731
  __('--- most recent added ---', 'wp-photo-album-plus' ),
9732
- __('--- random from (grand)children ---', 'wp-photo-album-plus' ),
9733
- __('--- most recent from (grand)children ---', 'wp-photo-album-plus' ),
9734
  __('--- according to albums photo sequence ---', 'wp-photo-album-plus' ),
9735
  );
9736
  $vals = array('-9', '-1', '-2', '-3', '-4', '-5');
3
  * Package: wp-photo-album-plus
4
  *
5
  * manage all options
6
+ * Version 8.2.03.006
7
  *
8
  */
9
 
1990
  $linktype = wppa_opt( 'potd_linktype' );
1991
  if ( $linktype == 'custom' ) {
1992
 
1993
+ $name = __( 'Link to', 'wp-photo-album-plus' );
1994
  $desc = __( 'Enter the url. Do\'nt forget the HTTP://', 'wp-photo-album-plus' );
1995
  $slug = 'wppa_potd_linkurl';
1996
  $html = wppa_input( $slug, '85%', '', '', '', __( 'Type your custom url here', 'wp-photo-album-plus' ) );
1997
  wppa_setting_new( $slug, '1', $name, $desc, $html );
1998
 
1999
+ $name = __( 'Link Title', 'wp-photo-album-plus' );
2000
  $desc = __( 'The balloon text when hovering over the photo.', 'wp-photo-album-plus' );
2001
  $slug = 'wppa_potd_linktitle';
2002
  $html = wppa_input( $slug, '85%', '', '', '', __( 'Type the title here', 'wp-photo-album-plus' ) );
2003
  wppa_setting_new($slug, '2', $name, $desc, $html );
2004
  }
2005
  else {
2006
+ $name = __( 'Links', 'wp-photo-album-plus' );
2007
  $desc = __( 'Links are set on the Links tab.', 'wp-photo-album-plus' ) . wppa_see_also( 'links', '3', '1' );
2008
  $slug = 'wppa_potd_linkurl';
2009
  $html = '';
2010
  wppa_setting_new( $slug, '3', $name, $desc, $html );
2011
  }
2012
 
2013
+ $name = __( 'Subtitle', 'wp-photo-album-plus' );
2014
  $desc = __( 'Select the content of the subtitle.', 'wp-photo-album-plus' );
2015
  $slug = 'wppa_potd_subtitle';
2016
  $opts = array( __( '--- none ---', 'wp-photo-album-plus' ),
2028
  $html = wppa_select( $slug, $opts, $vals );
2029
  wppa_setting_new( $slug, '4', $name, $desc, $html );
2030
 
2031
+ $name = __( 'Counter', 'wp-photo-album-plus' );
2032
  $desc = __( 'Display a counter of other photos in the album.', 'wp-photo-album-plus' );
2033
  $slug = 'wppa_potd_counter';
2034
  $html = wppa_checkbox( $slug );
2035
  wppa_setting_new( $slug, '5', $name, $desc, $html );
2036
 
2037
+ $name = __( 'Link to', 'wp-photo-album-plus' );
2038
  $desc = __( 'The counter links to.', 'wp-photo-album-plus' );
2039
  $slug = 'wppa_potd_counter_link';
2040
  $opts = array( __( 'thumbnails', 'wp-photo-album-plus' ),
2048
  $html = wppa_select( $slug, $opts, $vals );
2049
  wppa_setting_new( $slug, '5a', $name, $desc, $html );
2050
 
2051
+ $name = __( 'Type of album(s) to use', 'wp-photo-album-plus' );
2052
  $desc = __( 'Select physical or virtual.', 'wp-photo-album-plus' );
2053
  $slug = 'wppa_potd_album_type';
2054
  $opts = array( __( 'physical albums', 'wp-photo-album-plus' ),
2060
  $html = wppa_select( $slug, $opts, $vals, 'wppaRefreshAfter();' );
2061
  wppa_setting_new( $slug, '6', $name, $desc, $html );
2062
 
2063
+ $name = __( 'Albums to use', 'wp-photo-album-plus' );
2064
  $desc = __( 'Select the albums to use for the photo of the day.', 'wp-photo-album-plus' );
2065
  $slug = 'wppa_potd_album';
2066
  if ( wppa_get_option( 'wppa_potd_album_type' ) == 'physical' ) {
2090
  wppa_setting_new( $slug, '7', $name, $desc, $html );
2091
  }
2092
  else {
 
2093
  $opts = array( __( '- all albums -' , 'wp-photo-album-plus' ),
2094
  __( '- all -separate- albums -' , 'wp-photo-album-plus' ),
2095
  __( '- all albums except -separate-' , 'wp-photo-album-plus' ),
2100
  'all-sep',
2101
  'topten',
2102
  );
2103
+ $html = wppa_select( $slug, $opts, $vals );
2104
  wppa_setting_new( $slug, '8', $name, $desc, $html );
2105
  }
2106
 
2107
  if ( wppa_get_option( 'wppa_potd_album_type' ) == 'physical' ) {
2108
+ $name = __( 'Include (sub-)subalbums', 'wp-photo-album-plus' );
2109
  $desc = __( 'Include the photos of all subalbums?', 'wp-photo-album-plus' );
2110
  $slug = 'wppa_potd_include_subs';
2111
  $html = wppa_checkbox( $slug, 'wppaRefreshAfter();' );
2112
  wppa_setting_new( $slug, '9', $name, $desc, $html );
2113
 
2114
+ $name = __( 'Inverse selection', 'wp-photo-album-plus' );
2115
  $desc = __( 'Use any album, except the selection made above.', 'wp-photo-album-plus' );
2116
  $slug = 'wppa_potd_inverse';
2117
  $html = wppa_checkbox( $slug, 'wppaRefreshAfter();' );
2118
  wppa_setting_new( $slug, '10', $name, $desc, $html );
2119
  }
2120
 
2121
+ $name = __( 'Status filter', 'wp-photo-album-plus' );
2122
  $desc = __( 'Use only photos with a certain status.', 'wp-photo-album-plus' );
2123
  $slug = 'wppa_potd_status_filter';
2124
  $opts = array( __( '- none -', 'wp-photo-album-plus' ),
2140
  $html = wppa_select( $slug, $opts, $vals );
2141
  wppa_setting_new( $slug, '11', $name, $desc, $html );
2142
 
2143
+ $name = __( 'Display method', 'wp-photo-album-plus' );
2144
  $desc = __( 'Select the way a photo will be selected.', 'wp-photo-album-plus' );
2145
  $slug = 'wppa_potd_method';
2146
  $opts = array( __( 'Fixed photo', 'wp-photo-album-plus' ),
2157
  wppa_setting_new( $slug, '12', $name, $desc, $html );
2158
 
2159
  if ( wppa_get_option( 'wppa_potd_method' ) == '4' ) { // Change every
2160
+ $name = __( 'Change every period', 'wp-photo-album-plus' );
2161
  $desc = __( 'The time period a certain photo is used.', 'wp-photo-album-plus' );
2162
  $slug = 'wppa_potd_period';
2163
  $opts = array( __( 'pageview.', 'wp-photo-album-plus' ),
5657
  $html1 = wppa_select($slug1, $opts, $vals, 'wppaRefreshAfter();');
5658
  $opts = array(
5659
  __('No display at all', 'wp-photo-album-plus' ),
5660
+ __('A list with sub-(sub) albums', 'wp-photo-album-plus' ),
5661
+ __('A list of subalbums', 'wp-photo-album-plus' ),
5662
  __('An enumeration of names', 'wp-photo-album-plus' ),
5663
  __('Micro thumbnails', 'wp-photo-album-plus' ),
5664
  );
9728
  $opts = array( __('--- random ---', 'wp-photo-album-plus' ),
9729
  __('--- random featured ---', 'wp-photo-album-plus' ),
9730
  __('--- most recent added ---', 'wp-photo-album-plus' ),
9731
+ __('--- random from (sub-)subalbums ---', 'wp-photo-album-plus' ),
9732
+ __('--- most recent from (sub-)subalbums ---', 'wp-photo-album-plus' ),
9733
  __('--- according to albums photo sequence ---', 'wp-photo-album-plus' ),
9734
  );
9735
  $vals = array('-9', '-1', '-2', '-3', '-4', '-5');
wppa-setup.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * Contains all the setup stuff
6
- * Version 8.2.03.005
7
  *
8
  */
9
 
@@ -228,10 +228,10 @@ global $wppa_error;
228
  $idx = 0;
229
  while ( $idx < 9 ) {
230
  if ( ! in_array( $tn[$idx], $existing_tables ) ) {
231
- wppa_log( 'obs', 'Attempting to create ' . $tn[$idx] );
232
  $bret = $wpdb->query( $tc[$idx] );
233
  if ( $bret ) {
234
- wppa_log( 'obs', $tn[$idx] . ' successfully created' );
235
  }
236
  else {
237
  wppa_log( 'err', 'Failed to create ' . $tn[$idx] );
@@ -673,7 +673,7 @@ static $user;
673
  $deftags = wppa_opt( 'grant_tags' );
674
  $id = wppa_create_album_entry( array ( 'name' => $name, 'description' => $desc, 'a_parent' => $parent, 'cats' => $cats, 'default_tags' => $deftags ) );
675
  if ( $id ) {
676
- wppa_log( 'Obs', 'Album ' . wppa_get_album_name( $parent ) . '(' . $parent . ')' .' -> ' . $id . ' for ' . $user . ' created.' );
677
  $albums_created[] = $id;
678
 
679
  // Add this parent to the array of my albums parents
3
  * Package: wp-photo-album-plus
4
  *
5
  * Contains all the setup stuff
6
+ * Version 8.2.03.006
7
  *
8
  */
9
 
228
  $idx = 0;
229
  while ( $idx < 9 ) {
230
  if ( ! in_array( $tn[$idx], $existing_tables ) ) {
231
+ // wppa_log( 'obs', 'Attempting to create ' . $tn[$idx] );
232
  $bret = $wpdb->query( $tc[$idx] );
233
  if ( $bret ) {
234
+ // wppa_log( 'obs', $tn[$idx] . ' successfully created' );
235
  }
236
  else {
237
  wppa_log( 'err', 'Failed to create ' . $tn[$idx] );
673
  $deftags = wppa_opt( 'grant_tags' );
674
  $id = wppa_create_album_entry( array ( 'name' => $name, 'description' => $desc, 'a_parent' => $parent, 'cats' => $cats, 'default_tags' => $deftags ) );
675
  if ( $id ) {
676
+ // wppa_log( 'Obs', 'Album ' . wppa_get_album_name( $parent ) . '(' . $parent . ')' .' -> ' . $id . ' for ' . $user . ' created.' );
677
  $albums_created[] = $id;
678
 
679
  // Add this parent to the array of my albums parents
wppa-utils.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * Contains low-level utility routines
6
- * Version 8.2.03.004
7
  *
8
  */
9
 
@@ -1328,7 +1328,7 @@ global $wpdb;
1328
 
1329
  // Check if album exists, otherwise recreate it
1330
  if ( ! wppa_album_exists( $real_alb ) ) {
1331
- wppa_log('obs', 'Trying to create album '.$real_alb);
1332
  $iret =
1333
  wppa_create_album_entry(
1334
  array( 'id' => $real_alb,
3
  * Package: wp-photo-album-plus
4
  *
5
  * Contains low-level utility routines
6
+ * Version 8.2.03.006
7
  *
8
  */
9
 
1328
 
1329
  // Check if album exists, otherwise recreate it
1330
  if ( ! wppa_album_exists( $real_alb ) ) {
1331
+ // wppa_log('obs', 'Trying to create album '.$real_alb);
1332
  $iret =
1333
  wppa_create_album_entry(
1334
  array( 'id' => $real_alb,
wppa-widget-functions.php CHANGED
@@ -2,7 +2,7 @@
2
  /* wppa-widget-functions.php
3
  /* Package: wp-photo-album-plus
4
  /*
5
- /* Version 8.2.01.001
6
  /*
7
  */
8
 
2
  /* wppa-widget-functions.php
3
  /* Package: wp-photo-album-plus
4
  /*
5
+ /* Version 8.2.03.006
6
  /*
7
  */
8
 
wppa-wpdb-insert.php CHANGED
@@ -547,7 +547,7 @@ global $wpdb;
547
  $args['upload_limit_tree'],
548
  $args['scheduledel'],
549
  $args['status'],
550
- $args['max_children'],
551
  );
552
  $iret = $wpdb->query( $query );
553
 
547
  $args['upload_limit_tree'],
548
  $args['scheduledel'],
549
  $args['status'],
550
+ $args['max_children']
551
  );
552
  $iret = $wpdb->query( $query );
553
 
wppa-wpdb-update.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * Contains low-level wpdb routines that update records
6
- * Version 8.2.03.005
7
  *
8
  */
9
 
3
  * Package: wp-photo-album-plus
4
  *
5
  * Contains low-level wpdb routines that update records
6
+ * Version 8.2.03.006
7
  *
8
  */
9
 
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.2.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.2.03.005'; // WPPA software version
28
  global $wppa_revno;
29
  $wppa_revno = str_replace( '.', '', $wppa_api_version ); // WPPA db version
30
 
@@ -77,9 +77,7 @@ if ( ! defined('WPPA_MULTISITE_BLOGSDIR') ) {
77
 
78
  /* To run WPPA+ in a multisite new style, new implementation mode,
79
  /* add to wp-config.php: define('WPPA_MULTISITE_INDIVIDUAL', true); */
80
- if ( ! defined('WPPA_MULTISITE_INDIVIDUAL') ) {
81
- define( 'WPPA_MULTISITE_INDIVIDUAL', false );
82
- }
83
 
84
  /* Choose the right db prifix */
85
  if ( is_multisite() && WPPA_MULTISITE_GLOBAL ) {
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.2.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.2.03.006'; // WPPA software version
28
  global $wppa_revno;
29
  $wppa_revno = str_replace( '.', '', $wppa_api_version ); // WPPA db version
30
 
77
 
78
  /* To run WPPA+ in a multisite new style, new implementation mode,
79
  /* add to wp-config.php: define('WPPA_MULTISITE_INDIVIDUAL', true); */
80
+ defined('WPPA_MULTISITE_INDIVIDUAL') or define( 'WPPA_MULTISITE_INDIVIDUAL', false );
 
 
81
 
82
  /* Choose the right db prifix */
83
  if ( is_multisite() && WPPA_MULTISITE_GLOBAL ) {