WP Photo Album Plus - Version 8.2.01.008

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

Code changes from version 8.2.01.007 to 8.2.01.008

changelog.txt CHANGED
@@ -8,6 +8,8 @@ WP Photo Album Plus Changelog
8
  * Description field in album and photo admin lost linebreaks. Fixed.
9
  * Re-implemented WP editor for album and photo descriptions. Enable in Advanced settings -> Admin -> VI -> Item 14.
10
  * When using PDF in a slideshow, the link from the slide no longer needs to be to lightbox.
 
 
11
 
12
  = 8.1.10 =
13
 
8
  * Description field in album and photo admin lost linebreaks. Fixed.
9
  * Re-implemented WP editor for album and photo descriptions. Enable in Advanced settings -> Admin -> VI -> Item 14.
10
  * When using PDF in a slideshow, the link from the slide no longer needs to be to lightbox.
11
+ * On multisites creating a new album using the Add new button, created a system album rather than an album for the current site. Fixed.
12
+ * Added settings to change the delay of resize end and scroll end events. Advanced settings -> System -> I -> Item 44 and 45
13
 
14
  = 8.1.10 =
15
 
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.1.10.005
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.01.008
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.1.10.005
6
  *
7
  */
8
 
@@ -1506,7 +1506,7 @@ global $wppa;
1506
  $js .= $result['js'];
1507
 
1508
  // Issue warning message
1509
- wppa_log( 'war', 'Unexpected js found in ajax render: ' . esc_html( $result['js'] ), true );
1510
  }
1511
 
1512
  // Compress html
2
  /* wppa-ajax.php
3
  *
4
  * Functions used in ajax requests
5
+ * Version 8.2.01.008
6
  *
7
  */
8
 
1506
  $js .= $result['js'];
1507
 
1508
  // Issue warning message
1509
+ wppa_log( 'dbg', strlen( $result['js'] ) . ' chars of unexpected js found in ajax render. $_REQUEST = ' . htmlspecialchars( var_export( $_REQUEST, true ) ) );
1510
  }
1511
 
1512
  // Compress html
wppa-album-admin-autosave.php CHANGED
@@ -1788,7 +1788,7 @@ global $wppa_revno;
1788
 
1789
  // The Create new album button
1790
  if ( wppa_can_create_top_album() ) {
1791
- $url = get_admin_url( 'admin.php' ) . '?page=wppa_admin_menu&tab=edit&edit-id=new&wppa-nonce=' . wp_create_nonce( 'wppa-nonce' );
1792
  $vfy = __( 'Are you sure you want to create a new album?', 'wp-photo-album-plus' );
1793
  $result .= '
1794
  <a
1788
 
1789
  // The Create new album button
1790
  if ( wppa_can_create_top_album() ) {
1791
+ $url = get_admin_url() . 'admin.php?page=wppa_admin_menu&tab=edit&edit-id=new&wppa-nonce=' . wp_create_nonce( 'wppa-nonce' );
1792
  $vfy = __( 'Are you sure you want to create a new album?', 'wp-photo-album-plus' );
1793
  $result .= '
1794
  <a
wppa-defaults.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * Contains default settings
6
- * Version 8.2.01.007
7
  *
8
  */
9
 
@@ -1228,6 +1228,11 @@ horizrailenabled:false,";
1228
 
1229
  'wppa_use_wp_upload_dir_locations' => 'no',
1230
 
 
 
 
 
 
1231
  'wppa_opt_menu_search' => 'yes',
1232
  'wppa_opt_menu_doc' => 'yes',
1233
  'wppa_opt_menu_edit_tags' => 'yes',
3
  * Package: wp-photo-album-plus
4
  *
5
  * Contains default settings
6
+ * Version 8.2.01.008
7
  *
8
  */
9
 
1228
 
1229
  'wppa_use_wp_upload_dir_locations' => 'no',
1230
 
1231
+ 'wppa_scrollend_delay' => '200',
1232
+ 'wppa_scrollend_delay_mob' => '1',
1233
+ 'wppa_resizeend_delay' => '200',
1234
+ 'wppa_resizeend_delay_mob' => '1',
1235
+
1236
  'wppa_opt_menu_search' => 'yes',
1237
  'wppa_opt_menu_doc' => 'yes',
1238
  'wppa_opt_menu_edit_tags' => 'yes',
wppa-scripts.php CHANGED
@@ -4,7 +4,7 @@
4
  *
5
  * This file contains all functions for activating javascript
6
  *
7
- * Version 8.2.01.005
8
  */
9
 
10
  // Place all wppa related js declarations in the header, both admin and frontend
@@ -89,8 +89,8 @@ global $wpdb;
89
  wppaIconSizeNormal = "default",
90
  wppaIconSizeStars = 24,
91
  wppaFilmInit = [],
92
- wppaResizeEndDelay = ' . ( wppa_is_mobile() ? '1' : '200' ) . ',
93
- wppaScrollEndDelay = ' . ( wppa_is_mobile() ? '1' : '200' ) . ',
94
  wppaArtmonkeyFileNotSource = false,
95
  wppaRequestInfoDialogText = "Please specify your question",
96
  wppaGlobalFsIconSize = 32,
4
  *
5
  * This file contains all functions for activating javascript
6
  *
7
+ * Version 8.2.01.008
8
  */
9
 
10
  // Place all wppa related js declarations in the header, both admin and frontend
89
  wppaIconSizeNormal = "default",
90
  wppaIconSizeStars = 24,
91
  wppaFilmInit = [],
92
+ wppaResizeEndDelay = ' . ( wppa_is_mobile() ? wppa_opt( 'resizeend_delay_mob' ) : wppa_opt( 'resizeend_delay' ) ) . ',
93
+ wppaScrollEndDelay = ' . ( wppa_is_mobile() ? wppa_opt( 'scrollend_delay_mob' ) : wppa_opt( 'scrollend_delay' ) ) . ',
94
  wppaArtmonkeyFileNotSource = false,
95
  wppaRequestInfoDialogText = "Please specify your question",
96
  wppaGlobalFsIconSize = 32,
wppa-settings-autosave.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * manage all options
6
- * Version 8.2.01.007
7
  *
8
  */
9
 
@@ -6670,6 +6670,28 @@ global $wppa_subtab_names;
6670
  $html = wppa_checkbox($slug);
6671
  wppa_setting_new($slug, '43', $name, $desc, $html, $help);
6672
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6673
  wppa_setting_box_footer_new();
6674
  }
6675
  }
