WP Photo Album Plus - Version 8.2.05.005

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

Code changes from version 8.2.05.004 to 8.2.05.005

wppa-ajax.php CHANGED
@@ -2,7 +2,7 @@
2
  /* wppa-ajax.php
3
  *
4
  * Functions used in ajax requests
5
- * Version 8.2.05.002
6
  *
7
  */
8
 
@@ -3147,7 +3147,7 @@ global $wppa;
3147
  wppa_mkdir( dirname( $path ) );
3148
  }
3149
  $bret = wppa_put_contents( $path, '<?php ' . $value );
3150
-
3151
  if ( $bret ) {
3152
  $title = __( 'Code successfully saved', 'wp-photo-album-plus' );
3153
  }
@@ -3668,6 +3668,12 @@ global $wppa;
3668
  delete_option( 'wppa_last_error' );
3669
  break;
3670
 
 
 
 
 
 
 
3671
  case 'wppa_pl_dirname':
3672
  $value = wppa_sanitize_file_name( $value );
3673
  $value = trim( $value, ' /' );
2
  /* wppa-ajax.php
3
  *
4
  * Functions used in ajax requests
5
+ * Version 8.2.05.005
6
  *
7
  */
8
 
3147
  wppa_mkdir( dirname( $path ) );
3148
  }
3149
  $bret = wppa_put_contents( $path, '<?php ' . $value );
3150
+
3151
  if ( $bret ) {
3152
  $title = __( 'Code successfully saved', 'wp-photo-album-plus' );
3153
  }
3668
  delete_option( 'wppa_last_error' );
3669
  break;
3670
 
3671
+ case 'wppa_debuglog_purge':
3672
+ $debug_log = WP_CONTENT_DIR . '/debug.log';
3673
+ if ( is_writable( $debug_log ) ) {
3674
+ wppa_unlink( $debug_log );
3675
+ }
3676
+
3677
  case 'wppa_pl_dirname':
3678
  $value = wppa_sanitize_file_name( $value );
3679
  $value = trim( $value, ' /' );
wppa-common-functions.php CHANGED
@@ -2,7 +2,7 @@
2
  /* wppa-common-functions.php
3
  *
4
  * Functions used in admin and in themes
5
- * Version 8.2.05.002
6
  *
7
  */
8
 
@@ -936,8 +936,8 @@ global $wppa_session;
936
  // Selection boxes present and with a value?
937
  $t = '';
938
  for ( $i = 0; $i < 3; $i++ ) {
939
- if ( wppa_get( 'searchselbox-' . $i ) ) {
940
- $t .= ' ' . wppa_get( 'searchselbox-' . $i );
941
  }
942
  }
943
  if ( $t ) {
2
  /* wppa-common-functions.php
3
  *
4
  * Functions used in admin and in themes
5
+ * Version 8.2.05.005
6
  *
7
  */
8
 
936
  // Selection boxes present and with a value?
937
  $t = '';
938
  for ( $i = 0; $i < 3; $i++ ) {
939
+ if ( wppa_get( 'searchselbox-' . $i, '', 'text' ) ) {
940
+ $t .= ' ' . wppa_get( 'searchselbox-' . $i, '', 'text' );
941
  }
942
  }
943
  if ( $t ) {
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.2.05.002
7
  *
8
  */
9
 
@@ -89,6 +89,7 @@ function wppa_get_get_filter( $name ) {
89
  case 'album-parent':
90
  case 'captcha':
91
  case 'import-remote-max':
 
92
  $result = 'int';
93
  break;
94
 
3
  * Package: wp-photo-album-plus
4
  *
5
  * Contains functions for sanitizing and formatting user input
6
+ * Version 8.2.05.005
7
  *
8
  */
9
 
89
  case 'album-parent':
90
  case 'captcha':
91
  case 'import-remote-max':
92
+ case 'comment-edit':
93
  $result = 'int';
94
  break;
95
 
wppa-settings-autosave.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * manage all options
6
- * Version 8.2.05.004
7
  *
8
  */
9
 
@@ -10113,12 +10113,23 @@ global $wppa_subtab_names;
10113
 
10114
  $debug_log = WP_CONTENT_DIR . '/debug.log';
10115
  if ( is_readable( $debug_log ) ) {
 
10116
  $name = __('List debug.log', 'wp-photo-album-plus');
10117
- $desc = __('List the wp debug logfile', 'wp-photo-album-plus');
10118
  $help = '';
10119
  $slug = 'wppa_list_debuglog';
10120
  $html = wppa_popup_button( $slug );
10121
  wppa_setting_new($slug, '11', $name, $desc, $html, $help);
 
 
 
 
 
 
 
 
 
 
10122
  }
10123
 
10124
  wppa_setting_box_footer_new();
3
  * Package: wp-photo-album-plus
4
  *
5
  * manage all options
6
+ * Version 8.2.05.005
7
  *
8
  */
9
 
10113
 
10114
  $debug_log = WP_CONTENT_DIR . '/debug.log';
10115
  if ( is_readable( $debug_log ) ) {
10116
+ $size = wppa_filesize( $debug_log );
10117
  $name = __('List debug.log', 'wp-photo-album-plus');
10118
+ $desc = __('List the wp debug logfile', 'wp-photo-album-plus') . ' ' . __( 'Size=', 'wp-photo-album-plus' ) . $size;
10119
  $help = '';
10120
  $slug = 'wppa_list_debuglog';
10121
  $html = wppa_popup_button( $slug );
10122
  wppa_setting_new($slug, '11', $name, $desc, $html, $help);
10123
+
10124
+ if ( is_writable( $debug_log ) ) {
10125
+ $name = __('Purge debuglog', 'wp-photo-album-plus' );
10126
+ $desc = __('Deletes the debuglogfile', 'wp-photo-album-plus' );
10127
+ $help = '';
10128
+ $slug = 'wppa_debuglog_purge';
10129
+ $html = wppa_ajax_button(__('Do it!', 'wp-photo-album-plus' ), 'debuglog_purge', '0', true );
10130
+ wppa_setting_new($slug, '12', $name, $desc, $html, $help);
10131
+ }
10132
+
10133
  }
10134
 
10135
  wppa_setting_box_footer_new();
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.05.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/
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.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/