WP Photo Album Plus - Version 6.4.13

Version Description

Download this release

Release Info

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

Code changes from version 6.4.12 to 6.4.13

Files changed (3) hide show
  1. readme.txt +8 -2
  2. wppa-photo-admin-autosave.php +19 -7
  3. wppa.php +3 -3
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
5
- Version: 6.4.12
6
- Stable tag: 6.4.11
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: http://wppa.opajaap.nl/changelog/
182
 
 
 
 
 
 
 
183
  = 6.4.12 =
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
5
+ Version: 6.4.13
6
+ Stable tag: 6.4.12
7
  Author: J.N. Breetvelt
8
  Author URI: http://www.opajaap.nl/
9
  Requires at least: 3.9
180
 
181
  See for additional information: http://wppa.opajaap.nl/changelog/
182
 
183
+ = 6.4.13 =
184
+
185
+ = Bug Fixes =
186
+
187
+ * Delete photo did not work on the album admin page due to a programming error. Fixed.
188
+
189
  = 6.4.12 =
190
 
191
  = Bug Fixes =
wppa-photo-admin-autosave.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * edit and delete photos
6
- * Version 6.4.12
7
  *
8
  */
9
 
@@ -360,8 +360,12 @@ global $wpdb;
360
  <input
361
  type="button"
362
  style=""
363
- onclick="if( document.getElementById( 'moveto-<?php echo( $photo['id'] ) ?>' ).value != 0 ) { if ( confirm( '<?php esc_js( _e( 'Are you sure you want to move this photo?' , 'wp-photo-album-plus') ) ?>' ) ) wppaAjaxUpdatePhoto( <?php echo $photo['id'] ?>, 'moveto', document.getElementById( 'moveto-<?php echo( $photo['id'] ) ?>' ) ) } else { alert( '<?php echo esc_js( __( 'Please select an album to move the photo to first.' , 'wp-photo-album-plus') ) ?>' ); return false;}"
364
- value="<?php echo ( wppa_is_video( $photo['id'] ) ? esc_attr( __( 'Move video to' , 'wp-photo-album-plus') ) : esc_attr( __( 'Move photo to' , 'wp-photo-album-plus') ) ) ?>"
 
 
 
 
365
  />
366
  </th>
367
  <td >
@@ -373,8 +377,13 @@ global $wpdb;
373
  <th >
374
  <input type="button"
375
  style=""
376
- onclick="if ( document.getElementById( 'copyto-<?php echo( $photo['id'] ) ?>' ).value != 0 ) { if ( confirm( '<?php esc_js( _e( 'Are you sure you want to copy this photo?' , 'wp-photo-album-plus') ) ?>' ) ) wppaAjaxUpdatePhoto( <?php echo $photo['id'] ?>, 'copyto', document.getElementById( 'copyto-<?php echo( $photo['id'] ) ?>' ) ) } else { alert( '<?php echo esc_js( __( 'Please select an album to copy the photo to first.' , 'wp-photo-album-plus') ) ?>' ); return false;}"
377
- value="<?php echo ( wppa_is_video( $photo['id'] ) ? esc_attr( __( 'Copy video to' , 'wp-photo-album-plus') ) : esc_attr( __( 'Copy photo to' , 'wp-photo-album-plus') ) ) ?>" />
 
 
 
 
 
378
  </th>
379
  <td >
380
  <select id="copyto-<?php echo( $photo['id'] ) ?>" style="width:100%;" ><?php echo $album_select[$photo['album']] ?></select>
@@ -389,8 +398,11 @@ global $wpdb;
389
  <input
390
  type="button"
391
  style="color:red;"
392
- <?php $q = wppa_is_video() ? _e( 'Are you sure you want to delete this video?' , 'wp-photo-album-plus') : _e( 'Are you sure you want to delete this photo?' , 'wp-photo-album-plus') ?>
393
- onclick="if ( confirm( '<?php $q ?>' ) ) wppaAjaxDeletePhoto( <?php echo $photo['id'] ?> )"
 
 
 
394
  value="<?php echo ( wppa_is_video( $photo['id'] ) ? esc_attr( __( 'Delete video' , 'wp-photo-album-plus') ) : esc_attr( __( 'Delete photo' , 'wp-photo-album-plus') ) ) ?>"
395
  />
396
  </th>
3
  * Package: wp-photo-album-plus
4
  *
5
  * edit and delete photos
