WP Photo Album Plus - Version 8.1.01.004

Version Description

= 8.1.01 =

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

Code changes from version 8.1.01.003 to 8.1.01.004

changelog.txt CHANGED
@@ -5,9 +5,9 @@ WP Photo Album Plus Changelog
5
  * Lightbox on slide images did not always show the full list of items. Fixed.
6
  * You can now also send emails on backend uploads/imports. See: Advanced settings -> Email -> I -> Item 2: Mail on upload.
7
  Works only when frontend upload mailing is activated.
8
- Mails are sent after 15 minutes.
9
  You can also specify if preview thumbnails should be included.
10
- In case of multiple photos, just the number of them, not all the names are listed in the email.
11
  * Fixed a nicescroller issue.
12
  * Html tags were stripped when changing album or photo descriptions. Fixed.
13
  * Slideshow widgets did not start when cached. Fixed.
5
  * Lightbox on slide images did not always show the full list of items. Fixed.
6
  * You can now also send emails on backend uploads/imports. See: Advanced settings -> Email -> I -> Item 2: Mail on upload.
7
  Works only when frontend upload mailing is activated.
8
+ Mails are sent 15 minutes after the first upload.
9
  You can also specify if preview thumbnails should be included.
10
+ If no thumbnails should be shown in case of multiple photos, just the number of them is in the email.
11
  * Fixed a nicescroller issue.
12
  * Html tags were stripped when changing album or photo descriptions. Fixed.
13
  * Slideshow widgets did not start when cached. Fixed.
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: 5.9
7
  Requires PHP: 5.5
8
- Stable tag: 8.1.00.009
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -134,7 +134,7 @@ See for the full changelog: <a href="http://www.wppa.nl/changelog/" >The documen
134
 
135
  == Upgrade Notice ==
136
 
137
- = 8.0.10 =
138
 
139
  * This version addresses various bug fixes, feature requests and security fixes.
140
 
5
  Requires at least: 3.9
6
  Tested up to: 5.9
7
  Requires PHP: 5.5
8
+ Stable tag: 8.1.01.005
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
134
 
135
  == Upgrade Notice ==
136
 
137
+ = 8.1.01 =
138
 
139
  * This version addresses various bug fixes, feature requests and security fixes.
140
 
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.1.01.003
7
  *
8
  */
9
 
@@ -99,10 +99,9 @@ global $wppa_revno;
99
 
100
  $txt = wppa_get( 'just-edit', __( 'Edit Single Photo', 'wp-photo-album-plus' ) );
101
 
102
- echo '<div class="wrap" >
103
- <h2>' . htmlspecialchars( $txt ) . '</h2>';
104
- wppa_album_photos( $ei );
105
- echo '</div>';
106
  return;
107
  }
108
 
@@ -113,34 +112,20 @@ global $wppa_revno;
113
  }
114
  $back_url .= '#wppa-edit-search-tag';
115
 
116
- echo '
117
- <a name="manage-photos" id="manage-photos" ></a>
118
- <h2>' . __( 'Manage Photos', 'wp-photo-album-plus' );
119
- if ( wppa_get( 'bulk' ) ) {
120
- echo
121
- ' - <small><i>' .
122
- __( 'Copy / move / delete / edit name / edit description / change status', 'wp-photo-album-plus' ) .
123
- '</i></small>';
124
- }
125
- elseif ( wppa_get( 'quick' ) ) {
126
- echo
127
- ' - <small><i>' .
128
- __( 'Edit photo information except copy and move', 'wp-photo-album-plus' ) .
129
- '</i></small>';
130
- }
131
- else {
132
- echo
133
- ' - <small><i>' .
134
- __( 'Edit photo information', 'wp-photo-album-plus' ) .
135
- '</i></small>';
136
- }
137
- echo '
138
- </h2>
139
 
 
 
 
140
  <a href="' . $back_url . '" >' .
141
  $back_title .
142
- '</a>
143
- <br /><br />';
144
 
145
  if ( wppa_get( 'bulk' ) ) {
146
  wppa_album_photos_bulk( $ei );
@@ -149,7 +134,7 @@ global $wppa_revno;
149
  wppa_album_photos( $ei );
150
  }