3
  * Package: wp-photo-album-plus
4
  *
5
  * manage all options
6
+ * Version 8.2.01.008
7
  *
8
  */
9
 
6670
  $html = wppa_checkbox($slug);
6671
  wppa_setting_new($slug, '43', $name, $desc, $html, $help);
6672
 
6673
+ $opts = array( 1, 2, 5, 10, 20, 50, 100, 200, 500, 1000, 2000, 5000);
6674
+ $vals = $opts;
6675
+ $name = __('Scroll end delay', 'wp-photo-album-plus');
6676
+ $desc = __('The time in milliseconds to wait for the scroll end event to be fired', 'wp-photo-album-plus');
6677
+ $help = __('Only change if you have response problems after scrolling', 'wp-photo-album-plus');
6678
+ $slug1 = 'wppa_scrollend_delay';
6679
+ $slug2 = 'wppa_scrollend_delay_mob';
6680
+ $html1 = '<span style="float:left">' . __('on PC', 'wp-photo-album-plus') . ':&nbsp;</span>' . wppa_select($slug1, $opts, $vals) . '&nbsp;';
6681
+ $html2 = '<span style="float:left">' . __('on mobile', 'wp-photo-album-plus') . ':&nbsp;</span>' . wppa_select($slug2, $opts, $vals);
6682
+ $html = $html1 . $html2;
6683
+ wppa_setting_new(array($slug1,$slug2), '44', $name, $desc, $html, $help);
6684
+
6685
+ $name = __('Resize end delay', 'wp-photo-album-plus');
6686
+ $desc = __('The time in milliseconds to wait for the resize end event to be fired', 'wp-photo-album-plus');
6687
+ $help = __('Only change if you have response problems after resizing the window', 'wp-photo-album-plus');
6688
+ $slug1 = 'wppa_resizeend_delay';
6689
+ $slug2 = 'wppa_resizeend_delay_mob';
6690
+ $html1 = '<span style="float:left">' . __('on PC', 'wp-photo-album-plus') . ':&nbsp;</span>' . wppa_select($slug1, $opts, $vals) . '&nbsp;';
6691
+ $html2 = '<span style="float:left">' . __('on mobile', 'wp-photo-album-plus') . ':&nbsp;</span>' . wppa_select($slug2, $opts, $vals);
6692
+ $html = $html1 . $html2;
6693
+ wppa_setting_new(array($slug1,$slug2), '45', $name, $desc, $html, $help);
6694
+
6695
  wppa_setting_box_footer_new();
6696
  }
6697
  }
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.01.007
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.01.007'; // 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.2.01.008
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.01.008'; // WPPA software version
28
  global $wppa_revno;
29
  $wppa_revno = str_replace( '.', '', $wppa_api_version ); // WPPA db version
30