WP Photo Album Plus - Version 8.1.10.003

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

Code changes from version 8.1.10.002 to 8.1.10.003

changelog.txt CHANGED
@@ -5,6 +5,7 @@ WP Photo Album Plus Changelog
5
  * Widgets do no longer give errors in the widget block editor.
6
  * Improved layout of the album admin and photo admin pages.
7
  * A non admin user who has album admin access can now only delete items that are in albums that he can edit atthe backend i.e. has access to (public or his own).
 
8
 
9
  = 8.1.09 =
10
 
5
  * Widgets do no longer give errors in the widget block editor.
6
  * Improved layout of the album admin and photo admin pages.
7
  * A non admin user who has album admin access can now only delete items that are in albums that he can edit atthe backend i.e. has access to (public or his own).
8
+ * Fixed a pagination issue on masonry rows display.
9
 
10
  = 8.1.09 =
11
 
theme/wppa-theme.php CHANGED
@@ -3,11 +3,11 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * display the albums/photos/slideshow in a page or post
6
- * Version 8.1.07.002
7
  */
8
  function wppa_theme() {
9
 
10
- global $wppa_version; $wppa_version = '8.1.07.002'; // The version number of this file
11
  global $wppa;
12
  global $wppa_show_statistics; // Can be set to true by a custom page template
13
  global $wppa_empty_content;
@@ -262,13 +262,11 @@ global $wppa_empty_content;
262
  }
263
  wppa_out( '<tr class="wppa-masonry" ><td class="wppa-dummy" style="padding:0;border:none;" ></td></tr>' );
264
  wppa_out( '</tbody></table>' );
 
265
 
266
  // The footer
267
  wppa_album_name( 'bottom' ); // Optionally display album name
268
  wppa_album_desc( 'bottom' ); // Optionally display album description
269
- wppa_out( '<script type="text/javascript" >' . // Fix bug in IE and Chrome
270
- 'jQuery(document).ready(function(){wppaSetMasHorFrameWidthsForIeAndChrome(' . wppa( 'mocc' ) . ');});' .
271
- '</script>' );
272
  wppa_thumb_area( 'close' ); // Close Thumbarea sub-container
273
 
274
  } // Masonry-h
3
  * Package: wp-photo-album-plus
4
  *
5
  * display the albums/photos/slideshow in a page or post
6
+ * Version 8.1.10.003
7
  */
8
  function wppa_theme() {
9
 
10
+ global $wppa_version; $wppa_version = '8.1.10.003'; // The version number of this file
11
  global $wppa;
12
  global $wppa_show_statistics; // Can be set to true by a custom page template
13
  global $wppa_empty_content;
262
  }
263
  wppa_out( '<tr class="wppa-masonry" ><td class="wppa-dummy" style="padding:0;border:none;" ></td></tr>' );
264
  wppa_out( '</tbody></table>' );
265
+ wppa_js( 'jQuery(document).ready(function(){wppaSetMasHorFrameWidthsForIeAndChrome(' . wppa( 'mocc' ) . ');});' );
266
 
267
  // The footer
268
  wppa_album_name( 'bottom' ); // Optionally display album name
269
  wppa_album_desc( 'bottom' ); // Optionally display album description
 
 
 
270
  wppa_thumb_area( 'close' ); // Close Thumbarea sub-container
271
 
272
  } // Masonry-h
wppa-ajax.php CHANGED
@@ -2,7 +2,7 @@
2
  /* wppa-ajax.php
3
  *
4
  * Functions used in ajax requests
5
- * Version 8.1.09.007
6
  *
7
  */
8
 
@@ -1494,8 +1494,10 @@ global $wppa;
1494
  $result = wppa_make_relative( $result );
1495
  $result = wppa_compress_html( $result );
1496
  $result .= wppa_print_psjs( true );
 
1497
  $result_a = wppa_split_html_js( $result );
1498
  $result = wp_json_encode( ['html' => $result_a['html'], 'js' => $result_a['js']] );
 
1499
  echo( $result );
1500
 
1501
  $tim_2 = microtime( true );
