WP Photo Album Plus - Version 8.0.09.003

Version Description

= 8.0.09 =

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

Code changes from version 8.0.09.002 to 8.0.09.003

Files changed (4) hide show
  1. readme.txt +2 -2
  2. wppa-album-admin-autosave.php +2 -2
  3. wppa-cache.php +18 -8
  4. wppa.php +2 -2
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.8
7
  Requires PHP: 5.5
8
- Stable tag: 8.0.08.008
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.07 =
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.8
7
  Requires PHP: 5.5
8
+ Stable tag: 8.0.09.003
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.0.09 =
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.0.08.001
7
  *
8
  */
9
 
@@ -3128,7 +3128,7 @@ global $wpdb;
3128
  $a_id = wppa_get( 'edit-id' );
3129
  $photos = $wpdb->get_results($wpdb->prepare("SELECT * FROM $wpdb->wppa_photos WHERE album = %s " . wppa_get_photo_order( $a_id ) . " LIMIT 1000", $a_id ), ARRAY_A );
3130
 
3131
- $cur_in_album = wppa_get_photo_item( $cur, 'album' ) == $a_id;
3132
 
3133
  $title = __( 'The default is set in Basic settings -> Misc -> I -> Item 3', 'wp-photo-album-plus' );
3134
  $output .= '
3
  * Package: wp-photo-album-plus
4
  *
5
  * create, edit and delete albums
6
+ * Version 8.0.09.003
7
  *
8
  */
9
 
3128
  $a_id = wppa_get( 'edit-id' );
3129
  $photos = $wpdb->get_results($wpdb->prepare("SELECT * FROM $wpdb->wppa_photos WHERE album = %s " . wppa_get_photo_order( $a_id ) . " LIMIT 1000", $a_id ), ARRAY_A );
3130
 
3131
+ $cur_in_album = ( $cur < '1' ) || ( wppa_get_photo_item( $cur, 'album' ) == $a_id );
3132
 
3133
  $title = __( 'The default is set in Basic settings -> Misc -> I -> Item 3', 'wp-photo-album-plus' );
3134
  $output .= '
wppa-cache.php CHANGED
@@ -3,7 +3,7 @@
3
  /*
4
  /* Contains all wppa smart cache functions
5
  /*
6
- /* Version 8.0.08.007
7
  */
8
 
9
  // Test for caching
@@ -104,12 +104,6 @@ global $albums_used;
104
  global $photos_used;
105
  global $other_deps;
106
 
107
- // A delayed shortcode does not need to be cached
108
- // if ( wppa( 'delay' ) ) {
109
- // wppa_log( 'obs', 'Delayed shortcode '.$wppa_current_shortcode.' not cached' );
110
- // return;
111
- // }
112
-
113
  // Fill in defaults
114
  $defaults = array( 'file' => '',
115
  'data' => '',
@@ -132,7 +126,23 @@ global $other_deps;
132
 
133
  // Check for missing refs
134
  if ( ! $albums && ! $photos && ! $other ) {
135
- wppa_log( 'err', 'Missing album/photo/other ref for cachefile ' . str_replace( WPPA_CONTENT_PATH, '...', $file ) );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
136
  }
137
 
138
  // Sanitize input
3
  /*
4
  /* Contains all wppa smart cache functions
5
  /*
6
+ /* Version 8.0.09.003
7
  */
8
 
9
  // Test for caching
104
  global $photos_used;
105
  global $other_deps;
106
 
 
 
 
 
 
 
107
  // Fill in defaults
108
  $defaults = array( 'file' => '',
109
  'data' => '',
126
 
127
  // Check for missing refs
128
  if ( ! $albums && ! $photos && ! $other ) {
129
+
130
+ $err = true;
131
+
132
+ // Last resort: find albums from querystring
133
+ $a = wppa_get( 'album', false );
134
+ if ( $a !== false ) {
135
+ if ( $a === '0' ) {
136
+ $a = wppa_expand_enum( wppa_alb_to_enum_children( '0' ) );
137
+ }
138
+ $albums = $a;
139
+ $err = false;
140
+ }
141
+
142
+ // Report error
143
+ if ( $err ) {
144
+ wppa_log( 'err', 'Missing album/photo/other ref for cachefile ' . str_replace( WPPA_CONTENT_PATH, '...', $file ) );
145
+ }
146
  }
147
 
148
  // Sanitize input
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.09.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.0.09.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.0.09.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.0.09.003'; // WPPA software version
28
  global $wppa_revno;
29
  $wppa_revno = str_replace( '.', '', $wppa_api_version ); // WPPA db version
30