WP Photo Album Plus - Version 7.2.05.005

Version Description

= 7.2.05 =

  • This version addresses various bug fixes and feature requests.
  • This version addresses various security issues.

= 7.2.04 =

  • This version addresses various bug fixes and feature requests.

= 7.2.03 =

  • This version addresses various bug fixes and feature requests.

= 7.2.02 =

  • This version addresses various bug fixes and feature requests.

= 7.2.01 =

  • This version addresses various bug fixes and feature requests.

= 7.2.00 =

  • This version addresses various bug fixes and feature requests.

= 7.1.11 =

  • This version addresses various bug fixes and feature requests.

= 7.1.10 =

  • This version addresses various bug fixes and feature requests.

= 7.1.09 =

  • This version addresses various bug fixes and feature requests.

= 7.1.08 =

  • This version addresses various bug fixes and feature requests.

= 7.1.07 =

  • This version addresses various bug fixes and feature requests.

= 7.1.06 =

  • This version addresses various bug fixes and feature requests.

= 7.1.05 =

  • This version addresses various security issues.
  • This version addresses various bug fixes.

= 7.1.04 =

  • This version addresses various bug fixes.

= 7.1.03 =

  • This version addresses various security issues.
  • This version addresses various bug fixes.

= 7.1.02 =

  • This version addresses various security issues.
  • This version addresses various bug fixes and feature requests.

= 7.1.01 =

  • This version addresses various bug fixes and feature requests.

= 7.1.00 =

  • This version addresses various bug fixes and feature requests.
  • The Photo Album -> Upload Photos and Import Photos admin pages have been substantially improved. Read the changelog for details.

= 7.0.11 =

  • This version addresses various bug fixes and feature requests.

= 7.0.11 =

  • This version addresses various bug fixes

= 7.0.10 =

  • This version addresses various bug fixes

= 7.0.09 =

  • This version addresses various security issues.
  • This version addresses various bug fixes and feature requests.

= 7.0.08 =

  • This version addresses various security issues.
  • This version addresses various bug fixes

= 7.0.07 =

  • This version addresses various security issues.
  • This version addresses various bug fixes

= 7.0.06 =

  • This version addresses various bug fixes
  • This version addresses various security issues.

= 7.0.05 =

  • This version addresses various minor bug fixes and feature requests.
  • This version addresses various security issues.

= 7.0.04 =

  • This version addresses various bug fixes
  • This version addresses various security issues.

= 7.0.03 =

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

= 7.0.02 =

  • This version addresses various bug fixes
  • This version addresses various security issues.

= 7.0.01 =

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

= 7.0.00 =

  • Shortcode generators for Gutenberg added.
  • This version addresses various minor bug fixes and feature requests.
  • This version addresses various security issues.
  • To prevent spamming and give the users the opportunity to decide when they want us to email them, the mailing system has been revised. Configure Table IX-M to enable various mailing lists, and use the WPPA+ Notify widget for full user flexibility.

= 6.9.21 =

  • This version addresses various bug fixes
  • This version addresses various security issues.

= 6.9.20 =

  • This version addresses various bug fixes

= 6.9.19 =

  • This version addresses various minor bug fixes

= 6.9.18 =

  • This version addresses various minor bug fixes

= 6.9.17 =

  • This version addresses various minor bug fixes and feature requests.
  • This version addresses various security issues.

= 6.9.16 =

  • This version addresses various minor bug fixes and feature requests.
  • This version addresses various security issues.

= 6.9.15 =

  • This version addresses various minor bug fixes and feature requests.
  • This version addresses various security issues.

= 6.9.14 =

  • This version addresses various minor bug fixes and feature requests.
  • This version addresses various security issues.

= 6.9.13 =

  • Security release.

= 6.9.12 =

  • This version addresses various minor bug fixes and performance improvements.

= 6.9.11 =

  • This version addresses various minor bug fixes and performance improvements.

= 6.9.10 =

  • This version addresses various minor bug fixes and performance improvements.

= 6.9.09 =

  • Panorama support phase III.

= 6.9.08 =

  • This version addresses various minor bug fixes and feature requests.
  • Panorama support phase II.

= 6.9.07 =

  • This version addresses various minor bug fixes and feature requests.
  • Panorama support phase I.