@@ -4137,6 +4139,7 @@ function wppa_json_photo_update( $id, $txt, $err = '0', $thumbmod = false, $phot
4137
  // Convert html with script tags to json format like {html:html-text,js:jstext-without-script-tags}
4138
  function wppa_split_html_js( $text ) {
4139
 
 
4140
  $workarr = explode( '<script>', $text );
4141
 
4142
  // Any js present?
2
  /* wppa-ajax.php
3
  *
4
  * Functions used in ajax requests
5
+ * Version 8.1.10.003
6
  *
7
  */
8
 
1494
  $result = wppa_make_relative( $result );
1495
  $result = wppa_compress_html( $result );
1496
  $result .= wppa_print_psjs( true );
1497
+
1498
  $result_a = wppa_split_html_js( $result );
1499
  $result = wp_json_encode( ['html' => $result_a['html'], 'js' => $result_a['js']] );
1500
+
1501
  echo( $result );
1502
 
1503
  $tim_2 = microtime( true );
4139
  // Convert html with script tags to json format like {html:html-text,js:jstext-without-script-tags}
4140
  function wppa_split_html_js( $text ) {
4141
 
4142
+ $text = preg_replace( '/<script(.*)>/i', '<script>', $text );
4143
  $workarr = explode( '<script>', $text );
4144
 
4145
  // Any js present?
wppa-functions.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * Various functions
6
- * Version 8.1.09.008
7
  *
8
  */
9
 
@@ -949,7 +949,7 @@ global $other_deps;
949
  }
950
  else wppa_out( '<span style="color:red">ERROR: Missing function wppa_theme(), check the installation of WPPA+. Remove customized wppa_theme.php</span>' );
951
  global $wppa_version;
952
- $expected_version = '8.1.07.002';
953
  if ( $wppa_version != $expected_version ) {
954
  wppa_dbg_msg( 'WARNING: customized wppa-theme.php is out of rev. Expected version: ' . $expected_version . ' found: ' . $wppa_version, 'red' );
955
  }
3
  * Package: wp-photo-album-plus
4
  *
5
  * Various functions
6
+ * Version 8.1.10.003
7
  *
8
  */
9
 
949
  }
950
  else wppa_out( '<span style="color:red">ERROR: Missing function wppa_theme(), check the installation of WPPA+. Remove customized wppa_theme.php</span>' );
951
  global $wppa_version;
952
+ $expected_version = '8.1.10.003';
953
  if ( $wppa_version != $expected_version ) {
954
  wppa_dbg_msg( 'WARNING: customized wppa-theme.php is out of rev. Expected version: ' . $expected_version . ' found: ' . $wppa_version, 'red' );
955
  }
wppa-upload.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * Contains all the upload pages and functions
6
- * Version 8.1.09.003
7
  *
8
  */
9
 
@@ -73,13 +73,13 @@ global $upload_album;
73
  if ( wppa_get( 'go-edit-multiple', false, 'bool' ) ) {
74
  if ( current_user_can( 'wppa_admin' ) ) {
75
  wppa_ok_message( __( 'Connecting to edit album...' , 'wp-photo-album-plus' ) ); ?>
76
- <script type="text/javascript" >
77
  document.location = '<?php echo( wppa_dbg_url( get_admin_url().'admin.php?page=wppa_admin_menu&tab=edit&edit-id=' . $upload_album . '&wppa-nonce=' . wp_create_nonce( 'wppa-nonce', 'wppa-nonce' ), 'js' ) ) ?>';
78
  </script>
79
  <?php }
80
  elseif ( wppa_opt( 'upload_edit' ) != '-none-' ) {
81
  wppa_ok_message( __( 'Connecting to edit photos...' , 'wp-photo-album-plus' ) ); ?>
82
- <script type="text/javascript" >document.location = '<?php echo( wppa_dbg_url( get_admin_url().'admin.php?page=wppa_edit_photo', 'js' ) ) ?>';</script>
83
  <?php }
84
  }
85
  }
3
  * Package: wp-photo-album-plus
4
  *
5
  * Contains all the upload pages and functions
6
+ * Version 8.1.10.003
7
  *
8
  */
9
 
73
  if ( wppa_get( 'go-edit-multiple', false, 'bool' ) ) {
74
  if ( current_user_can( 'wppa_admin' ) ) {
75
  wppa_ok_message( __( 'Connecting to edit album...' , 'wp-photo-album-plus' ) ); ?>
76
+ <script>
77
  document.location = '<?php echo( wppa_dbg_url( get_admin_url().'admin.php?page=wppa_admin_menu&tab=edit&edit-id=' . $upload_album . '&wppa-nonce=' . wp_create_nonce( 'wppa-nonce', 'wppa-nonce' ), 'js' ) ) ?>';
78
  </script>
79
  <?php }
80
  elseif ( wppa_opt( 'upload_edit' ) != '-none-' ) {
81
  wppa_ok_message( __( 'Connecting to edit photos...' , 'wp-photo-album-plus' ) ); ?>
82
+ <script>document.location = '<?php echo( wppa_dbg_url( get_admin_url().'admin.php?page=wppa_edit_photo', 'js' ) ) ?>';</script>
83
  <?php }
84
  }
85
  }
wppa-wrappers.php CHANGED
@@ -5,7 +5,7 @@
5
  * Contains wrappers for standard php functions
6
  * For security and bug reasons
7
  *
8
- * Version 8.1.10.002
9
  *
10
  */
11
 
@@ -941,7 +941,7 @@ static $allowed_tags;
941
  $html = $temp['html'];
942
  $js = $temp['js'];
943
 
944
- /* Start debugging */
945
  $before = $html;
946
  $before = str_replace( ['" >',';"','; ', '&amp;', 'style=" ', '"/>', ' style=""', ';;'], ['">','"',';', '&', 'style="', '" />', '', ';'], $before );
947
  $after = wp_kses( $before, $t, $p );
5
  * Contains wrappers for standard php functions
6
  * For security and bug reasons
7
  *
8
+ * Version 8.1.10.003
9
  *
10
  */
11
 
941
  $html = $temp['html'];
942
  $js = $temp['js'];
943
 
944
+ /* Start debugging *//*
945
  $before = $html;
946
  $before = str_replace( ['" >',';"','; ', '&amp;', 'style=" ', '"/>', ' style=""', ';;'], ['">','"',';', '&', 'style="', '" />', '', ';'], $before );
947
  $after = wp_kses( $before, $t, $p );
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.10.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,7 +24,7 @@ global $wp_version;
24
 
25
  /* WPPA GLOBALS */
26
  global $wppa_api_version;
27
- $wppa_api_version = '8.1.10.002'; // 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.10.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
 
25
  /* WPPA GLOBALS */
26
  global $wppa_api_version;
27
+ $wppa_api_version = '8.1.10.003'; // WPPA software version
28
  global $wppa_revno;
29
  $wppa_revno = str_replace( '.', '', $wppa_api_version ); // WPPA db version
30