Version Description
= 8.0.07 =
- This version addresses various bug fixes, feature requests and security fixes.
Download this release
Release Info
Developer | opajaap |
Plugin | WP Photo Album Plus |
Version | 8.0.07.016 |
Comparing to | |
See all releases |
Code changes from version 8.0.07.014 to 8.0.07.016
- changelog.txt +2 -1
- readme.txt +1 -1
- wppa-admin.php +6 -3
- wppa-album-covers.php +7 -3
- wppa-common-functions.php +2 -2
- wppa-cron.php +2 -9
- wppa-functions.php +1 -6
- wppa-setup.php +5 -1
- wppa-slideshow.php +9 -5
- wppa.php +2 -2
changelog.txt
CHANGED
@@ -7,7 +7,7 @@ WP Photo Album Plus Changelog
|
|
7 |
* Popups on masonry thumbnails did not work when links on thumbnails differ from lightbox. Fixed.
|
8 |
* Rightclick on thumbnail or thumbnail popup allows you to open the link in a new tab, if No rightclick is not on.
|
9 |
* Title of the QR widget was wrong and not editable. Fixed.
|
10 |
-
* Linktypes 'The photos in the
|
11 |
* Fixed issues caused by tags that contain single quotes.
|
12 |
* Custom datafields could only be updated by users that had unfiltered_html capability. Fixed.
|
13 |
* One can no longer cache the stats widget, its useless.
|
@@ -15,6 +15,7 @@ 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 |
|
19 |
= 8.0.06 =
|
20 |
|
7 |
* Popups on masonry thumbnails did not work when links on thumbnails differ from lightbox. Fixed.
|
8 |
* Rightclick on thumbnail or thumbnail popup allows you to open the link in a new tab, if No rightclick is not on.
|
9 |
* Title of the QR widget was wrong and not editable. Fixed.
|
10 |
+
* Linktypes 'The photos in the author(s) albums, slideshow' and 'All the authors photos, slideshow' for the BestOf widget/shortcode did not work. Fixed.
|
11 |
* Fixed issues caused by tags that contain single quotes.
|
12 |
* Custom datafields could only be updated by users that had unfiltered_html capability. Fixed.
|
13 |
* One can no longer cache the stats widget, its useless.
|
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 |
|
readme.txt
CHANGED
@@ -136,7 +136,7 @@ See for the full changelog: <a href="http://www.wppa.nl/changelog/" >The documen
|
|
136 |
|
137 |
= 8.0.07 =
|
138 |
|
139 |
-
* This version addresses various bug fixes and security fixes.
|
140 |
|
141 |
== Screenshots ==
|
142 |
|
136 |
|
137 |
= 8.0.07 =
|
138 |
|
139 |
+
* This version addresses various bug fixes, feature requests and security fixes.
|
140 |
|
141 |
== Screenshots ==
|
142 |
|
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.
|
7 |
*
|
8 |
*/
|
9 |
|
@@ -287,6 +287,9 @@ function wppa_clear_wppa_cache() {
|
|
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,8 +305,8 @@ function wppa_clear_wppa_cache() {
|
|
302 |
/><br />
|
303 |
|
304 |
<p>' .
|
305 |
-
__( 'Hits', 'wp-photo-album-plus' ) . ': ' .
|
306 |
-
|
307 |
'</p>';
|
308 |
}
|
309 |
echo '
|
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 |
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 |
/><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 '
|
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.
|
7 |
*
|
8 |
*/
|
9 |
|
@@ -470,6 +470,8 @@ global $wpdb;
|
|
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,6 +644,8 @@ global $wpdb;
|
|
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,9 +2072,9 @@ global $wpdb;
|
|
2068 |
// Slideshow
|
2069 |
elseif ( wppa_opt( 'cover_sublinks' ) == 'slide' ) {
|
2070 |
$href_content = wppa_get_slideshow_url( array( 'album' => $albumid,
|
2071 |
-
|
2072 |
$ajax_content = wppa_get_slideshow_url_ajax( array( 'album' => $albumid,
|
2073 |
-
|
2074 |
|
2075 |
$onclick_content = "wppaDoAjaxRender( " . wppa( 'mocc' ) . ", '" . $alax_content . "', '" . $href_content . "' )";
|
2076 |
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* Functions for album covers
|
6 |
+
* Version 8.0.07.016
|
7 |
*
|
8 |
*/
|
9 |
|
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 |
// 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 |
// 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 |
|
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.0.07.
|
6 |
*
|
7 |
*/
|
8 |
|
@@ -1143,7 +1143,7 @@ global $cache_path;
|
|
1143 |
if ( $force ) {
|
1144 |
if ( wppa_is_dir( WPPA_CONTENT_PATH . '/cache/' ) ) {
|
1145 |
wppa_tree_empty( WPPA_CONTENT_PATH . '/cache' );
|
1146 |
-
wppa_log('
|
1147 |
}
|
1148 |
}
|
1149 |
|
2 |
/* wppa-common-functions.php
|
3 |
*
|
4 |
* Functions used in admin and in themes
|
5 |
+
* Version 8.0.07.015
|
6 |
*
|
7 |
*/
|
8 |
|
1143 |
if ( $force ) {
|
1144 |
if ( wppa_is_dir( WPPA_CONTENT_PATH . '/cache/' ) ) {
|
1145 |
wppa_tree_empty( WPPA_CONTENT_PATH . '/cache' );
|
1146 |
+
wppa_log('fso', 'Generic cache cleared');
|
1147 |
}
|
1148 |
}
|
1149 |
|
wppa-cron.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* Contains all cron functions
|
6 |
-
* Version 8.0.07.
|
7 |
*
|
8 |
*
|
9 |
*/
|
@@ -282,13 +282,6 @@ global $wppa_endtime;
|
|
282 |
}
|
283 |
wppa_log( 'Cron', 'Phase 8, time left = '.($wppa_endtime-time()) );
|
284 |
|
285 |
-
|
286 |
-
/*
|
287 |
-
// Cleanup iptc and exif
|
288 |
-
wppa_iptc_clean_garbage();
|
289 |
-
wppa_exif_clean_garbage();
|
290 |
-
*/
|
291 |
-
|
292 |
// Cleanup qr cache
|
293 |
if ( wppa_is_dir( WPPA_UPLOAD_PATH . '/qr' ) ) {
|
294 |
$qrs = wppa_glob( WPPA_UPLOAD_PATH . '/qr/*.svg' );
|
@@ -366,7 +359,7 @@ global $wppa_endtime;
|
|
366 |
wppa_log( 'Cron', 'Phase 14, time left = '.($wppa_endtime-time()) );
|
367 |
|
368 |
// Clear widget cache
|
369 |
-
wppa_remove_widget_cache_path();
|
370 |
|
371 |
// Done?
|
372 |
wppa_log( 'Cron', 'Phase 15, time left = '.($wppa_endtime-time()) );
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* Contains all cron functions
|
6 |
+
* Version 8.0.07.015
|
7 |
*
|
8 |
*
|
9 |
*/
|
282 |
}
|
283 |
wppa_log( 'Cron', 'Phase 8, time left = '.($wppa_endtime-time()) );
|
284 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
285 |
// Cleanup qr cache
|
286 |
if ( wppa_is_dir( WPPA_UPLOAD_PATH . '/qr' ) ) {
|
287 |
$qrs = wppa_glob( WPPA_UPLOAD_PATH . '/qr/*.svg' );
|
359 |
wppa_log( 'Cron', 'Phase 14, time left = '.($wppa_endtime-time()) );
|
360 |
|
361 |
// Clear widget cache
|
362 |
+
// wppa_remove_widget_cache_path();
|
363 |
|
364 |
// Done?
|
365 |
wppa_log( 'Cron', 'Phase 15, time left = '.($wppa_endtime-time()) );
|
wppa-functions.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* Various functions
|
6 |
-
* Version 8.0.07.
|
7 |
*
|
8 |
*/
|
9 |
|
@@ -972,11 +972,6 @@ global $wppa_current_shortcode_atts;
|
|
972 |
$size = strlen( $out );
|
973 |
if ( ! defined( 'DOING_AJAX' ) ) {
|
974 |
$extra = ' for shortcode {b}' . $wppa_current_shortcode . '{/b}. ';
|
975 |
-
if ( $size > 25 * 1024 ) {
|
976 |
-
if ( ! isset( $wppa_current_shortcode_atts['delay'] ) ) {
|
977 |
-
$extra .= ' File > 25k, maybe delay it?';
|
978 |
-
}
|
979 |
-
}
|
980 |
}
|
981 |
wppa_log( 'fso', 'Writring cachefile ' . str_replace( WPPA_CONTENT_PATH, '...', $cache_file ) . $extra );
|
982 |
wppa_put_contents( $cache_file, $out );
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* Various functions
|
6 |
+
* Version 8.0.07.015
|
7 |
*
|
8 |
*/
|
9 |
|
972 |
$size = strlen( $out );
|
973 |
if ( ! defined( 'DOING_AJAX' ) ) {
|
974 |
$extra = ' for shortcode {b}' . $wppa_current_shortcode . '{/b}. ';
|
|
|
|
|
|
|
|
|
|
|
975 |
}
|
976 |
wppa_log( 'fso', 'Writring cachefile ' . str_replace( WPPA_CONTENT_PATH, '...', $cache_file ) . $extra );
|
977 |
wppa_put_contents( $cache_file, $out );
|
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.
|
7 |
*
|
8 |
*/
|
9 |
|
@@ -218,6 +218,10 @@ global $wppa_error;
|
|
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 |
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* Contains all the setup stuff
|
6 |
+
* Version 8.0.07.016
|
7 |
*
|
8 |
*/
|
9 |
|
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 |
|
wppa-slideshow.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
*
|
5 |
* Contains all the slideshow high level functions
|
6 |
*
|
7 |
-
* Version 8.0.07.
|
8 |
*
|
9 |
*/
|
10 |
|
@@ -1384,8 +1384,10 @@ function wppa_slide_filmstrip( $opt = '' ) {
|
|
1384 |
while ( $ix < 0 ) {
|
1385 |
$ix += $cnt;
|
1386 |
}
|
1387 |
-
|
1388 |
-
|
|
|
|
|
1389 |
$idx++;
|
1390 |
}
|
1391 |
|
@@ -1404,8 +1406,10 @@ function wppa_slide_filmstrip( $opt = '' ) {
|
|
1404 |
while ( $idx < $end ) {
|
1405 |
$ix = $idx;
|
1406 |
while ( $ix >= $cnt ) $ix -= $cnt;
|
1407 |
-
|
1408 |
-
|
|
|
|
|
1409 |
$idx++;
|
1410 |
}
|
1411 |
|
4 |
*
|
5 |
* Contains all the slideshow high level functions
|
6 |
*
|
7 |
+
* Version 8.0.07.015
|
8 |
*
|
9 |
*/
|
10 |
|
1384 |
while ( $ix < 0 ) {
|
1385 |
$ix += $cnt;
|
1386 |
}
|
1387 |
+
if ( isset( $thumbs[$ix] ) ) {
|
1388 |
+
$thumb = $thumbs[$ix];
|
1389 |
+
wppa_do_filmthumb( $thumb['id'], $ix, false, $glue );
|
1390 |
+
}
|
1391 |
$idx++;
|
1392 |
}
|
1393 |
|
1406 |
while ( $idx < $end ) {
|
1407 |
$ix = $idx;
|
1408 |
while ( $ix >= $cnt ) $ix -= $cnt;
|
1409 |
+
if ( isset( $thumbs[$ix] ) ) {
|
1410 |
+
$thumb = $thumbs[$ix];
|
1411 |
+
wppa_do_filmthumb( $thumb['id'], $ix, false );
|
1412 |
+
}
|
1413 |
$idx++;
|
1414 |
}
|
1415 |
|
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.
|
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.
|
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.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 |
|
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 |
|