= 6.9.06 =

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

= 6.9.05 =

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

= 6.9.04 =

  • This version addresses various minor bug fixes and feature requests.
  • Local CDN functionality has been added.

= 6.9.03 =

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

= 6.9.02 =

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

= 6.9.01 =

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

= 6.9.00 =

  • This version includes the code for the privacy policy requirements.

= 6.8.09

  • This version addresses various bug fixes and code edits.

= 6.8.08 =

  • This version addresses various minor bug fixes and feature requests.
  • This version offers substantial performance improvements when the box in Table IV-A13: Defer Javascript is ticked. This setting is now recommended and set ticked as the default.
  • For more info on performance improvements and compatibility with optimizers: see the changelog.txt

= 6.8.07 =

  • This version addresses various minor bug fixes and enhancements, and a new widget: Statistics.

= 6.8.06 =

  • This version addresses various minor bug fixes and improved cache handling.

= 6.8.05 =

  • This version addresses various minor bug fixes and feture requests.

= 6.8.04 =

  • This version addresses various display issues and a few fixes of bugs that seldom affected the plugins behaviour.
Download this release

Release Info

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

Code changes from version 7.2.05.003 to 7.2.05.005

changelog.txt CHANGED
@@ -6,6 +6,7 @@ WP Photo Album Plus Changelog
6
  * Layout fix for window resizing photo editor with imagemagick.
7
  * Magick editing updated photo sizes with thumbnail sizes (on screen only). Fixed.
8
  * Cropper did not show up when lazy load was active. Fixed.
 
9
 
10
  = 7.2.04 =
11
 
6
  * Layout fix for window resizing photo editor with imagemagick.
7
  * Magick editing updated photo sizes with thumbnail sizes (on screen only). Fixed.
8
  * Cropper did not show up when lazy load was active. Fixed.
9
+ * New Setting: Table IV-D9: Use thumb on cover. To use possible cropped thumbnail image on album covers even when a CDN is active.
10
 
11
  = 7.2.04 =
12
 
readme.txt CHANGED
@@ -2,7 +2,7 @@
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, slideshow, video, audio, lightbox, iptc, exif, cloudinary, fotomoto, imagemagick, pdf
5
- Version: 7.2.05.003
6
  Stable tag: 7.2.04.005
7
  Author: J.N. Breetvelt
8
  Author URI: http://www.opajaap.nl/
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, slideshow, video, audio, lightbox, iptc, exif, cloudinary, fotomoto, imagemagick, pdf
5
+ Version: 7.2.05.005
6
  Stable tag: 7.2.04.005
7
  Author: J.N. Breetvelt
8
  Author URI: http://www.opajaap.nl/
wppa-album-covers.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * Functions for album covers
6
- * Version 7.2.02
7
  *
8
  */
9
 
@@ -184,7 +184,8 @@ global $wpdb;
184
  true,
185
  '',
186
  $imgattr_a['width'],
187
- $imgattr_a['height']
 
188
  );
189
  }
190
 
@@ -458,7 +459,8 @@ global $wpdb;
458
  true,
459
  '',
460
  $imgattr_a['width'],
461
- $imgattr_a['height']
 
462
  );
463
  $photolinks[] = wppa_get_imglnk_a( 'coverimg',
464
  $coverphoto,
@@ -683,8 +685,13 @@ global $wpdb;
683
  $path = wppa_get_thumb_path( $coverphoto );
684
  $imgattr_a = wppa_get_imgstyle_a(
685
  $coverphoto, $path, wppa_opt( 'smallsize' ), '', 'cover' );
686
- $src = wppa_get_thumb_url(
687
- $coverphoto, true, '', $imgattr_a['width'], $imgattr_a['height'] );
 
 
 
 
 
688
  }
689
  else {
690
  $path = '';
@@ -890,7 +897,8 @@ global $wpdb;
890
  true,
891
  '',
892
  $imgattr_a['width'],
893
- $imgattr_a['height']
 
894
  );
895
 
896
  // Feed?
@@ -2039,7 +2047,7 @@ global $wpdb;
2039
  $y = 50;
2040
  $x = floor( $x / $f );
2041
  }
