Version Description
= 7.6.09 =
- This version addresses various minor bug fixes.
Download this release
Release Info
Developer | opajaap |
Plugin | WP Photo Album Plus |
Version | 7.6.10.001 |
Comparing to | |
See all releases |
Code changes from version 7.6.09.001 to 7.6.10.001
- changelog.txt +5 -0
- readme.txt +1 -1
- wppa-admin-functions.php +4 -4
- wppa-album-admin-autosave.php +1 -2
- wppa-defaults.php +1 -0
- wppa-import.php +5 -5
- wppa-settings-autosave.php +11 -0
- wppa-setup.php +1 -1
- wppa-wpdb-insert.php +3 -2
- wppa.php +3 -3
changelog.txt
CHANGED
@@ -1,5 +1,10 @@
|
|
1 |
WP Photo Album Plus Changelog
|
2 |
|
|
|
|
|
|
|
|
|
|
|
3 |
= 7.6.09 =
|
4 |
|
5 |
* Childlist cache did not got updated when a new top-level album was created. Fixed.
|
1 |
WP Photo Album Plus Changelog
|
2 |
|
3 |
+
= 7.6.10 =
|
4 |
+
|
5 |
+
* Childlist cache did not got updated when a 'granted' album was created. Fixed.
|
6 |
+
* New setting: Table IX-A19: CSV file separator. You can now select ; vs , for csv import and export.
|
7 |
+
|
8 |
= 7.6.09 =
|
9 |
|
10 |
* Childlist cache did not got updated when a new top-level album was created. Fixed.
|
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 |
|
5 |
Requires at least: 3.9
|
6 |
Tested up to: 5.6
|
7 |
Requires PHP: 5.5
|
8 |
+
Stable tag: 7.6.09.001
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
wppa-admin-functions.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* gp admin functions
|
6 |
-
* Version 7.6.
|
7 |
*
|
8 |
*/
|
9 |
|
@@ -974,9 +974,9 @@ global $wpdb;
|
|
974 |
// Write the .csv header
|
975 |
if ( is_array( $fields ) ) {
|
976 |
foreach( $fields as $field ) {
|
977 |
-
$result .= $field['Field'] . '
|
978 |
}
|
979 |
-
$result = rtrim( $result, '
|
980 |
}
|
981 |
fwrite( $file, $result );
|
982 |
|
@@ -995,7 +995,7 @@ global $wpdb;
|
|
995 |
foreach( $data as $row ) {
|
996 |
|
997 |
// Write to file
|
998 |
-
fputcsv( $file, $row );
|
999 |
}
|
1000 |
}
|
1001 |
$iter++;
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* gp admin functions
|
6 |
+
* Version 7.6.10.001
|
7 |
*
|
8 |
*/
|
9 |
|
974 |
// Write the .csv header
|
975 |
if ( is_array( $fields ) ) {
|
976 |
foreach( $fields as $field ) {
|
977 |
+
$result .= $field['Field'] . wppa_opt( 'csv_sep' );
|
978 |
}
|
979 |
+
$result = rtrim( $result, wppa_opt( 'csv_sep' ) ) . "\n";
|
980 |
}
|
981 |
fwrite( $file, $result );
|
982 |
|
995 |
foreach( $data as $row ) {
|
996 |
|
997 |
// Write to file
|
998 |
+
fputcsv( $file, $row, wppa_opt( 'csv_sep' ) );
|
999 |
}
|
1000 |
}
|
1001 |
$iter++;
|
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 7.6.
|
7 |
*
|
8 |
*/
|
9 |
|
@@ -232,7 +232,6 @@ global $wppa_revno;
|
|
232 |
else {
|
233 |
wppa_set_last_album( $id );
|
234 |
wppa_invalidate_treecounts( $id );
|
235 |
-
wppa_childlist_remove( $parent );
|
236 |
wppa_index_add( 'album', $id );
|
237 |
if ( isset( $_REQUEST['is_sibling_of'] ) && is_numeric( $_REQUEST['is_sibling_of'] ) ) {
|
238 |
$sib_id = strval( intval( $_REQUEST['is_sibling_of'] ) );
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* create, edit and delete albums
|
6 |
+
* Version 7.6.10.001
|
7 |
*
|
8 |
*/
|
9 |
|
232 |
else {
|
233 |
wppa_set_last_album( $id );
|
234 |
wppa_invalidate_treecounts( $id );
|
|
|
235 |
wppa_index_add( 'album', $id );
|
236 |
if ( isset( $_REQUEST['is_sibling_of'] ) && is_numeric( $_REQUEST['is_sibling_of'] ) ) {
|
237 |
$sib_id = strval( intval( $_REQUEST['is_sibling_of'] ) );
|
wppa-defaults.php
CHANGED
@@ -1038,6 +1038,7 @@ horizrailenabled:false,";
|
|
1038 |
'wppa_load_nicescroller' => 'no',
|
1039 |
'wppa_translate' => 'no',
|
1040 |
'wppa_add_locale' => 'no',
|
|
|
1041 |
|
1042 |
// IX D New
|
1043 |
'wppa_max_album_newtime' => '0', // 1
|
1038 |
'wppa_load_nicescroller' => 'no',
|
1039 |
'wppa_translate' => 'no',
|
1040 |
'wppa_add_locale' => 'no',
|
1041 |
+
'wppa_csv_sep' => ',',
|
1042 |
|
1043 |
// IX D New
|
1044 |
'wppa_max_album_newtime' => '0', // 1
|
wppa-import.php
CHANGED
@@ -2476,7 +2476,7 @@ global $wppa_session;
|
|
2476 |
);
|
2477 |
|
2478 |
// Interprete and verify header. All fields from .csv MUST be in table fields, else fail
|
2479 |
-
$csv_fields = str_getcsv( $header );
|
2480 |
$db_fields = $wpdb->get_results( "DESCRIBE " . $is_db_table . "", ARRAY_A );
|
2481 |
|
2482 |
foreach( $csv_fields as $csv_field ) {
|
@@ -2498,14 +2498,14 @@ global $wppa_session;
|
|
2498 |
while ( ! feof( $handle ) ) {
|
2499 |
$dataline = fgets( $handle, 16*4096 );
|
2500 |
if ( $dataline ) {
|
2501 |
-
$data_arr = str_getcsv( $dataline );
|
2502 |
|
2503 |
// Embedded newlines?
|
2504 |
while ( ( count( $csv_fields ) > count( $data_arr ) ) && ! feof( $handle ) ) {
|
2505 |
|
2506 |
// Assume continue after embedded linebreak
|
2507 |
$dataline .= "\n" . fgets( $handle, 16*4096 );
|
2508 |
-
$data_arr = str_getcsv( $dataline );
|
2509 |
|
2510 |
}
|
2511 |
|
@@ -2578,7 +2578,7 @@ global $wppa_session;
|
|
2578 |
else {
|
2579 |
|
2580 |
// Interprete header
|
2581 |
-
$captions = str_getcsv( $header );
|
2582 |
if ( ! is_array( $captions ) || count( $captions ) < '2' ) {
|
2583 |
wppa_error_message( __( 'Invalid header. Can not continue.', 'wp-photo-album-plus') );
|
2584 |
fclose( $handle );
|
@@ -2645,7 +2645,7 @@ global $wppa_session;
|
|
2645 |
$dataline = fgets( $handle, 4096 );
|
2646 |
if ( $dataline ) {
|
2647 |
wppa_log( 'dbg', __( 'Read data:', 'wp-photo-album-plus') . ' ' . trim( $dataline ) );
|
2648 |
-
$data_arr = str_getcsv( $dataline );
|
2649 |
foreach( array_keys( $data_arr ) as $i ) {
|
2650 |
if ( ! seems_utf8( $data_arr[$i] ) ) {
|
2651 |
$data_arr[$i] = utf8_encode( $data_arr[$i] );
|
2476 |
);
|
2477 |
|
2478 |
// Interprete and verify header. All fields from .csv MUST be in table fields, else fail
|
2479 |
+
$csv_fields = str_getcsv( $header, wppa_opt( 'csv_sep' ) );
|
2480 |
$db_fields = $wpdb->get_results( "DESCRIBE " . $is_db_table . "", ARRAY_A );
|
2481 |
|
2482 |
foreach( $csv_fields as $csv_field ) {
|
2498 |
while ( ! feof( $handle ) ) {
|
2499 |
$dataline = fgets( $handle, 16*4096 );
|
2500 |
if ( $dataline ) {
|
2501 |
+
$data_arr = str_getcsv( $dataline, wppa_opt( 'csv_sep' ) );
|
2502 |
|
2503 |
// Embedded newlines?
|
2504 |
while ( ( count( $csv_fields ) > count( $data_arr ) ) && ! feof( $handle ) ) {
|
2505 |
|
2506 |
// Assume continue after embedded linebreak
|
2507 |
$dataline .= "\n" . fgets( $handle, 16*4096 );
|
2508 |
+
$data_arr = str_getcsv( $dataline, wppa_opt( 'csv_sep' ) );
|
2509 |
|
2510 |
}
|
2511 |
|
2578 |
else {
|
2579 |
|
2580 |
// Interprete header
|
2581 |
+
$captions = str_getcsv( $header, wppa_opt( 'csv_sep' ) );
|
2582 |
if ( ! is_array( $captions ) || count( $captions ) < '2' ) {
|
2583 |
wppa_error_message( __( 'Invalid header. Can not continue.', 'wp-photo-album-plus') );
|
2584 |
fclose( $handle );
|
2645 |
$dataline = fgets( $handle, 4096 );
|
2646 |
if ( $dataline ) {
|
2647 |
wppa_log( 'dbg', __( 'Read data:', 'wp-photo-album-plus') . ' ' . trim( $dataline ) );
|
2648 |
+
$data_arr = str_getcsv( $dataline, wppa_opt( 'csv_sep' ) );
|
2649 |
foreach( array_keys( $data_arr ) as $i ) {
|
2650 |
if ( ! seems_utf8( $data_arr[$i] ) ) {
|
2651 |
$data_arr[$i] = utf8_encode( $data_arr[$i] );
|
wppa-settings-autosave.php
CHANGED
@@ -9316,6 +9316,17 @@ global $wppa_supported_camara_brands;
|
|
9316 |
$clas = '';
|
9317 |
$tags = 'system';
|
9318 |
wppa_setting($slug, '18', $name, $desc, $html, $help, $clas, $tags);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9319 |
|
9320 |
}
|
9321 |
wppa_setting_subheader( 'B', '1', __( 'WPPA+ Admin related miscellaneous settings' , 'wp-photo-album-plus') );
|
9316 |
$clas = '';
|
9317 |
$tags = 'system';
|
9318 |
wppa_setting($slug, '18', $name, $desc, $html, $help, $clas, $tags);
|
9319 |
+
|
9320 |
+
$name = __('CSV file separator', 'wp-photo-album-plus');
|
9321 |
+
$desc = __('Select the separator to be used for csv file data', 'wp-photo-album-plus');
|
9322 |
+
$help = __('This separator is used both during import and export', 'wp-photo-album-plus');
|
9323 |
+
$slug = 'wppa_csv_sep';
|
9324 |
+
$opts = array( 'comma (,)', 'semicolon (;)' );
|
9325 |
+
$vals = array( ',', ';' );
|
9326 |
+
$html = wppa_select($slug, $opts, $vals);
|
9327 |
+
$clas = '';
|
9328 |
+
$tags = 'system';
|
9329 |
+
wppa_setting($slug, '19', $name, $desc, $html, $help, $clas, $tags);
|
9330 |
|
9331 |
}
|
9332 |
wppa_setting_subheader( 'B', '1', __( 'WPPA+ Admin related miscellaneous settings' , 'wp-photo-album-plus') );
|
wppa-setup.php
CHANGED
@@ -643,7 +643,7 @@ global $wppa_error;
|
|
643 |
}
|
644 |
}
|
645 |
|
646 |
-
if ( $old_rev <= '
|
647 |
delete_option( 'wppa_child_list' );
|
648 |
}
|
649 |
}
|
643 |
}
|
644 |
}
|
645 |
|
646 |
+
if ( $old_rev <= '7610' ) {
|
647 |
delete_option( 'wppa_child_list' );
|
648 |
}
|
649 |
}
|
wppa-wpdb-insert.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* Contains low-level wpdb routines that add new records
|
6 |
-
* Version 7.6.
|
7 |
*
|
8 |
*/
|
9 |
|
@@ -534,9 +534,10 @@ global $wpdb;
|
|
534 |
$iret = $wpdb->query( $query );
|
535 |
|
536 |
if ( $iret ) {
|
537 |
-
wppa_invalidate_treecounts( $args['id'] );
|
538 |
|
539 |
// Housekeeping
|
|
|
|
|
540 |
wppa_schedule_maintenance_proc( 'wppa_remake_index_albums' );
|
541 |
wppa_clear_cache();
|
542 |
wppa_schedule_mailinglist( 'newalbumnotify', $args['id'] );
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* Contains low-level wpdb routines that add new records
|
6 |
+
* Version 7.6.10.001
|
7 |
*
|
8 |
*/
|
9 |
|
534 |
$iret = $wpdb->query( $query );
|
535 |
|
536 |
if ( $iret ) {
|
|
|
537 |
|
538 |
// Housekeeping
|
539 |
+
wppa_invalidate_treecounts( $args['id'] );
|
540 |
+
wppa_childlist_remove( $args['a_parent'] );
|
541 |
wppa_schedule_maintenance_proc( 'wppa_remake_index_albums' );
|
542 |
wppa_clear_cache();
|
543 |
wppa_schedule_mailinglist( 'newalbumnotify', $args['id'] );
|
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.10.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 = '7610'; // WPPA db version
|
27 |
+
global $wppa_api_version; $wppa_api_version = '7.6.10.001'; // WPPA software version
|
28 |
|
29 |
/* Init page js data */
|
30 |
global $wppa_js_page_data; $wppa_js_page_data = '';
|