WP Photo Album Plus - Version 8.0.07.015

Version Description

= 8.0.07 =

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

Code changes from version 8.0.07.016 to 8.0.07.015

changelog.txt CHANGED
@@ -15,7 +15,6 @@ WP Photo Album Plus Changelog
15
  * Added menu item Search. Opens a page with the green search bar like on the album table. Required capability is equal to that for Album Admin.
16
  * If comments are disabled, the menu item to manage comments will no longer show up.
17
  * Fixed various typos in texts.
18
- * Frontend edit photo New style will automatically update the displayed name and description in the slideshow.
19
 
20
  = 8.0.06 =
21
 
15
  * Added menu item Search. Opens a page with the green search bar like on the album table. Required capability is equal to that for Album Admin.
16
  * If comments are disabled, the menu item to manage comments will no longer show up.
17
  * Fixed various typos in texts.
 
18
 
19
  = 8.0.06 =
20
 
wppa-admin.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * Contains the admin menu and startups the admin pages
6
- * Version 8.0.07.016
7
  *
8
  */
9
 
@@ -287,9 +287,6 @@ function wppa_clear_wppa_cache() {
287
  echo '<br><b>' . sprintf( __( '%d cachefiles deleted', 'wp-photo-album-plus' ), $count ) . '</br>';
288
  }
289
  else {
290
- $hits = get_option( 'wppa_cache_hits', '0' );
291
- $miss = get_option( 'wppa_cache_misses', '1' );
292
- $perc = sprintf( '%5.2f', 100 * $hits / ( $hits + $miss ) );
293
  echo '
294
  <p>' .
295
  __( 'Caching is \'smart\'. This means that cache files are cleared when the display of a wppa widget or shortcode will change due to adding albums, photos comments or ratings.', 'wp-photo-album-plus' ) . '
@@ -305,8 +302,8 @@ function wppa_clear_wppa_cache() {
305
  /><br />
306
 
307
  <p>' .
308
- __( 'Hits', 'wp-photo-album-plus' ) . ': ' . $perc . '% ' .
309
- // __( 'Misses', 'wp-photo-album-plus' ) .': ' . get_option( 'wppa_cache_misses', '0' ) .
310
  '</p>';
311
  }
312
  echo '
3
  * Package: wp-photo-album-plus
4
  *
5
  * Contains the admin menu and startups the admin pages
6
+ * Version 8.0.07.012
7
  *
8
  */
9
 
287
  echo '<br><b>' . sprintf( __( '%d cachefiles deleted', 'wp-photo-album-plus' ), $count ) . '</br>';
288
  }
289
  else {
 
 
 
290
  echo '
291
  <p>' .
292
  __( 'Caching is \'smart\'. This means that cache files are cleared when the display of a wppa widget or shortcode will change due to adding albums, photos comments or ratings.', 'wp-photo-album-plus' ) . '
302
  /><br />
303
 
304
  <p>' .
305
+ __( 'Hits', 'wp-photo-album-plus' ) . ': ' . get_option( 'wppa_cache_hits', '0' ) . ', ' .
306
+ __( 'Misses', 'wp-photo-album-plus' ) .': ' . get_option( 'wppa_cache_misses', '0' ) .
307
  '</p>';
308
  }
309
  echo '
wppa-album-covers.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * Functions for album covers
6
- * Version 8.0.07.016
7
  *
8
  */
9
 
@@ -470,8 +470,6 @@ global $wpdb;
470
  // Find the slideshow link and onclick
471
  $href_slideshow = wppa_get_slideshow_url( array( 'album' => $albumid,
472
  'page' => $linkpage ) );