2042
- $src = wppa_get_thumb_url( $coverphoto_id, true, '', $x, $y );
2043
  if ( $link_type == 'none' ) {
2044
  wppa_out( '<img' .
2045
  ' class="wppa-cover-sublink-img"' .
3
  * Package: wp-photo-album-plus
4
  *
5
  * Functions for album covers
6
+ * Version 7.2.05
7
  *
8
  */
9
 
184
  true,
185
  '',
186
  $imgattr_a['width'],
187
+ $imgattr_a['height'],
188
+ wppa_switch( 'cover_use_thumb' )
189
  );
190
  }
191
 
459
  true,
460
  '',
461
  $imgattr_a['width'],
462
+ $imgattr_a['height'],
463
+ wppa_switch( 'cover_use_thumb' )
464
  );
465
  $photolinks[] = wppa_get_imglnk_a( 'coverimg',
466
  $coverphoto,
685
  $path = wppa_get_thumb_path( $coverphoto );
686
  $imgattr_a = wppa_get_imgstyle_a(
687
  $coverphoto, $path, wppa_opt( 'smallsize' ), '', 'cover' );
688
+ $src = wppa_get_thumb_url( $coverphoto,
689
+ true,
690
+ '',
691
+ $imgattr_a['width'],
692
+ $imgattr_a['height'],
693
+ wppa_switch( 'cover_use_thumb' )
694
+ );
695
  }
696
  else {
697
  $path = '';
897
  true,
898
  '',
899
  $imgattr_a['width'],
900
+ $imgattr_a['height'],
901
+ wppa_switch( 'cover_use_thumb' )
902
  );
903
 
904
  // Feed?
2047
  $y = 50;
2048
  $x = floor( $x / $f );
2049
  }
2050
+ $src = wppa_get_thumb_url( $coverphoto_id, true, '', $x, $y, wppa_switch( 'cover_use_thumb' ) );
2051
  if ( $link_type == 'none' ) {
2052
  wppa_out( '<img' .
2053
  ' class="wppa-cover-sublink-img"' .
wppa-photo-admin-autosave.php CHANGED
@@ -1736,6 +1736,7 @@ function wppaToggleExif( id, count ) {
1736
  echo
1737
  '<select' .
1738
  ' onchange="wppaCropper[' . $id . '].setAspectRatio(this.value);"' .
 
1739
  '>' .
1740
  '<option value="NaN" >' . __( 'free', 'wp-photo-album-plus' ) . '</option>' .
1741
  '<option value="' . $ratio . '" >' . __( 'original', 'wp-photo-album-plus' ) . '</option>' .
@@ -1785,11 +1786,12 @@ function wppaToggleExif( id, count ) {
1785
  '<div style="display:inline-block;margin-left:25%;width:50%;" >' .
1786
  '<img' .
1787
  ' id="fs-img-' . $id . '"' .
1788
- ' src="' . wppa_get_photo_url( $id ) . '"' .
1789
  ' style="float:left;max-width:100%;" ' .
1790
  ( wppa_switch( 'lazy' ) && $count > '1' ? ' class="wppa-lazy"' : '' ) .
1791
- ' />' .
1792
 
 
1793
  '<script>
1794
  window.addEventListener("DOMContentLoaded", function () {
1795
 
@@ -1810,6 +1812,7 @@ function wppaToggleExif( id, count ) {
1810
  background: false,
1811
  dragMode: "move",
1812
  responsive: true,
 
1813
  });
1814
 
1815
  button.onclick = function () {
@@ -1819,13 +1822,15 @@ function wppaToggleExif( id, count ) {
1819
  };
1820
  });
1821
 
1822
- </script>' .
1823
- '<style>.cropper-drag-box{background-color:transparent;}img{max-width:100%}</style>' .
 
 
 
 
1824
  '</div>' .
1825
  '</td>' .
1826
- '</tr>';
1827
-
1828
- echo
1829
  '</tbody>' .
1830
  '</table>';
1831
  }
1736
  echo
1737
  '<select' .
1738
  ' onchange="wppaCropper[' . $id . '].setAspectRatio(this.value);"' .
1739
+ ' title="' . __( 'Aspect ratio of cropped image', 'wp-photo-album-plus' ) . '"' .
1740
  '>' .
1741
  '<option value="NaN" >' . __( 'free', 'wp-photo-album-plus' ) . '</option>' .
1742
  '<option value="' . $ratio . '" >' . __( 'original', 'wp-photo-album-plus' ) . '</option>' .
1786
  '<div style="display:inline-block;margin-left:25%;width:50%;" >' .
1787
  '<img' .
1788
  ' id="fs-img-' . $id . '"' .
1789
+ ' src="' . esc_url( wppa_get_photo_url( $id ) ) . '"' .
1790
  ' style="float:left;max-width:100%;" ' .
1791
  ( wppa_switch( 'lazy' ) && $count > '1' ? ' class="wppa-lazy"' : '' ) .
1792
+ ' />';
1793
 
1794
+ echo
1795
  '<script>
1796
  window.addEventListener("DOMContentLoaded", function () {
1797
 
1812
  background: false,
1813
  dragMode: "move",
1814
  responsive: true,
1815
+ movable: false,
1816
  });
1817
 
1818
  button.onclick = function () {
1822
  };
1823
  });
1824
 
1825
+ </script>';
1826
+
1827
+ echo
1828
+ '<style>.cropper-drag-box{background-color:transparent;}img{max-width:100%}</style>';
1829
+
1830
+ echo
1831
  '</div>' .
1832
  '</td>' .
1833
+ '</tr>' .
 
 
1834
  '</tbody>' .
1835
  '</table>';
1836
  }