151
 
152
- echo '
153
  <a href="#manage-photos">
154
  <div style="position:fixed;right:30px;bottom:30px;background-color:lightblue;" >
155
  &nbsp;' . __( 'Top of page', 'wp-photo-album-plus' ) . '&nbsp;
@@ -158,21 +143,18 @@ global $wppa_revno;
158
  <br />
159
  <a href="' . $back_url . '" >' .
160
  $back_title .
161
- '</a>';
162
 
163
  return;
164
  }
165
 
166
  if ( wppa_get( 'edit-id' ) == 'trash' ) {
167
 
168
- echo '
169
- <div class="wrap">
170
- <h2>' . __( 'Manage Trashed Photos', 'wp-photo-album-plus' ) .
171
- ' - <small><i>' . __( 'Edit photo information', 'wp-photo-album-plus' ) . '</i></small>
172
- </h2>';
173
- wppa_album_photos( $ei );
174
- echo '
175
- </div>';
176
 
177
  return;
178
  }
@@ -425,8 +407,7 @@ global $wppa_revno;
425
 
426
 
427
  // Open the photo album admin page
428
- echo
429
- '<div class="wrap">';
430
 
431
  // The spinner to indicate busyness
432
  wppa_admin_spinner();
@@ -501,7 +482,7 @@ global $wppa_revno;
501
  wppa_add_inline_script( 'wppa-admin', $the_js );
502
 
503
  // The header
504
- echo '
505
  <img src="' . WPPA_URL . '/img/album32.png' . '" alt="Album icon" />
506
  <h1 style="display:inline;" >' .
507
  __( 'Edit Album Information', 'wp-photo-album-plus' ) . '
@@ -515,7 +496,7 @@ global $wppa_revno;
515
  type="hidden"
516
  id="album-nonce-' . $id . '"
517
  value="' . wp_create_nonce( 'wppa-nonce_' . $id ) . '"
518
- />';
519
 
520
  // The edit albuminfo panel
521
  echo '
3
  * Package: wp-photo-album-plus
4
  *
5
  * create, edit and delete albums
6
+ * Version 8.1.01.004
7
  *
8
  */
9
 
99
 
100
  $txt = wppa_get( 'just-edit', __( 'Edit Single Photo', 'wp-photo-album-plus' ) );
101
 
102
+ wppa_echo( '<div class="wrap" ><h2>' . $txt . '</h2>' );
103
+ wppa_album_photos( $ei );
104
+ wppa_echo( '</div>' );
 
105
  return;
106
  }
107
 
112
  }
113
  $back_url .= '#wppa-edit-search-tag';
114
 
115
+ $task = __( 'Edit photo information', 'wp-photo-album-plus' );
116
+ if ( wppa_get( 'bulk' ) ) {
117
+ $task = __( 'Copy / move / delete / edit name / edit description / change status', 'wp-photo-album-plus' );
118
+ }
119
+ elseif ( wppa_get( 'quick' ) ) {
120
+ __( 'Edit photo information except copy and move', 'wp-photo-album-plus' );
121
+ }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
122
 
123
+ wppa_echo ( '
124
+ <a name="manage-photos" id="manage-photos" ></a>
125
+ <h2>' . __( 'Manage Photos', 'wp-photo-album-plus' ) . ' - <small><i>' . $task . '</i></small></h2>
126
  <a href="' . $back_url . '" >' .
127
  $back_title .
128
+ '</a><br /><br />' );
 
129
 
130
  if ( wppa_get( 'bulk' ) ) {
131
  wppa_album_photos_bulk( $ei );
134
  wppa_album_photos( $ei );
135
  }
136
 
137
+ wppa_echo( '
138
  <a href="#manage-photos">
139
  <div style="position:fixed;right:30px;bottom:30px;background-color:lightblue;" >
140
  &nbsp;' . __( 'Top of page', 'wp-photo-album-plus' ) . '&nbsp;
143
  <br />
144
  <a href="' . $back_url . '" >' .
145
  $back_title .
146
+ '</a>' );
147
 
148
  return;
149
  }
150
 
