Version Description
= 7.1.03 =
- This version addresses various security issues.
- This version addresses various bug fixes.
= 7.1.02 =
- This version addresses various security issues.
- This version addresses various bug fixes and feature requests.
= 7.1.01 =
- This version addresses various bug fixes and feature requests.
= 7.1.00 =
- This version addresses various bug fixes and feature requests.
- The Photo Album -> Upload Photos and Import Photos admin pages have been substantially improved. Read the changelog for details.
= 7.0.11 =
- This version addresses various bug fixes and feature requests.
= 7.0.11 =
- This version addresses various bug fixes
= 7.0.10 =
- This version addresses various bug fixes
= 7.0.09 =
- This version addresses various security issues.
- This version addresses various bug fixes and feature requests.
= 7.0.08 =
- This version addresses various security issues.
- This version addresses various bug fixes
= 7.0.07 =
- This version addresses various security issues.
- This version addresses various bug fixes
= 7.0.06 =
- This version addresses various bug fixes
- This version addresses various security issues.
= 7.0.05 =
- This version addresses various minor bug fixes and feature requests.
- This version addresses various security issues.
= 7.0.04 =
- This version addresses various bug fixes
- This version addresses various security issues.
= 7.0.03 =
- This version addresses various minor bug fixes and feature requests.
= 7.0.02 =
- This version addresses various bug fixes
- This version addresses various security issues.
= 7.0.01 =
- This version addresses various minor bug fixes and feature requests.
= 7.0.00 =
- Shortcode generators for Gutenberg added.
- This version addresses various minor bug fixes and feature requests.
- This version addresses various security issues.
- To prevent spamming and give the users the opportunity to decide when they want us to email them, the mailing system has been revised. Configure Table IX-M to enable various mailing lists, and use the WPPA+ Notify widget for full user flexibility.
= 6.9.21 =
- This version addresses various bug fixes
- This version addresses various security issues.
= 6.9.20 =
- This version addresses various bug fixes
= 6.9.19 =
- This version addresses various minor bug fixes
= 6.9.18 =
- This version addresses various minor bug fixes
= 6.9.17 =
- This version addresses various minor bug fixes and feature requests.
- This version addresses various security issues.
= 6.9.16 =
- This version addresses various minor bug fixes and feature requests.
- This version addresses various security issues.
= 6.9.15 =
- This version addresses various minor bug fixes and feature requests.
- This version addresses various security issues.
= 6.9.14 =
- This version addresses various minor bug fixes and feature requests.
- This version addresses various security issues.
= 6.9.13 =
- Security release.
= 6.9.12 =
- This version addresses various minor bug fixes and performance improvements.
= 6.9.11 =
- This version addresses various minor bug fixes and performance improvements.
= 6.9.10 =
- This version addresses various minor bug fixes and performance improvements.
= 6.9.09 =
- Panorama support phase III.
= 6.9.08 =
- This version addresses various minor bug fixes and feature requests.
- Panorama support phase II.
= 6.9.07 =
- This version addresses various minor bug fixes and feature requests.
- Panorama support phase I.
= 6.9.06 =
- This version addresses various minor bug fixes and feature requests.
= 6.9.05 =
- This version addresses various minor bug fixes and feature requests.
= 6.9.04 =
- This version addresses various minor bug fixes and feature requests.
- Local CDN functionality has been added.
= 6.9.03 =
- This version addresses various minor bug fixes and feature requests.
= 6.9.02 =
- This version addresses various minor bug fixes and feature requests.
= 6.9.01 =
- This version addresses various minor bug fixes and feature requests.
= 6.9.00 =
- This version includes the code for the privacy policy requirements.
= 6.8.09
- This version addresses various bug fixes and code edits.
= 6.8.08 =
- This version addresses various minor bug fixes and feature requests.
- This version offers substantial performance improvements when the box in Table IV-A13: Defer Javascript is ticked. This setting is now recommended and set ticked as the default.
- For more info on performance improvements and compatibility with optimizers: see the changelog.txt
= 6.8.07 =
- This version addresses various minor bug fixes and enhancements, and a new widget: Statistics.
= 6.8.06 =
- This version addresses various minor bug fixes and improved cache handling.
= 6.8.05 =
- This version addresses various minor bug fixes and feture requests.
= 6.8.04 =
- This version addresses various display issues and a few fixes of bugs that seldom affected the plugins behaviour.
Download this release
Release Info
Developer | opajaap |
Plugin | WP Photo Album Plus |
Version | 7.1.03.002 |
Comparing to | |
See all releases |
Code changes from version 7.1.03.001 to 7.1.03.002
- changelog.txt +4 -1
- wppa-ajax.php +2 -1
- wppa-import.php +3 -1
- wppa-maintenance.php +6 -0
- wppa-utils.php +18 -2
- wppa-wrappers.php +3 -3
- wppa.php +2 -2
changelog.txt
CHANGED
@@ -3,7 +3,10 @@ WP Photo Album Plus Changelog
|
|
3 |
= 7.1.03 =
|
4 |
|
5 |
* Fixed layout of popup windows of Table VIII-C.
|
6 |
-
*
|
|
|
|
|
|
|
7 |
|
8 |
= 7.1.02 =
|
9 |
|
3 |
= 7.1.03 =
|
4 |
|
5 |
* Fixed layout of popup windows of Table VIII-C.
|
6 |
+
* Popup windows of Table VIII-C now use nicescroller.
|
7 |
+
* Version is now bumped for photo and thumbnail files after updating pdf poster image.
|
8 |
+
* Built-in protection against recursive error logging.
|
9 |
+
* Attempt to log recursive is detected and shown at the top of the log in Table VIII-A1 and on the adminbar menu loglist.
|
10 |
|
11 |
= 7.1.02 =
|
12 |
|
wppa-ajax.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
/* wppa-ajax.php
|
3 |
*
|
4 |
* Functions used in ajax requests
|
5 |
-
* Version 7.1.
|
6 |
*
|
7 |
*/
|
8 |
|
@@ -3334,6 +3334,7 @@ global $wppa_log_file;
|
|
3334 |
if ( wppa_is_file( $wppa_log_file ) ) {
|
3335 |
wppa_unlink( $wppa_log_file );
|
3336 |
}
|
|
|
3337 |
break;
|
3338 |
|
3339 |
case 'wppa_pl_dirname':
|
2 |
/* wppa-ajax.php
|
3 |
*
|
4 |
* Functions used in ajax requests
|
5 |
+
* Version 7.1.03
|
6 |
*
|
7 |
*/
|
8 |
|
3334 |
if ( wppa_is_file( $wppa_log_file ) ) {
|
3335 |
wppa_unlink( $wppa_log_file );
|
3336 |
}
|
3337 |
+
delete_option( 'wppa_recursive_log' );
|
3338 |
break;
|
3339 |
|
3340 |
case 'wppa_pl_dirname':
|
wppa-import.php
CHANGED
@@ -2019,6 +2019,8 @@ global $wppa_supported_document_extensions;
|
|
2019 |
|
2020 |
wppa_save_source( $file, basename( $file ), $alb );
|
2021 |
wppa_make_o1_source( $is_poster );
|
|
|
|
|
2022 |
|
2023 |
// Make new files
|
2024 |
$bret = wppa_make_the_photo_files( $file, $is_poster, strtolower( wppa_get_ext( basename( $file ) ) ) );
|
@@ -2929,7 +2931,7 @@ function wppa_get_meta_data( $file, $item, $opt ) {
|
|
2929 |
if ( $opt == '{' ) $opt2 = '}';
|
2930 |
if ( $opt == '[' ) $opt2 = ']';
|
2931 |
if ( wppa_is_file( $file ) ) {
|
2932 |
-
|
2933 |
$buffers = wppa_get_contents_array( $file );
|
2934 |
if ( $buffers ) {
|
2935 |
foreach ( $buffers as $buffer ) {
|
2019 |
|
2020 |
wppa_save_source( $file, basename( $file ), $alb );
|
2021 |
wppa_make_o1_source( $is_poster );
|
2022 |
+
wppa_bump_photo_rev();
|
2023 |
+
wppa_bump_thumb_rev();
|
2024 |
|
2025 |
// Make new files
|
2026 |
$bret = wppa_make_the_photo_files( $file, $is_poster, strtolower( wppa_get_ext( basename( $file ) ) ) );
|
2931 |
if ( $opt == '{' ) $opt2 = '}';
|
2932 |
if ( $opt == '[' ) $opt2 = ']';
|
2933 |
if ( wppa_is_file( $file ) ) {
|
2934 |
+
|
2935 |
$buffers = wppa_get_contents_array( $file );
|
2936 |
if ( $buffers ) {
|
2937 |
foreach ( $buffers as $buffer ) {
|
wppa-maintenance.php
CHANGED
@@ -1229,6 +1229,12 @@ global $wppa_log_file;
|
|
1229 |
style="float:left;clear:both;width:100%;overflow:auto;margin-left:-1px;"
|
1230 |
>';
|
1231 |
|
|
|
|
|
|
|
|
|
|
|
|
|
1232 |
if ( ! wppa_is_file( $wppa_log_file ) ) {
|
1233 |
$result .= __( 'There are no log messages', 'wp-photo-album-plus' );
|
1234 |
}
|
1229 |
style="float:left;clear:both;width:100%;overflow:auto;margin-left:-1px;"
|
1230 |
>';
|
1231 |
|
1232 |
+
$rec = get_option( 'wppa_recursive_log', '' );
|
1233 |
+
if ( $rec ) {
|
1234 |
+
$result .= __( 'Recursive log detected', 'wp-photo-album-plus' ) . ': ' .
|
1235 |
+
$rec . '<br /><br />';
|
1236 |
+
}
|
1237 |
+
|
1238 |
if ( ! wppa_is_file( $wppa_log_file ) ) {
|
1239 |
$result .= __( 'There are no log messages', 'wp-photo-album-plus' );
|
1240 |
}
|
wppa-utils.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* Contains low-level utility routines
|
6 |
-
* Version 7.1.
|
7 |
*
|
8 |
*/
|
9 |
|
@@ -1496,6 +1496,7 @@ function wppa_is_enum( $var ) {
|
|
1496 |
function wppa_log( $xtype, $msg, $trace = false, $listuri = false ) {
|
1497 |
global $wppa_session;
|
1498 |
global $wppa_log_file;
|
|
|
1499 |
|
1500 |
// Do not log during plugin activation or update
|
1501 |
if ( strpos( $_SERVER['REQUEST_URI'], '/wp-admin/plugins.php' ) !== false ) {
|
@@ -1505,6 +1506,14 @@ global $wppa_log_file;
|
|
1505 |
return;
|
1506 |
}
|
1507 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1508 |
// Sanitize type
|
1509 |
$t = strtolower( substr( $xtype, 0, 1 ) );
|
1510 |
$u = strtolower( substr( $xtype, 1, 1 ) );
|
@@ -1516,12 +1525,14 @@ global $wppa_log_file;
|
|
1516 |
switch ( $u ) {
|
1517 |
case 'r':
|
1518 |
if ( get_option( 'wppa_log_cron' ) == 'no' ) {
|
|
|
1519 |
return;
|
1520 |
}
|
1521 |
$type = '{span style="color:blue;" }Cron{/span}';
|
1522 |
break;
|
1523 |
case 'o':
|
1524 |
if ( get_option( 'wppa_log_comments' ) == 'no' ) {
|
|
|
1525 |
return;
|
1526 |
}
|
1527 |
$type = '{span style="color:cyan;" }Com{/span}';
|
@@ -1530,6 +1541,7 @@ global $wppa_log_file;
|
|
1530 |
break;
|
1531 |
case 'd':
|
1532 |
if ( get_option( 'wppa_log_debug' ) == 'no' ) {
|
|
|
1533 |
return;
|
1534 |
}
|
1535 |
$type = '{span style="color:gray;" }Dbg{/span}';
|
@@ -1541,6 +1553,7 @@ global $wppa_log_file;
|
|
1541 |
break;
|
1542 |
case 'm':
|
1543 |
if ( get_option( 'wppa_log_email' ) == 'no' ) {
|
|
|
1544 |
return;
|
1545 |
}
|
1546 |
$type = '{span style="color:blue;" }Eml{/span}';
|
@@ -1551,6 +1564,7 @@ global $wppa_log_file;
|
|
1551 |
switch ( $u ) {
|
1552 |
case 's':
|
1553 |
if ( get_option( 'wppa_log_fso' ) == 'no' ) {
|
|
|
1554 |
return;
|
1555 |
}
|
1556 |
$type = '{span style="color:blue;" }Fso{/span}';
|
@@ -1576,6 +1590,7 @@ global $wppa_log_file;
|
|
1576 |
// Log debug messages only if WP_DEBUG is defined as true
|
1577 |
if ( $type == 'Dbg' ) {
|
1578 |
if ( ! defined( 'WP_DEBUG' ) || ! WP_DEBUG ) {
|
|
|
1579 |
return;
|
1580 |
}
|
1581 |
}
|
@@ -1583,7 +1598,7 @@ global $wppa_log_file;
|
|
1583 |
// Get existing log if it exists
|
1584 |
if ( wppa_is_file( $wppa_log_file, false ) ) {
|
1585 |
|
1586 |
-
$contents = wppa_get_contents_array( $wppa_log_file, false );
|
1587 |
|
1588 |
if ( is_array( $contents ) ) {
|
1589 |
|
@@ -1637,6 +1652,7 @@ global $wppa_log_file;
|
|
1637 |
|
1638 |
// Done
|
1639 |
wppa_put_contents( $wppa_log_file, implode( '', $contents ), false );
|
|
|
1640 |
}
|
1641 |
|
1642 |
function wppa_is_landscape($img_attr) {
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* Contains low-level utility routines
|
6 |
+
* Version 7.1.03
|
7 |
*
|
8 |
*/
|
9 |
|
1496 |
function wppa_log( $xtype, $msg, $trace = false, $listuri = false ) {
|
1497 |
global $wppa_session;
|
1498 |
global $wppa_log_file;
|
1499 |
+
static $busy;
|
1500 |
|
1501 |
// Do not log during plugin activation or update
|
1502 |
if ( strpos( $_SERVER['REQUEST_URI'], '/wp-admin/plugins.php' ) !== false ) {
|
1506 |
return;
|
1507 |
}
|
1508 |
|
1509 |
+
// Test for recursive logging
|
1510 |
+
if ( $busy ) {
|
1511 |
+
update_option( 'wppa_recursive_log', $xtype . ' ' . $msg );
|
1512 |
+
$busy = false;
|
1513 |
+
return;
|
1514 |
+
}
|
1515 |
+
$busy = true;
|
1516 |
+
|
1517 |
// Sanitize type
|
1518 |
$t = strtolower( substr( $xtype, 0, 1 ) );
|
1519 |
$u = strtolower( substr( $xtype, 1, 1 ) );
|
1525 |
switch ( $u ) {
|
1526 |
case 'r':
|
1527 |
if ( get_option( 'wppa_log_cron' ) == 'no' ) {
|
1528 |
+
$busy = false;
|
1529 |
return;
|
1530 |
}
|
1531 |
$type = '{span style="color:blue;" }Cron{/span}';
|
1532 |
break;
|
1533 |
case 'o':
|
1534 |
if ( get_option( 'wppa_log_comments' ) == 'no' ) {
|
1535 |
+
$busy = false;
|
1536 |
return;
|
1537 |
}
|
1538 |
$type = '{span style="color:cyan;" }Com{/span}';
|
1541 |
break;
|
1542 |
case 'd':
|
1543 |
if ( get_option( 'wppa_log_debug' ) == 'no' ) {
|
1544 |
+
$busy = false;
|
1545 |
return;
|
1546 |
}
|
1547 |
$type = '{span style="color:gray;" }Dbg{/span}';
|
1553 |
break;
|
1554 |
case 'm':
|
1555 |
if ( get_option( 'wppa_log_email' ) == 'no' ) {
|
1556 |
+
$busy = false;
|
1557 |
return;
|
1558 |
}
|
1559 |
$type = '{span style="color:blue;" }Eml{/span}';
|
1564 |
switch ( $u ) {
|
1565 |
case 's':
|
1566 |
if ( get_option( 'wppa_log_fso' ) == 'no' ) {
|
1567 |
+
$busy = false;
|
1568 |
return;
|
1569 |
}
|
1570 |
$type = '{span style="color:blue;" }Fso{/span}';
|
1590 |
// Log debug messages only if WP_DEBUG is defined as true
|
1591 |
if ( $type == 'Dbg' ) {
|
1592 |
if ( ! defined( 'WP_DEBUG' ) || ! WP_DEBUG ) {
|
1593 |
+
$busy = false;
|
1594 |
return;
|
1595 |
}
|
1596 |
}
|
1598 |
// Get existing log if it exists
|
1599 |
if ( wppa_is_file( $wppa_log_file, false ) ) {
|
1600 |
|
1601 |
+
$contents = wppa_get_contents_array( $wppa_log_file, false ); // Do not log error on read
|
1602 |
|
1603 |
if ( is_array( $contents ) ) {
|
1604 |
|
1652 |
|
1653 |
// Done
|
1654 |
wppa_put_contents( $wppa_log_file, implode( '', $contents ), false );
|
1655 |
+
$busy = false;
|
1656 |
}
|
1657 |
|
1658 |
function wppa_is_landscape($img_attr) {
|
wppa-wrappers.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* Contains wrappers for standard php functions
|
6 |
* For security and bug reasons
|
7 |
*
|
8 |
-
* Version 7.1.
|
9 |
*
|
10 |
*/
|
11 |
|
@@ -422,11 +422,11 @@ global $wp_filesystem;
|
|
422 |
}
|
423 |
|
424 |
// Wrapper for is_file
|
425 |
-
function wppa_is_file( $path ) {
|
426 |
global $wp_filesystem;
|
427 |
|
428 |
if ( ! wppa_is_path_safe( $path ) ) {
|
429 |
-
wppa_log( 'Err', 'Unsafe path detected in wppa_is_file(): ' . sanitize_text_field( $path ), true );
|
430 |
return false;
|
431 |
}
|
432 |
|
5 |
* Contains wrappers for standard php functions
|
6 |
* For security and bug reasons
|
7 |
*
|
8 |
+
* Version 7.1.03
|
9 |
*
|
10 |
*/
|
11 |
|
422 |
}
|
423 |
|
424 |
// Wrapper for is_file
|
425 |
+
function wppa_is_file( $path, $log = true ) {
|
426 |
global $wp_filesystem;
|
427 |
|
428 |
if ( ! wppa_is_path_safe( $path ) ) {
|
429 |
+
if ( $log ) wppa_log( 'Err', 'Unsafe path detected in wppa_is_file(): ' . sanitize_text_field( $path ), true );
|
430 |
return false;
|
431 |
}
|
432 |
|
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.1.03.
|
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,7 +23,7 @@ global $wp_version;
|
|
23 |
|
24 |
/* WPPA GLOBALS */
|
25 |
global $wppa_revno; $wppa_revno = '7102'; // WPPA db version
|
26 |
-
global $wppa_api_version; $wppa_api_version = '7.1.03.
|
27 |
|
28 |
/* start timers */
|
29 |
add_action( 'plugins_loaded', 'wppa_init_timer' );
|
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.1.03.002
|
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 |
|
24 |
/* WPPA GLOBALS */
|
25 |
global $wppa_revno; $wppa_revno = '7102'; // WPPA db version
|
26 |
+
global $wppa_api_version; $wppa_api_version = '7.1.03.002'; // WPPA software version
|
27 |
|
28 |
/* start timers */
|
29 |
add_action( 'plugins_loaded', 'wppa_init_timer' );
|