WP Photo Album Plus - Version 8.1.08.002

Version Description

= 8.1.06 =

  • 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.1.08.002
Comparing to
See all releases

Code changes from version 8.1.08.001 to 8.1.08.002

changelog.txt CHANGED
@@ -3,6 +3,8 @@ WP Photo Album Plus Changelog
3
  = 8.1.08 =
4
 
5
  * New selectable item in Album cover (title) link: manual entered. If selected, an extra input field appears where you can enter any url the cover title should link to.
 
 
6
 
7
  = 8.1.07 =
8
 
3
  = 8.1.08 =
4
 
5
  * New selectable item in Album cover (title) link: manual entered. If selected, an extra input field appears where you can enter any url the cover title should link to.
6
+ * Mailing feuploadnotify did not always work. Fixed.
7
+ * All calendar types are now properly translated.
8
 
9
  = 8.1.07 =
10
 
wppa-boxes-html.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * Various wppa boxes
6
- * Version 8.1.08.001
7
  *
8
  */
9
 
@@ -5338,10 +5338,10 @@ global $photos_used;
5338
  cursor:pointer;
5339
  width:' . $cw . 'px;"
5340
  >' .
5341
- $date->format( 'M' ) . '<br>' .
5342
- $date->format( 'd' ) . '<br>' .
5343
- $date->format( 'D' ) . '<br>' .
5344
- $date->format( 'Y' ) . '<br>' .
5345
  '(' . $dates[$keys[$day]] . ')' . '
5346
  </div>
5347
  </a>';
@@ -5378,10 +5378,10 @@ global $photos_used;
5378
  cursor:pointer;
5379
  width:' . $cw . 'px;"
5380
  >' .
5381
- date( 'M', $date * $secinday ) . '<br>' .
5382
- date( 'd', $date * $secinday ) . '<br>' .
5383
- date( 'D', $date * $secinday ) . '<br>' .
5384
- date( 'Y', $date * $secinday ) . '<br>' .
5385
  '(' . $dates[$keys[$day]] . ')' . '
5386
  </div>
5387
  </a>';
3
  * Package: wp-photo-album-plus
4
  *
5
  * Various wppa boxes
6
+ * Version 8.1.08.002
7
  *
8
  */
9
 
5338
  cursor:pointer;
5339
  width:' . $cw . 'px;"
5340
  >' .
5341
+ __( $date->format( 'M' ) ) . '<br>' .
5342
+ __( $date->format( 'd' ) ) . '<br>' .
5343
+ __( $date->format( 'D' ) ) . '<br>' .
5344
+ __( $date->format( 'Y' ) ) . '<br>' .
5345
  '(' . $dates[$keys[$day]] . ')' . '
5346
  </div>
5347
  </a>';
5378
  cursor:pointer;
5379
  width:' . $cw . 'px;"
5380
  >' .
5381
+ __( date( 'M', $date * $secinday ) ) . '<br>' .
5382
+ __( date( 'd', $date * $secinday ) ) . '<br>' .
5383
+ __( date( 'D', $date * $secinday ) ) . '<br>' .
5384
+ __( date( 'Y', $date * $secinday ) ) . '<br>' .
5385
  '(' . $dates[$keys[$day]] . ')' . '
5386
  </div>
5387
  </a>';
wppa-tinymce-shortcodes.php CHANGED
@@ -2,7 +2,7 @@
2
  /* wppa-tinymce-shortcodes.php
3
  * Pachkage: wp-photo-album-plus
4
  *
5
- * Version 8.1.08.001
6
  */
7
 
8
  if ( ! defined( 'ABSPATH' ) )
@@ -263,9 +263,6 @@ global $wpdb;
263
  name="album"
264
  multiple="multiple"
265
  onchange="wppaGalleryEvaluate()"
266
- onfocus="function(e){e.stopImmediatePropagation();e.preventDefault();};alert(\'focus\');return fakse;"
267
- onwheel="function(e){e.stopImmediatePropagation();e.preventDefault();};alert(\'wheel\');return fakse;"
268
- onscroll="function(e){e.stopImmediatePropagation();e.preventDefault();};alert(\'scroll\');return false;"
269
  >';