473
- $ajax_slideshow = wppa_get_slideshow_url_ajax( array( 'album' => $albumid,
474
- 'page' => $linkpage ) );
475
  if ( ! $linkpage ) {
476
  $onclick_slideshow = "wppaDoAjaxRender( " . wppa( 'mocc' ) . ", '" . $ajax_slideshow . "', '" . $href_slideshow . "' )";
477
  $href_slideshow = "#";
@@ -644,8 +642,6 @@ global $wpdb;
644
  // Find the slideshow link and onclick
645
  $href_slideshow = wppa_get_slideshow_url( array( 'album' => $albumid,
646
  'page' => $linkpage ) );
647
- $ajax_slideshow = wppa_get_slideshow_url_ajax( array( 'album' => $albumid,
648
- 'page' => $linkpage ) );
649
  if ( ! $linkpage ) {
650
  $onclick_slideshow = "wppaDoAjaxRender( " . wppa( 'mocc' ) . ", '" . $ajax_slideshow . "', '" . $href_slideshow . "' )";
651
  $href_slideshow = "#";
@@ -2072,9 +2068,9 @@ global $wpdb;
2072
  // Slideshow
2073
  elseif ( wppa_opt( 'cover_sublinks' ) == 'slide' ) {
2074
  $href_content = wppa_get_slideshow_url( array( 'album' => $albumid,
2075
- 'page' => $linkpage ) );
2076
  $ajax_content = wppa_get_slideshow_url_ajax( array( 'album' => $albumid,
2077
- 'page' => $linkpage ) );
2078
 
2079
  $onclick_content = "wppaDoAjaxRender( " . wppa( 'mocc' ) . ", '" . $alax_content . "', '" . $href_content . "' )";
2080
 
3
  * Package: wp-photo-album-plus
4
  *
5
  * Functions for album covers
6
+ * Version 8.0.07.004
7
  *
8
  */
9
 
470
  // Find the slideshow link and onclick
471
  $href_slideshow = wppa_get_slideshow_url( array( 'album' => $albumid,
472
  'page' => $linkpage ) );
 
 
473
  if ( ! $linkpage ) {
474
  $onclick_slideshow = "wppaDoAjaxRender( " . wppa( 'mocc' ) . ", '" . $ajax_slideshow . "', '" . $href_slideshow . "' )";
475
  $href_slideshow = "#";
642
  // Find the slideshow link and onclick
643
  $href_slideshow = wppa_get_slideshow_url( array( 'album' => $albumid,
644
  'page' => $linkpage ) );
 
 
645
  if ( ! $linkpage ) {
646
  $onclick_slideshow = "wppaDoAjaxRender( " . wppa( 'mocc' ) . ", '" . $ajax_slideshow . "', '" . $href_slideshow . "' )";
647
  $href_slideshow = "#";
2068
  // Slideshow
2069
  elseif ( wppa_opt( 'cover_sublinks' ) == 'slide' ) {
2070
  $href_content = wppa_get_slideshow_url( array( 'album' => $albumid,
2071
+ 'page' => $linkpage ) );
2072
  $ajax_content = wppa_get_slideshow_url_ajax( array( 'album' => $albumid,
2073
+ 'page' => $linkpage ) );
2074
 
2075
  $onclick_content = "wppaDoAjaxRender( " . wppa( 'mocc' ) . ", '" . $alax_content . "', '" . $href_content . "' )";
2076
 
wppa-settings-autosave.php CHANGED
@@ -4982,7 +4982,7 @@ global $wppa_subtab_names;
4982
  );
4983
  $html1 = wppa_select($slug1, $opts, $vals, 'wppaRefreshAfter();');
4984
  $npag = wppa_need_page($slug1);
4985
- $html2 = $npag ? wppa_select($slug2, $opts_page_auto, $vals_page) : '';
4986
  $html3 = $npag ? wppa_checkbox($slug3) : '';
4987
  $html4 = wppa_checkbox($slug4);
4988
  $html = array($html1, $html2, $html3, $html4);
4982
  );
4983
  $html1 = wppa_select($slug1, $opts, $vals, 'wppaRefreshAfter();');
4984
  $npag = wppa_need_page($slug1);
4985
+ $html2 = $npag ? wppa_select($slug2, $opts_page_post, $vals_page) : '';
4986
  $html3 = $npag ? wppa_checkbox($slug3) : '';
4987
  $html4 = wppa_checkbox($slug4);
4988
  $html = array($html1, $html2, $html3, $html4);
wppa-setup.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * Contains all the setup stuff
6
- * Version 8.0.07.016
7
  *
8
  */
9
 
@@ -218,10 +218,6 @@ global $wppa_error;
218
  }
219
  wppa_log( 'OBS', 'DB UPDATED' );
220
 
221
- // Clear cahce statistics
222
- update_option( 'wppa_cache_hits', '0' );
223
- update_option( 'wppa_cache_misses', '0' );
224
-
225
  // Convert any changed and remove obsolete setting options
226
  if ( $old_rev > '100' ) { // On update only
227
 
3
  * Package: wp-photo-album-plus
4
  *
5
  * Contains all the setup stuff
6
+ * Version 8.0.04.004
7
  *
8
  */
9
 
218
  }
219
  wppa_log( 'OBS', 'DB UPDATED' );
220
 
 
 
 
 
221
  // Convert any changed and remove obsolete setting options
222
  if ( $old_rev > '100' ) { // On update only
223
 
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.0.07.016
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.0.07.016'; // 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.0.07.015
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.0.07.015'; // WPPA software version
28
  global $wppa_revno;
29
  $wppa_revno = str_replace( '.', '', $wppa_api_version ); // WPPA db version
30