Version Description
= 7.7.04 =
- This version addresses various minor bug fixes and feature requests.
Download this release
Release Info
Developer | opajaap |
Plugin | WP Photo Album Plus |
Version | 7.7.04.004 |
Comparing to | |
See all releases |
Code changes from version 7.7.04.002 to 7.7.04.004
- wppa-album-covers.php +5 -1
- wppa-mailing.php +4 -4
- wppa.php +2 -2
wppa-album-covers.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* Functions for album covers
|
6 |
-
* Version 7.7.04.
|
7 |
*
|
8 |
*/
|
9 |
|
@@ -1477,6 +1477,10 @@ static $cached_cover_photo_ids;
|
|
1477 |
$id = wppa_opt( 'main_photo' );
|
1478 |
}
|
1479 |
|
|
|
|
|
|
|
|
|
1480 |
|
1481 |
// main_photo is -9: Random
|
1482 |
if ( '-9' == $id ) {
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* Functions for album covers
|
6 |
+
* Version 7.7.04.004
|
7 |
*
|
8 |
*/
|
9 |
|
1477 |
$id = wppa_opt( 'main_photo' );
|
1478 |
}
|
1479 |
|
1480 |
+
// Invalid value? -> -9
|
1481 |
+
if ( $id < '0' && ! in_array( $id, array( '-9', '-1', '-2', '-3', '-4', '-5' ) ) ) {
|
1482 |
+
$id = '-9';
|
1483 |
+
}
|
1484 |
|
1485 |
// main_photo is -9: Random
|
1486 |
if ( '-9' == $id ) {
|
wppa-mailing.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
*
|
5 |
* Contains mailing functions
|
6 |
*
|
7 |
-
* Version 7.7.04.
|
8 |
*
|
9 |
*/
|
10 |
|
@@ -774,7 +774,7 @@ global $wpdb;
|
|
774 |
}
|
775 |
}
|
776 |
}
|
777 |
-
|
778 |
|
779 |
default:
|
780 |
wppa_log( 'Err', 'Unimplemented mailinglist type found: {b}' . $type . '{/b}', true );
|
@@ -880,7 +880,7 @@ function wppa_unsubscribe_link( $user_id, $listtype ) {
|
|
880 |
|
881 |
// Send a mail
|
882 |
function wppa_send_mail( $args ) {
|
883 |
-
|
884 |
$defaults = array( 'to' => '',
|
885 |
'subj' => '',
|
886 |
'cont' => '',
|
@@ -1020,7 +1020,7 @@ wppa_log('eml', 'wppa_send_mail() called with subj '.$args['subj'] );
|
|
1020 |
);
|
1021 |
if ( $iret ) {
|
1022 |
wppa_log( 'Eml',
|
1023 |
-
|
1024 |
'Mail sent to: ' . $to . ' (' . $id . ') ' .
|
1025 |
'subject: ' . $subject . ', ' .
|
1026 |
'photo: ' . ( $photo ? ( is_array( $photo ) ? serialize( $photo ) : $photo ) : 'not supplied.' ) );
|
4 |
*
|
5 |
* Contains mailing functions
|
6 |
*
|
7 |
+
* Version 7.7.04.004
|
8 |
*
|
9 |
*/
|
10 |
|
774 |
}
|
775 |
}
|
776 |
}
|
777 |
+
break;
|
778 |
|
779 |
default:
|
780 |
wppa_log( 'Err', 'Unimplemented mailinglist type found: {b}' . $type . '{/b}', true );
|
880 |
|
881 |
// Send a mail
|
882 |
function wppa_send_mail( $args ) {
|
883 |
+
|
884 |
$defaults = array( 'to' => '',
|
885 |
'subj' => '',
|
886 |
'cont' => '',
|
1020 |
);
|
1021 |
if ( $iret ) {
|
1022 |
wppa_log( 'Eml',
|
1023 |
+
'Hash: ' . wppa_get_mail_hash( $to, $subject, $message, $headers ) . ', ' .
|
1024 |
'Mail sent to: ' . $to . ' (' . $id . ') ' .
|
1025 |
'subject: ' . $subject . ', ' .
|
1026 |
'photo: ' . ( $photo ? ( is_array( $photo ) ? serialize( $photo ) : $photo ) : 'not supplied.' ) );
|
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.7.04.
|
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 = '7.7.04.
|
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: 7.7.04.004
|
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 = '7.7.04.004'; // WPPA software version
|
28 |
global $wppa_revno;
|
29 |
$wppa_revno = str_replace( '.', '', $wppa_api_version ); // WPPA db version
|
30 |
|