wppa-settings-autosave.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * manage all options
6
- * Version 7.2.04
7
  *
8
  */
9
 
@@ -437,8 +437,8 @@ global $wppa_supported_camara_brands;
437
  $msg = __( 'Table I-D1 (Max Cover width) may not be larger than Table I-D5.1a (Coverphoto size)', 'wp-photo-album-plus' );
438
  wppa_warning_message( $stdmsg . $msg );
439
  }
440
- if ( wppa_opt( 'thumb_aspect' ) == '0:0:none' ) {
441
- $msg = __( 'Table I-C2 (Thumbnail Aspect) may not be set to "--- same as fullsize ---"', 'wp-photo-album-plus' );
442
  wppa_warning_message( $stdmsg . $msg );
443
  }
444
  if ( wppa_opt( 'extended_resize_count' ) < '1' ) {
@@ -4875,6 +4875,15 @@ global $wppa_supported_camara_brands;
4875
  $tags = 'slide,layout,meta';
4876
  wppa_setting($slug, '8', $name, $desc, $html, $help, $clas, $tags);
4877
 
 
 
 
 
 
 
 
 
 
4878
  }
4879
  wppa_setting_subheader( 'E', '1', __( 'Rating related settings' , 'wp-photo-album-plus') );
4880
  {
3
  * Package: wp-photo-album-plus
4
  *
5
  * manage all options
6
+ * Version 7.2.05
7
  *
8
  */
9
 
437
  $msg = __( 'Table I-D1 (Max Cover width) may not be larger than Table I-D5.1a (Coverphoto size)', 'wp-photo-album-plus' );
438
  wppa_warning_message( $stdmsg . $msg );
439
  }
440
+ if ( wppa_opt( 'thumb_aspect' ) == '0:0:none' && ! ( wppa_switch( 'cover_use_thumb' ) ) ) {
441
+ $msg = __( 'Table I-C2 (Thumbnail Aspect) may not be set to "--- same as fullsize ---", or tick Table IV-D9: Use thumb on cover', 'wp-photo-album-plus' );
442
  wppa_warning_message( $stdmsg . $msg );
443
  }
444
  if ( wppa_opt( 'extended_resize_count' ) < '1' ) {
4875
  $tags = 'slide,layout,meta';
4876
  wppa_setting($slug, '8', $name, $desc, $html, $help, $clas, $tags);
4877
 
4878
+ $name = __('Use thumb on cover', 'wp-photo-album-plus');
4879
+ $desc = __('Always use thumbnail file for cover image', 'wp-photo-album-plus');
4880
+ $help = __('If you crop thumbnails for cover images, and you have a CDN, tick this box', 'wp-photo-album-plus');
4881
+ $slug = 'wppa_cover_use_thumb';
4882
+ $html = wppa_checkbox($slug);
4883
+ $clas = '';
4884
+ $tags = 'album,cover,layout';
4885
+ wppa_setting($slug, '9', $name, $desc, $html, $help, $clas, $tags);
4886
+
4887
  }