270
  if ( $albums ) {
271
 
@@ -319,7 +316,6 @@ global $wpdb;
319
  name="album"
320
  multiple
321
  onchange="wppaGalleryEvaluate()"
322
- onwheel="function(e){e.stopPropagation();}"
323
  >';
324
  if ( $albums ) {
325
 
2
  /* wppa-tinymce-shortcodes.php
3
  * Pachkage: wp-photo-album-plus
4
  *
5
+ * Version 8.1.08.002
6
  */
7
 
8
  if ( ! defined( 'ABSPATH' ) )
263
  name="album"
264
  multiple="multiple"
265
  onchange="wppaGalleryEvaluate()"
 
 
 
266
  >';
267
  if ( $albums ) {
268
 
316
  name="album"
317
  multiple
318
  onchange="wppaGalleryEvaluate()"
 
319
  >';
320
  if ( $albums ) {
321
 
wppa-wpdb-insert.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * Contains low-level wpdb routines that add new records
6
- * Version 8.1.00.008
7
  *
8
  */
9
 
@@ -449,6 +449,7 @@ global $wpdb;
449
  'p_order_by' => '0',
450
  'cover_linktype' => wppa_opt( 'default_album_linktype' ),
451
  'cover_linkpage' => '0',
 
452
  'owner' => wppa_get_user(),
453
  'timestamp' => time(),
454
  'modified' => time(),
@@ -485,6 +486,7 @@ global $wpdb;
485
  p_order_by,
486
  cover_linktype,
487
  cover_linkpage,
 
488
  owner,
489
  timestamp,
490
  modified,
@@ -509,7 +511,7 @@ global $wpdb;
509
  scheduledel,
510
  status
511
  )
512
- VALUES ( %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s ,%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s )",
513
  $args['id'],
514
  trim( $args['name'] ),
515
  trim( $args['description'] ),
@@ -519,6 +521,7 @@ global $wpdb;
519
  $args['p_order_by'],
520
  $args['cover_linktype'],
521
  $args['cover_linkpage'],
 
522
  $args['owner'],
523
  $args['timestamp'],
524
  $args['modified'],
3
  * Package: wp-photo-album-plus
4
  *
5
  * Contains low-level wpdb routines that add new records
6
+ * Version 8.1.08.002
7
  *
8
  */
9
 
449
  'p_order_by' => '0',
450
  'cover_linktype' => wppa_opt( 'default_album_linktype' ),
451
  'cover_linkpage' => '0',
452
+ 'cover_link' => '',
453
  'owner' => wppa_get_user(),
454
  'timestamp' => time(),
455
  'modified' => time(),
486
  p_order_by,
487
  cover_linktype,
488
  cover_linkpage,
489
+ cover_link,
490
  owner,
491
  timestamp,
492
  modified,
511
  scheduledel,
512
  status
513
  )
514
+ VALUES ( %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s ,%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s )",
515
  $args['id'],
516
  trim( $args['name'] ),
517
  trim( $args['description'] ),
521
  $args['p_order_by'],
522
  $args['cover_linktype'],
523
  $args['cover_linkpage'],
524
+ $args['cover_link'],
525
  $args['owner'],
526
  $args['timestamp'],
527
  $args['modified'],
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.0.09.002
7
  *
8
  */
9
 
@@ -97,10 +97,13 @@ global $wpdb;
97
  }
98
  break;
99
  case 'cover_linktype':
100
- if ( in_array( $itemvalue, array( 'content', 'albums', 'thumbs', 'slide', 'page', 'none' ) ) ) {
101
  $doit = true;
102
  }
103
  break;
 
 
 
104
  case 'zoomable':
105
  if ( in_array( $itemmvalue, array( 'on', '', 'off' ) ) ) {
106
  $doit = true;
@@ -130,6 +133,9 @@ global $wpdb;
130
  wppa_cache_album( 'invalidate' );
131
  }
132
  }
 
 
 
133
  }
134
 
135
  // Update index
3
  * Package: wp-photo-album-plus
4
  *
5
  * Contains low-level wpdb routines that update records
6
+ * Version 8.1.08.002
7
  *
8
  */
9
 
97
  }
98
  break;
99
  case 'cover_linktype':
100
+ if ( in_array( $itemvalue, array( 'content', 'albums', 'thumbs', 'slide', 'page', 'manual', 'none' ) ) ) {
101
  $doit = true;
102
  }
103
  break;
104
+ case 'cover_link':
105
+ $itemvalue = wp_kses( $itemvalue, array(), wp_allowed_protocols() ); // Make sure its an url and protocol is safe
106
+ $doit = true;
107
  case 'zoomable':
108
  if ( in_array( $itemmvalue, array( 'on', '', 'off' ) ) ) {
109
  $doit = true;
133
  wppa_cache_album( 'invalidate' );
134
  }
135
  }
136
+ else {
137
+ wppa_log( 'war', $itemname . ' not updated to ' . $itemvalue . ' for album number ' . $id );
138
+ }
139
  }
140
 
141
  // Update index
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.1.08.001
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.1.08.001'; // 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.1.08.002
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.1.08.002'; // WPPA software version
28
  global $wppa_revno;
29
  $wppa_revno = str_replace( '.', '', $wppa_api_version ); // WPPA db version
30