Version Description
= 7.5.10 =
- This version addresses various bug fixes and feature requests.
Download this release
Release Info
Developer | opajaap |
Plugin | WP Photo Album Plus |
Version | 7.5.10.007 |
Comparing to | |
See all releases |
Code changes from version 7.5.10.006 to 7.5.10.007
- changelog.txt +1 -1
- wppa-ajax.php +0 -2
- wppa-boxes-html.php +6 -0
- wppa-common-functions.php +2 -0
- wppa-settings-autosave.php +3 -3
- wppa.php +2 -2
changelog.txt
CHANGED
@@ -8,7 +8,7 @@ WP Photo Album Plus Changelog
|
|
8 |
* Fixed a imagick command that could cause unwanted padding in thumbnail creation.
|
9 |
* The availebility of ImagMagick is now detected and activated automatically on opening the settings page the first time after install/update if it was not already done manually.
|
10 |
* New setting Table I-F15: Character sizing.
|
11 |
-
You can specify 'linear' (default) or '
|
12 |
|
13 |
= 7.5.09 =
|
14 |
|
8 |
* Fixed a imagick command that could cause unwanted padding in thumbnail creation.
|
9 |
* The availebility of ImagMagick is now detected and activated automatically on opening the settings page the first time after install/update if it was not already done manually.
|
10 |
* New setting Table I-F15: Character sizing.
|
11 |
+
You can specify 'linear' (default), 'quadratic' or 'cubic' for the formula that determines the relation between the number of items and the size of the tagcloud text.
|
12 |
|
13 |
= 7.5.09 =
|
14 |
|
wppa-ajax.php
CHANGED
@@ -455,8 +455,6 @@ global $wppa_opt;
|
|
455 |
wppa_log('dbg', 'Bypassed nonce');
|
456 |
}
|
457 |
else {
|
458 |
-
wppa_log('obs', 'Expected nonce = '.wp_create_nonce('wppa-nonce-'.$mocc).', supplied nonce = '.$nonce);
|
459 |
-
wppa_log('obs', var_export($_REQUEST,true));
|
460 |
if ( ! wp_verify_nonce( $nonce, 'wppa-nonce-'.$mocc ) ) {
|
461 |
wppa_secfail( '70' );
|
462 |
}
|
455 |
wppa_log('dbg', 'Bypassed nonce');
|
456 |
}
|
457 |
else {
|
|
|
|
|
458 |
if ( ! wp_verify_nonce( $nonce, 'wppa-nonce-'.$mocc ) ) {
|
459 |
wppa_secfail( '70' );
|
460 |
}
|
wppa-boxes-html.php
CHANGED
@@ -1334,6 +1334,12 @@ function wppa_get_tagcloud_html( $seltags = '', $minsize = '8', $maxsize = '24'
|
|
1334 |
$l = $maxsize;
|
1335 |
$size = round(sqrt(($x-$s)/($l-$s))*($l-$s)+$s);
|
1336 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
1337 |
else {
|
1338 |
$size = round( $minsize + $tag['fraction'] * $factor );
|
1339 |
}
|
1334 |
$l = $maxsize;
|
1335 |
$size = round(sqrt(($x-$s)/($l-$s))*($l-$s)+$s);
|
1336 |
}
|
1337 |
+
elseif ( wppa_opt( 'tagcloud_formula' ) == 'cubic' ) {
|
1338 |
+
$x = $minsize + $tag['fraction'] * $factor;
|
1339 |
+
$s = $minsize;
|
1340 |
+
$l = $maxsize;
|
1341 |
+
$size = round(pow(($x-$s)/($l-$s),1/3)*($l-$s)+$s);
|
1342 |
+
}
|
1343 |
else {
|
1344 |
$size = round( $minsize + $tag['fraction'] * $factor );
|
1345 |
}
|
wppa-common-functions.php
CHANGED
@@ -1078,6 +1078,7 @@ global $cache_path;
|
|
1078 |
wppa_remove_widget_cache_path( '', true );
|
1079 |
|
1080 |
// Log where it came from
|
|
|
1081 |
$data = debug_backtrace( DEBUG_BACKTRACE_IGNORE_ARGS, 6 );
|
1082 |
$i = 1;
|
1083 |
$stack =
|
@@ -1085,6 +1086,7 @@ global $cache_path;
|
|
1085 |
( isset( $data[$i]['line'] ) ? $data[$i]['line'] . ' ' : '' ) .
|
1086 |
( isset( $data[$i]['function'] ) ? $data[$i]['function'] . '() ' : '' );
|
1087 |
wppa_log( 'obs', '{b}WPPA cache{/b} cleared by ' . $stack );
|
|
|
1088 |
}
|
1089 |
|
1090 |
// Schedule a cron job. This is the normal operation
|
1078 |
wppa_remove_widget_cache_path( '', true );
|
1079 |
|
1080 |
// Log where it came from
|
1081 |
+
/*
|
1082 |
$data = debug_backtrace( DEBUG_BACKTRACE_IGNORE_ARGS, 6 );
|
1083 |
$i = 1;
|
1084 |
$stack =
|
1086 |
( isset( $data[$i]['line'] ) ? $data[$i]['line'] . ' ' : '' ) .
|
1087 |
( isset( $data[$i]['function'] ) ? $data[$i]['function'] . '() ' : '' );
|
1088 |
wppa_log( 'obs', '{b}WPPA cache{/b} cleared by ' . $stack );
|
1089 |
+
*/
|
1090 |
}
|
1091 |
|
1092 |
// Schedule a cron job. This is the normal operation
|
wppa-settings-autosave.php
CHANGED
@@ -1642,12 +1642,12 @@ global $wppa_supported_camara_brands;
|
|
1642 |
$tags = 'layout,size,widget';
|
1643 |
wppa_setting($slug, '14', $name, $desc, $html, $help, $clas, $tags);
|
1644 |
|
1645 |
-
$name = __('
|
1646 |
$desc = __('Formula to decide fontsizes', 'wp-photo-album-plus');
|
1647 |
$help = '';
|
1648 |
$slug = 'wppa_tagcloud_formula';
|
1649 |
-
$opts = array('linear', 'quadratic');
|
1650 |
-
$vals = array('linear', 'quadratic');
|
1651 |
$html = wppa_select($slug, $opts, $vals);
|
1652 |
$clas = '';
|
1653 |
$tags = 'layout,size,widget';
|
1642 |
$tags = 'layout,size,widget';
|
1643 |
wppa_setting($slug, '14', $name, $desc, $html, $help, $clas, $tags);
|
1644 |
|
1645 |
+
$name = __('Tagcloud character sizing', 'wp-photo-album-plus');
|
1646 |
$desc = __('Formula to decide fontsizes', 'wp-photo-album-plus');
|
1647 |
$help = '';
|
1648 |
$slug = 'wppa_tagcloud_formula';
|
1649 |
+
$opts = array('linear', 'quadratic', 'cubic');
|
1650 |
+
$vals = array('linear', 'quadratic', 'cubic');
|
1651 |
$html = wppa_select($slug, $opts, $vals);
|
1652 |
$clas = '';
|
1653 |
$tags = 'layout,size,widget';
|
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: 7.5.10.
|
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_revno; $wppa_revno = '7510'; // WPPA db version
|
27 |
-
global $wppa_api_version; $wppa_api_version = '7.5.10.
|
28 |
|
29 |
/* Init page js data */
|
30 |
global $wppa_js_page_data; $wppa_js_page_data = '';
|
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: 7.5.10.007
|
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_revno; $wppa_revno = '7510'; // WPPA db version
|
27 |
+
global $wppa_api_version; $wppa_api_version = '7.5.10.007'; // WPPA software version
|
28 |
|
29 |
/* Init page js data */
|
30 |
global $wppa_js_page_data; $wppa_js_page_data = '';
|