6
+ * Version 6.4.13
7
  *
8
  */
9
 
360
  <input
361
  type="button"
362
  style=""
363
+ <?php $q = wppa_is_video( $photo['id'] ) ? esc_js( __( 'Are you sure you want to move this video?' , 'wp-photo-album-plus') ) : esc_js( __( 'Are you sure you want to move this photo?' , 'wp-photo-album-plus') ) ?>
364
+ onclick="if( document.getElementById( 'moveto-<?php echo( $photo['id'] ) ?>' ).value != 0 ) { if ( confirm( '<?php echo $q ?>' ) ) wppaAjaxUpdatePhoto( <?php echo $photo['id'] ?>, 'moveto', document.getElementById( 'moveto-<?php echo( $photo['id'] ) ?>' ) ) } else { alert( '<?php echo esc_js( __( 'Please select an album to move to first.' , 'wp-photo-album-plus') ) ?>' ); return false;}"
365
+ value="<?php
366
+ echo ( wppa_is_video( $photo['id'] ) ?
367
+ esc_attr( __( 'Move video to' , 'wp-photo-album-plus') ) :
368
+ esc_attr( __( 'Move photo to' , 'wp-photo-album-plus') ) ) ?>"
369
  />
370
  </th>
371
  <td >
377
  <th >
378
  <input type="button"
379
  style=""
380
+ <?php $q = wppa_is_video( $photo['id'] ) ? esc_js( __( 'Are you sure you want to copy this video?' , 'wp-photo-album-plus') ) : esc_js( __( 'Are you sure you want to copy this photo?' , 'wp-photo-album-plus') ) ?>
381
+ onclick="if ( document.getElementById( 'copyto-<?php echo( $photo['id'] ) ?>' ).value != 0 ) { if ( confirm( '<?php echo $q ?>' ) ) wppaAjaxUpdatePhoto( <?php echo $photo['id'] ?>, 'copyto', document.getElementById( 'copyto-<?php echo( $photo['id'] ) ?>' ) ) } else { alert( '<?php echo esc_js( __( 'Please select an album to copy to first.' , 'wp-photo-album-plus') ) ?>' ); return false;}"
382
+ value="<?php
383
+ echo ( wppa_is_video( $photo['id'] ) ?
384
+ esc_attr( __( 'Copy video to' , 'wp-photo-album-plus') ) :
385
+ esc_attr( __( 'Copy photo to' , 'wp-photo-album-plus') ) ) ?>"
386
+ />
387
  </th>
388
  <td >
389
  <select id="copyto-<?php echo( $photo['id'] ) ?>" style="width:100%;" ><?php echo $album_select[$photo['album']] ?></select>
398
  <input
399
  type="button"
400
  style="color:red;"
401
+ <?php
402
+ $q = wppa_is_video( $photo['id'] ) ?
403
+ __( 'Are you sure you want to delete this video?' , 'wp-photo-album-plus') :
404
+ __( 'Are you sure you want to delete this photo?' , 'wp-photo-album-plus') ?>
405
+ onclick="if ( confirm( '<?php echo $q ?>' ) ) wppaAjaxDeletePhoto( <?php echo $photo['id'] ?> )"
406
  value="<?php echo ( wppa_is_video( $photo['id'] ) ? esc_attr( __( 'Delete video' , 'wp-photo-album-plus') ) : esc_attr( __( 'Delete photo' , 'wp-photo-album-plus') ) ) ?>"
407
  />
408
  </th>
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.4.12
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/
@@ -29,12 +29,12 @@ global $wpdb;
29
  /* when new options are added and when the wppa_setup() routine
30
  /* must be called right after update for any other reason.
31
  */
32
- global $wppa_revno; $wppa_revno = '6412';
33
 
34
  /* This is the api interface version number
35
  /* It is incremented at any code change.
36
  */
37
- global $wppa_api_version; $wppa_api_version = '6-4-12-005';
38
 
39
  /* start timers */
40
  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.4.13
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/
29
  /* when new options are added and when the wppa_setup() routine
30
  /* must be called right after update for any other reason.
31
  */
32
+ global $wppa_revno; $wppa_revno = '6413';
33
 
34
  /* This is the api interface version number
35
  /* It is incremented at any code change.
36
  */
37
+ global $wppa_api_version; $wppa_api_version = '6-4-13-000';
38
 
39
  /* start timers */
40
  global $wppa_starttime; $wppa_starttime = microtime(true);