151
  if ( wppa_get( 'edit-id' ) == 'trash' ) {
152
 
153
+ $h2 = __( 'Manage Trashed Photos', 'wp-photo-album-plus' );
154
+ $task = __( 'Edit photo information', 'wp-photo-album-plus' );
155
+ wppa_echo( '<div class="wrap"><h2>' . $h2 . ' - <small><i>' . $task . '</i></small></h2>' );
156
+ wppa_album_photos( $ei );
157
+ wppa_echo( '</div>' );
 
 
 
158
 
159
  return;
160
  }
407
 
408
 
409
  // Open the photo album admin page
410
+ wppa_echo( '<div class="wrap">' );
 
411
 
412
  // The spinner to indicate busyness
413
  wppa_admin_spinner();
482
  wppa_add_inline_script( 'wppa-admin', $the_js );
483
 
484
  // The header
485
+ wppa_echo( '
486
  <img src="' . WPPA_URL . '/img/album32.png' . '" alt="Album icon" />
487
  <h1 style="display:inline;" >' .
488
  __( 'Edit Album Information', 'wp-photo-album-plus' ) . '
496
  type="hidden"
497
  id="album-nonce-' . $id . '"
498
  value="' . wp_create_nonce( 'wppa-nonce_' . $id ) . '"
499
+ />' );
500
 
501
  // The edit albuminfo panel
502
  echo '
wppa-import.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * Contains all the import pages and functions
6
- * Version 8.1.01.002
7
  *
8
  */
9
 
@@ -2101,10 +2101,10 @@ global $wppa_session;
2101
  else {
2102
  $id = substr( $id, 0, strpos( $id, '.' ) );
2103
  if ( ! is_numeric( $id ) || ! wppa_is_id_free( WPPA_PHOTOS, $id ) ) $id = 0;
2104
- wppa_log('dbg','unpathname='.$unsanitized_path_name);
2105
  $id = wppa_insert_photo( $unsanitized_path_name, $alb, stripslashes( $name ), stripslashes( $desc ), $porder, $id, stripslashes( $linkurl ), stripslashes( $linktitle ) );
2106
  if ( $id ) {
2107
- if ( wppa_switch( 'wppa_beuploadnotify' ) ) {
2108
  wppa_schedule_mailinglist( 'feuploadnotify', $alb, $id, 0, '', 0, 900 );
2109
  }
2110
  if ( wppa( 'ajax' ) ) {
@@ -3146,9 +3146,12 @@ global $wppa_session;
3146
  else {
3147
  $id = wppa_insert_photo( $photofile, $alb );
3148
  if ( $id ) {
3149
- /*hier*/ wppa_set_default_name( $id );
3150
  $photocount++;
3151
  }
 
 
 
3152
  }
3153
  if ( ! wppa_switch( 'keep_import_files' ) ) {
3154
  wppa_unlink( $photofile );
3
  * Package: wp-photo-album-plus
4
  *
5
  * Contains all the import pages and functions
6
+ * Version 8.1.01.004
7
  *
8
  */
9
 
2101
  else {
2102
  $id = substr( $id, 0, strpos( $id, '.' ) );
2103
  if ( ! is_numeric( $id ) || ! wppa_is_id_free( WPPA_PHOTOS, $id ) ) $id = 0;
2104
+
2105
  $id = wppa_insert_photo( $unsanitized_path_name, $alb, stripslashes( $name ), stripslashes( $desc ), $porder, $id, stripslashes( $linkurl ), stripslashes( $linktitle ) );
2106
  if ( $id ) {
2107
+ if ( wppa_switch( 'beuploadnotify' ) ) {
2108
  wppa_schedule_mailinglist( 'feuploadnotify', $alb, $id, 0, '', 0, 900 );
2109
  }
2110
  if ( wppa( 'ajax' ) ) {
3146
  else {
3147
  $id = wppa_insert_photo( $photofile, $alb );
3148
  if ( $id ) {
3149
+ wppa_set_default_name( $id );
3150
  $photocount++;
3151
  }
3152
+ if ( wppa_switch( 'beuploadnotify' ) ) {
3153
+ wppa_schedule_mailinglist( 'feuploadnotify', $alb, $id, 0, '', 0, 900 );
3154
+ }
3155
  }
3156
  if ( ! wppa_switch( 'keep_import_files' ) ) {
3157
  wppa_unlink( $photofile );
wppa-input.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * Contains functions for sanitizing and formatting user input
6
- * Version 8.1.00.009
7
  *
8
  */
9
 
@@ -89,6 +89,7 @@ function wppa_get_get_filter( $name ) {
89
  case 'albumeditid':
90
  case 'album-parent':
91
  case 'captcha':
 
92
  $result = 'int';
93
  break;
94
 
@@ -230,6 +231,8 @@ function wppa_get_get_filter( $name ) {
230
  case 'albumeditsubmit':
231
  case 'album-desc':
232
  case 'album-name':
 
 
233
  $result = 'text';
234
  break;
235
 
@@ -256,6 +259,7 @@ function wppa_get_get_filter( $name ) {
256
  // Url
257
  case 'url':
258
  case 'returnurl':
 
259
  $result = 'url';
260
  break;
261
 
3
  * Package: wp-photo-album-plus
4
  *
5
  * Contains functions for sanitizing and formatting user input
6
+ * Version 8.1.01.004
7
  *
8
  */
9
 
89
  case 'albumeditid':
90
  case 'album-parent':
91
  case 'captcha':
92
+ case 'import-remote-max':
93
  $result = 'int';
94
  break;
95
 
231
  case 'albumeditsubmit':
232
  case 'album-desc':
233
  case 'album-name':
234
+ case 'type':
235
+ case 'import-set-source-url':
236
  $result = 'text';
237
  break;
238
 
259
  // Url
260
  case 'url':
261
  case 'returnurl':
262
+ case 'source-remote':
263
  $result = 'url';
264
  break;
265
 
wppa-mailing.php CHANGED
@@ -4,7 +4,7 @@
4
  *
5
  * Contains mailing functions
6
  *
7
- * Version 8.1.01.003
8
  *
9
  */
10
 
@@ -44,14 +44,16 @@ function wppa_schedule_mailinglist( $type, $alb = 0, $pho = 0, $com = 0, $url =
44
  }
45
  $owner = wppa_get_photo_item( $pho, 'owner' );
46
 
47
- $pending = wppa_get_option( 'last_feuploadnotify_scheduled-' . $owner . '-' . $alb, false );
 
48
 
49
  if ( $pending ) {
50
  return;
51
  }
52
 
53
  // Save this one to signal next that this one is pending
54
- update_option( 'last_feuploadnotify_scheduled-' . $owner . '-' . $alb, $pho );
 
55
  }
56
 
57
  // wp_schedule_single_event( int $timestamp, string $hook, array $args = array(), bool $wp_error = false )
@@ -154,7 +156,12 @@ global $wpdb;
154
 
155
  // Mailinglist just done or executoing?
156
  $lock_file = WPPA_LOCKDIR . '/' . $type;
157
- $lock_value = wppa_get_contents( $lock_file );
 
 
 
 
 
158
  $our_lock = $alb . '-' . $pho . '-' . $com . '-' . $start;
159
 
160
  // Is last mailing equal to our mailing?
@@ -294,7 +301,7 @@ global $wpdb;
294
 
295
  // The content
296
  if ( $multi ) {
297
- $cont = sprintf( __( 'User %1$s uploaded photos %2$s into album %3$s' , 'wp-photo-album-plus' ), $owner, count( $photos ), wppa_get_album_name( $alb ) );
298
  }
299
  else {
300
  $cont = sprintf( __( 'User %1$s uploaded photo %2$s into album %3$s' , 'wp-photo-album-plus' ), $owner, $pho, wppa_get_album_name( $alb ) );
@@ -334,8 +341,8 @@ global $wpdb;
334
  }
335
  }
336
  }
337
- wppa_log('dbg', 'deleting option:' .'last_feuploadnotify_scheduled-' . $owner . '-' . $alb);
338
- delete_option( 'last_feuploadnotify_scheduled-' . $owner . '-' . $alb );
339
 
340
  break;
341
 
@@ -1002,17 +1009,17 @@ function wppa_send_mail( $args ) {
1002
  if ( ! empty( $photos ) && wppa_switch( 'show_email_thumbs' ) ) {
1003
  $message_part_1 .= '
1004
  <tr>
1005
- <td style="max-width:1024px" >';
1006
  $i = 0;
1007
  foreach( $photo as $p ) {
1008
  $message_part_1 .= '
1009
  <img
1010
  src="' . wppa_get_thumb_url($p) . '" ' . wppa_get_imgalt($p) . '
1011
- style="margin:auto 4px;float:left;"
1012
  />';
1013
  $i++;
1014
  if ( 0 == ( $i % 5 ) ) {
1015
- $message_part_1 .= '</td></tr><tr><td>';
1016
  }
1017
  }
1018
  $message_part_1 .= '
@@ -1021,7 +1028,7 @@ function wppa_send_mail( $args ) {
1021
  }
1022
 
1023
 
1024
- if ( is_array( $cont ) ) {
1025
  foreach ( $cont as $c ) if ( $c ) {
1026
  $message_part_1 .= '<tr><td>'.$c.'</td></tr>';
1027
  }
4
  *
5
  * Contains mailing functions
6
  *
7
+ * Version 8.1.01.004
8
  *
9
  */
10
 
44
  }
45
  $owner = wppa_get_photo_item( $pho, 'owner' );
46
 
47
+ $pending = get_transient( 'last_feuploadnotify_scheduled-' . $owner . '-' . $alb );
48
+ wppa_log( 'eml', 'Reading transient ' . 'last_feuploadnotify_scheduled-' . $owner . '-' . $alb . ' Value = ' . var_export( $pending, true ) );
49
 
50
  if ( $pending ) {
51
  return;
52
  }
53
 
54
  // Save this one to signal next that this one is pending
55
+ set_transient( 'last_feuploadnotify_scheduled-' . $owner . '-' . $alb, $pho, HOUR_IN_SECONDS );
56
+ wppa_log( 'eml', 'Writing transient ' . 'last_feuploadnotify_scheduled-' . $owner . '-' . $alb . ' Value = ' . $pho );
57
  }
58
 
59
  // wp_schedule_single_event( int $timestamp, string $hook, array $args = array(), bool $wp_error = false )
156
 
157
  // Mailinglist just done or executoing?
158
  $lock_file = WPPA_LOCKDIR . '/' . $type;
159
+ if ( wppa_is_file( $lock_file ) ) {
160
+ $lock_value = wppa_get_contents( $lock_file );
161
+ }
162
+ else {
163
+ $lock_value = '';
164
+ }
165
  $our_lock = $alb . '-' . $pho . '-' . $com . '-' . $start;
166
 
167
  // Is last mailing equal to our mailing?
301
 
302
  // The content
303
  if ( $multi ) {
304
+ $cont = sprintf( __( 'User %1$s uploaded %2$s photos into album %3$s' , 'wp-photo-album-plus' ), $owner, count( $photos ), wppa_get_album_name( $alb ) );
305
  }
306
  else {
307
  $cont = sprintf( __( 'User %1$s uploaded photo %2$s into album %3$s' , 'wp-photo-album-plus' ), $owner, $pho, wppa_get_album_name( $alb ) );
341
  }
342
  }
343
  }
344
+ wppa_log('eml', 'deleting transient: ' . 'last_feuploadnotify_scheduled-' . $owner . '-' . $alb);
345
+ delete_transient( 'last_feuploadnotify_scheduled-' . $owner . '-' . $alb );
346
 
347
  break;
348
 
1009
  if ( ! empty( $photos ) && wppa_switch( 'show_email_thumbs' ) ) {
1010
  $message_part_1 .= '
1011
  <tr>
1012
+ <td style="padding:4px;text-align:center">';
1013
  $i = 0;
1014
  foreach( $photo as $p ) {
1015
  $message_part_1 .= '
1016
  <img
1017
  src="' . wppa_get_thumb_url($p) . '" ' . wppa_get_imgalt($p) . '
1018
+ style="height:120px"
1019
  />';
1020
  $i++;
1021
  if ( 0 == ( $i % 5 ) ) {
1022
+ $message_part_1 .= '</td></tr><tr><td style="padding:4px;text-align:center">';
1023
  }
1024
  }
1025
  $message_part_1 .= '
1028
  }
1029
 
1030
 
1031
+ if ( is_array( $cont ) && wppa_switch( 'show_email_thumbs' ) ) {
1032
  foreach ( $cont as $c ) if ( $c ) {
1033
  $message_part_1 .= '<tr><td>'.$c.'</td></tr>';
1034
  }
wppa-session.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * Contains all session routines
6
- * Version 8.1.00.008
7
  *
8
  * Firefox modifies data in the superglobal $_SESSION.
9
  * See https://bugzilla.mozilla.org/show_bug.cgi?id=991019
@@ -23,6 +23,9 @@ global $wppa_api_version;
23
  return $id;
24
  }
25
 
 
 
 
26
  // Start a session or retrieve the sessions data. To be called at init.
27
  function wppa_begin_session() {
28
  global $wpdb;
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
23
  return $id;
24
  }
25
 
26
+ // Dummy for wfcart
27
+ function wppa_session_start () {}
28
+
29
  // Start a session or retrieve the sessions data. To be called at init.
30
  function wppa_begin_session() {
31
  global $wpdb;
wppa-setup.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * Contains all the setup stuff
6
- * Version 8.1.00.001
7
  *
8
  */
9
 
@@ -401,6 +401,16 @@ global $wppa_error;
401
  }
402
  }
403
 
 
 
 
 
 
 
 
 
 
 
404
  // Done!
405
  if ( ! $wppa_error ) {
406
  $old_rev = round($old_rev); // might be 0.01 off
3
  * Package: wp-photo-album-plus
4
  *
5
  * Contains all the setup stuff
6
+ * Version 8.1.01.004
7
  *
8
  */
9
 
401
  }
402
  }
403
 
404
+ // Clear email locks
405
+ if ( defined( 'WPPA_LOCKDIR' ) && wppa_is_dir( WPPA_LOCKDIR ) ) {
406
+ $locks = glob( WPPA_LOCKDIR . '/' );
407
+ foreach( $locks as $lock ) {
408
+ if ( wppa_is_file( $lock ) ) {
409
+ wppa_unlink( $lock );
410
+ }
411
+ }
412
+ }
413
+
414
  // Done!
415
  if ( ! $wppa_error ) {
416
  $old_rev = round($old_rev); // might be 0.01 off
wppa-upload-common.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * Contains common upload functions
6
- * Version 8.1.01.001
7
  *
8
  */
9
 
@@ -177,7 +177,7 @@ global $wppa_supported_document_extensions;
177
  $id = wppa_insert_photo( $file['tmp_name'], $album, $file['name'] );
178
  if ( $id ) {
179
  wppa_upload_post_process( $the_type, $album, $id, $from );
180
- if ( wppa_switch( 'wppa_beuploadnotify' ) ) {
181
  wppa_schedule_mailinglist( 'feuploadnotify', $album, $id, 0, '', 0, 900 );
182
  }
183
 
3
  * Package: wp-photo-album-plus
4
  *
5
  * Contains common upload functions
6
+ * Version 8.1.01.004
7
  *
8
  */
9
 
177
  $id = wppa_insert_photo( $file['tmp_name'], $album, $file['name'] );
178
  if ( $id ) {
179
  wppa_upload_post_process( $the_type, $album, $id, $from );
180
+ if ( wppa_switch( 'beuploadnotify' ) ) {
181
  wppa_schedule_mailinglist( 'feuploadnotify', $album, $id, 0, '', 0, 900 );
182
  }
183
 
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.01.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/
@@ -24,7 +24,7 @@ global $wp_version;
24
 
25
  /* WPPA GLOBALS */
26
  global $wppa_api_version;
27
- $wppa_api_version = '8.1.01.003'; // 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.01.004
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.01.004'; // WPPA software version
28
  global $wppa_revno;
29
  $wppa_revno = str_replace( '.', '', $wppa_api_version ); // WPPA db version
30