Version Description
= 7.6.06 =
- Security release.
Download this release
Release Info
Developer | opajaap |
Plugin | WP Photo Album Plus |
Version | 7.6.06.001 |
Comparing to | |
See all releases |
Code changes from version 7.6.05.009 to 7.6.06.001
- changelog.txt +5 -0
- cloudinary/src/Cloudinary.php +2 -2
- readme.txt +3 -3
- wppa-maintenance.php +23 -10
- wppa.php +3 -3
changelog.txt
CHANGED
@@ -1,5 +1,10 @@
|
|
1 |
WP Photo Album Plus Changelog
|
2 |
|
|
|
|
|
|
|
|
|
|
|
3 |
= 7.6.05 =
|
4 |
|
5 |
* Changes for compatibility with PHP 8
|
1 |
WP Photo Album Plus Changelog
|
2 |
|
3 |
+
= 7.6.06 =
|
4 |
+
|
5 |
+
* Fixed Cloudinary interface.
|
6 |
+
* Fixed security issues.
|
7 |
+
|
8 |
= 7.6.05 =
|
9 |
|
10 |
* Changes for compatibility with PHP 8
|
cloudinary/src/Cloudinary.php
CHANGED
@@ -99,7 +99,7 @@ class Cloudinary {
|
|
99 |
$height = Cloudinary::option_get($options, "height");
|
100 |
|
101 |
$has_layer = Cloudinary::option_get($options, "underlay") || Cloudinary::option_get($options, "overlay");
|
102 |
-
$angle = implode(Cloudinary::build_array(Cloudinary::option_consume($options, "angle"))
|
103 |
$crop = Cloudinary::option_consume($options, "crop");
|
104 |
|
105 |
$no_html_sizes = $has_layer || !empty($angle) || $crop == "fit" || $crop == "limit";
|
@@ -131,7 +131,7 @@ class Cloudinary {
|
|
131 |
$border = $border_width . "px_solid_" . $border_color;
|
132 |
}
|
133 |
|
134 |
-
$flags = implode(Cloudinary::build_array(Cloudinary::option_consume($options, "flags"))
|
135 |
|
136 |
$params = array("w"=>$width, "h"=>$height, "t"=>$named_transformation, "c"=>$crop, "b"=>$background, "co"=>$color, "e"=>$effect, "bo"=>$border, "a"=>$angle, "fl"=>$flags);
|
137 |
$simple_params = array("x"=>"x", "y"=>"y", "r"=>"radius", "d"=>"default_image", "g"=>"gravity",
|
99 |
$height = Cloudinary::option_get($options, "height");
|
100 |
|
101 |
$has_layer = Cloudinary::option_get($options, "underlay") || Cloudinary::option_get($options, "overlay");
|
102 |
+
$angle = implode(".", Cloudinary::build_array(Cloudinary::option_consume($options, "angle")));
|
103 |
$crop = Cloudinary::option_consume($options, "crop");
|
104 |
|
105 |
$no_html_sizes = $has_layer || !empty($angle) || $crop == "fit" || $crop == "limit";
|
131 |
$border = $border_width . "px_solid_" . $border_color;
|
132 |
}
|
133 |
|
134 |
+
$flags = implode(".", Cloudinary::build_array(Cloudinary::option_consume($options, "flags")) );
|
135 |
|
136 |
$params = array("w"=>$width, "h"=>$height, "t"=>$named_transformation, "c"=>$crop, "b"=>$background, "co"=>$color, "e"=>$effect, "bo"=>$border, "a"=>$angle, "fl"=>$flags);
|
137 |
$simple_params = array("x"=>"x", "y"=>"y", "r"=>"radius", "d"=>"default_image", "g"=>"gravity",
|
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.6
|
7 |
Requires PHP: 5.5
|
8 |
-
Stable tag: 7.6.
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
@@ -134,9 +134,9 @@ See for the full changelog: <a href="http://www.wppa.nl/changelog/" >The documen
|
|
134 |
|
135 |
== Upgrade Notice ==
|
136 |
|
137 |
-
= 7.6.
|
138 |
|
139 |
-
*
|
140 |
|
141 |
== Screenshots ==
|
142 |
|
5 |
Requires at least: 3.9
|
6 |
Tested up to: 5.6
|
7 |
Requires PHP: 5.5
|
8 |
+
Stable tag: 7.6.05.009
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
134 |
|
135 |
== Upgrade Notice ==
|
136 |
|
137 |
+
= 7.6.06 =
|
138 |
|
139 |
+
* Security release.
|
140 |
|
141 |
== Screenshots ==
|
142 |
|
wppa-maintenance.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* Contains (not yet, but in the future maybe) all the maintenance routines
|
6 |
-
* Version 7.
|
7 |
*
|
8 |
*/
|
9 |
|
@@ -857,12 +857,17 @@ global $wppa_endtime;
|
|
857 |
break;
|
858 |
|
859 |
case 'wppa_fix_userids':
|
860 |
-
$ratings = $wpdb->get_results( "SELECT * FROM $wpdb->wppa_rating
|
|
|
861 |
foreach ( $ratings as $rating ) {
|
862 |
$username = $rating['user'];
|
863 |
-
$userid = $wpdb->get_var(
|
|
|
|
|
864 |
if ( ! $userid ) {
|
865 |
-
$usrs = $wpdb->get_col(
|
|
|
|
|
866 |
if ( count( $usrs ) == 1 ) {
|
867 |
$userid = $usrs[0];
|
868 |
}
|
@@ -872,22 +877,29 @@ global $wppa_endtime;
|
|
872 |
}
|
873 |
// Update
|
874 |
$rid = $rating['id'];
|
875 |
-
$wpdb->query( "UPDATE $wpdb->wppa_rating
|
|
|
876 |
}
|
877 |
|
878 |
-
$comments = $wpdb->get_results( "SELECT * FROM $wpdb->wppa_comments WHERE photo = $id
|
879 |
foreach ( $comments as $comment ) {
|
880 |
$username = $comment['user'];
|
881 |
$useremail = $comment['email'];
|
882 |
-
$userid = $wpdb->get_var(
|
|
|
|
|
883 |
if ( ! $userid ) {
|
884 |
-
$usrs = $wpdb->get_col(
|
|
|
|
|
885 |
if ( count( $usrs ) == 1 ) {
|
886 |
$userid = $usrs[0];
|
887 |
}
|
888 |
}
|
889 |
if ( ! $userid ) {
|
890 |
-
$usrs = $wpdb->get_col(
|
|
|
|
|
891 |
if ( count( $usrs ) == 1 ) {
|
892 |
$userid = $usrs[0];
|
893 |
}
|
@@ -897,7 +909,8 @@ global $wppa_endtime;
|
|
897 |
}
|
898 |
// Update
|
899 |
$cid = $comment['id'];
|
900 |
-
$wpdb->query( "UPDATE $wpdb->wppa_comments
|
|
|
901 |
}
|
902 |
break;
|
903 |
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* Contains (not yet, but in the future maybe) all the maintenance routines
|
6 |
+
* Version 7.6.06.001
|
7 |
*
|
8 |
*/
|
9 |
|
857 |
break;
|
858 |
|
859 |
case 'wppa_fix_userids':
|
860 |
+
$ratings = $wpdb->get_results( $wpdb->prepare( "SELECT * FROM $wpdb->wppa_rating
|
861 |
+
WHERE photo = %d", $id ), ARRAY_A );
|
862 |
foreach ( $ratings as $rating ) {
|
863 |
$username = $rating['user'];
|
864 |
+
$userid = $wpdb->get_var( $wpdb->prepare( "SELECT ID
|
865 |
+
FROM $wpdb->users
|
866 |
+
WHERE user_login = %s", $username ) ); // try login name
|
867 |
if ( ! $userid ) {
|
868 |
+
$usrs = $wpdb->get_col( $wpdb->prepare( "SELECT ID
|
869 |
+
FROM $wpdb->users
|
870 |
+
WHERE display_name = %s", $username ) ); // try display name
|
871 |
if ( count( $usrs ) == 1 ) {
|
872 |
$userid = $usrs[0];
|
873 |
}
|
877 |
}
|
878 |
// Update
|
879 |
$rid = $rating['id'];
|
880 |
+
$wpdb->query( $wpdb->prepare( "UPDATE $wpdb->wppa_rating
|
881 |
+
SET userid = %d WHERE id = %d", $userid, $rid ) );
|
882 |
}
|
883 |
|
884 |
+
$comments = $wpdb->get_results( $wpdb->prepare( "SELECT * FROM $wpdb->wppa_comments WHERE photo = %s", $id ), ARRAY_A );
|
885 |
foreach ( $comments as $comment ) {
|
886 |
$username = $comment['user'];
|
887 |
$useremail = $comment['email'];
|
888 |
+
$userid = $wpdb->get_var( $wpdb->prepare( "SELECT ID
|
889 |
+
FROM $wpdb->users
|
890 |
+
WHERE user_login = %s", $username ) ); // try login name
|
891 |
if ( ! $userid ) {
|
892 |
+
$usrs = $wpdb->get_col( $wpdb->prepare( "SELECT ID
|
893 |
+
FROM $wpdb->users
|
894 |
+
WHERE user_email = %s", $useremail ) ); // try email address
|
895 |
if ( count( $usrs ) == 1 ) {
|
896 |
$userid = $usrs[0];
|
897 |
}
|
898 |
}
|
899 |
if ( ! $userid ) {
|
900 |
+
$usrs = $wpdb->get_col( $wpdb->prepare( "SELECT ID
|
901 |
+
FROM $wpdb->users
|
902 |
+
WHERE display_name = %s", $username ) ); // try display name
|
903 |
if ( count( $usrs ) == 1 ) {
|
904 |
$userid = $usrs[0];
|
905 |
}
|
909 |
}
|
910 |
// Update
|
911 |
$cid = $comment['id'];
|
912 |
+
$wpdb->query( $wpdb->prepare( "UPDATE $wpdb->wppa_comments
|
913 |
+
SET userid = %d WHERE id = %d", $userid, $cid ) );
|
914 |
}
|
915 |
break;
|
916 |
|
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.6.
|
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/
|
@@ -23,8 +23,8 @@ global $wpdb;
|
|
23 |
global $wp_version;
|
24 |
|
25 |
/* WPPA GLOBALS */
|
26 |
-
global $wppa_revno; $wppa_revno = '
|
27 |
-
global $wppa_api_version; $wppa_api_version = '7.6.
|
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.6.06.001
|
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/
|
23 |
global $wp_version;
|
24 |
|
25 |
/* WPPA GLOBALS */
|
26 |
+
global $wppa_revno; $wppa_revno = '7606'; // WPPA db version
|
27 |
+
global $wppa_api_version; $wppa_api_version = '7.6.06.001'; // WPPA software version
|
28 |
|
29 |
/* Init page js data */
|
30 |
global $wppa_js_page_data; $wppa_js_page_data = '';
|