4888
  wppa_setting_subheader( 'E', '1', __( 'Rating related settings' , 'wp-photo-album-plus') );
4889
  {
wppa-setup.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * Contains all the setup stuff
6
- * Version 7.2.04
7
  *
8
  */
9
 
@@ -1335,6 +1335,8 @@ cursorborder:'2px solid transparent',";
1335
  'wppa_imgfact_count' => '10',
1336
  'wppa_cats_inherit' => 'no',
1337
  'wppa_wpautop_on_album_desc' => 'nil',
 
 
1338
  // E Rating
1339
  'wppa_rating_login' => 'yes',
1340
  'wppa_rating_change' => 'yes',
3
  * Package: wp-photo-album-plus
4
  *
5
  * Contains all the setup stuff
6
+ * Version 7.2.05
7
  *
8
  */
9
 
1335
  'wppa_imgfact_count' => '10',
1336
  'wppa_cats_inherit' => 'no',
1337
  'wppa_wpautop_on_album_desc' => 'nil',
1338
+ 'wppa_cover_use_thumb' => 'no',
1339
+
1340
  // E Rating
1341
  'wppa_rating_login' => 'yes',
1342
  'wppa_rating_change' => 'yes',
wppa-utils.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * Contains low-level utility routines
6
- * Version 7.2.01
7
  *
8
  */
9
 
@@ -21,7 +21,7 @@ function wppa_url( $arg ) {
21
  }
22
 
23
  // get url of thumb
24
- function wppa_get_thumb_url( $id, $fix_poster_ext = true, $system = 'flat', $x = '0', $y = '0' ) {
25
  global $blog_id;
26
 
27
  // Does photo exist?
@@ -35,7 +35,12 @@ global $blog_id;
35
 
36
  // If in the cloud...
37
  $is_old = wppa_too_old_for_cloud( $id );
38
- if ( wppa_cdn( 'front' ) && ! wppa_is_multi( $id ) && ! $is_old && ! wppa_is_stereo( $id ) && ! wppa_is_pdf( $id ) ) {
 
 
 
 
 
39
  if ( $x && $y ) { // Only when size is given !! To prevent download of the fullsize image
40
  switch ( wppa_cdn( 'front' ) ) {
41
  case 'local':
3
  * Package: wp-photo-album-plus
4
  *
5
  * Contains low-level utility routines
6
+ * Version 7.2.05
7
  *
8
  */
9
 
21
  }
22
 
23
  // get url of thumb
24
+ function wppa_get_thumb_url( $id, $fix_poster_ext = true, $system = 'flat', $x = '0', $y = '0', $use_thumbfile = false ) {
25
  global $blog_id;
26
 
27
  // Does photo exist?
35
 
36
  // If in the cloud...
37
  $is_old = wppa_too_old_for_cloud( $id );
38
+ if ( wppa_cdn( 'front' ) &&
39
+ ! wppa_is_multi( $id ) &&
40
+ ! $is_old &&
41
+ ! wppa_is_stereo( $id ) &&
42
+ ! wppa_is_pdf( $id ) &&
43
+ ! $use_thumbfile ) {
44
  if ( $x && $y ) { // Only when size is given !! To prevent download of the fullsize image
45
  switch ( wppa_cdn( 'front' ) ) {
46
  case 'local':
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: 7.2.05.003
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/
@@ -22,8 +22,8 @@ global $wpdb;
22
  global $wp_version;
23
 
24
  /* WPPA GLOBALS */
25
- global $wppa_revno; $wppa_revno = '7204'; // WPPA db version
26
- global $wppa_api_version; $wppa_api_version = '7.2.05.003'; // WPPA software version
27
 
28
  /* Init page js data */
29
  global $wppa_js_page_data; $wppa_js_page_data = '';
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: 7.2.05.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/
22
  global $wp_version;
23
 
24
  /* WPPA GLOBALS */
25
+ global $wppa_revno; $wppa_revno = '7205'; // WPPA db version
26
+ global $wppa_api_version; $wppa_api_version = '7.2.05.005'; // WPPA software version
27
 
28
  /* Init page js data */
29
  global $wppa_js_page_data; $wppa_js_page_data = '';