WP Photo Album Plus - Version 7.1.10.005

Version Description

= 7.1.10 =

  • This version addresses various bug fixes and feature requests.

= 7.1.09 =

  • This version addresses various bug fixes and feature requests.

= 7.1.08 =

  • This version addresses various bug fixes and feature requests.

= 7.1.07 =

  • This version addresses various bug fixes and feature requests.

= 7.1.06 =

  • This version addresses various bug fixes and feature requests.

= 7.1.05 =

  • This version addresses various security issues.
  • This version addresses various bug fixes.

= 7.1.04 =

  • This version addresses various bug fixes.

= 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 Icon wp plugin WP Photo Album Plus
Version 7.1.10.005
Comparing to
See all releases

Code changes from version 7.1.10.004 to 7.1.10.005

Files changed (4) hide show
  1. changelog.txt +1 -0
  2. wppa-admin-functions.php +4 -0
  3. wppa-topten-widget.php +32 -66
  4. wppa.php +2 -2
changelog.txt CHANGED
@@ -6,6 +6,7 @@ WP Photo Album Plus Changelog
6
  * Added a selection option to the photo of the day subtitle. Displays photo and album names and descriptions.
7
  * Added 'non-zero only' checkbox in Table I-F1, to select only rated/viewed photos in the topten selection.
8
  * Fixed a possible sql error in the topten widget.
 
9
 
10
  = 7.1.09 =
11
 
6
  * Added a selection option to the photo of the day subtitle. Displays photo and album names and descriptions.
7
  * Added 'non-zero only' checkbox in Table I-F1, to select only rated/viewed photos in the topten selection.
8
  * Fixed a possible sql error in the topten widget.
9
+ * Fixed a problem when importing remote .png images.
10
 
11
  = 7.1.09 =
12
 
wppa-admin-functions.php CHANGED
@@ -746,6 +746,10 @@ global $warning_given_small;
746
  }
747
  return false;
748
  }
 
 
 
 
749
  }
750
 
751
  // Get and verify the size
746
  }
747
  return false;
748
  }
749
+ else { // Is a photo. Maybe found a different ext.
750
+ $filename = wppa_strip_ext( $filename ) . '.' . wppa_get_ext( $file );
751
+ $name = wppa_strip_ext( $name ) . '.' . wppa_get_ext( $file );
752
+ }
753
  }
754
 
755
  // Get and verify the size
wppa-topten-widget.php CHANGED
@@ -8,14 +8,31 @@
8
 
9
  class TopTenWidget extends WP_Widget {
10
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
11
  /** constructor */
12
  function __construct() {
13
  $widget_ops = array( 'classname' => 'wppa_topten_widget', 'description' => __( 'Display top rated photos', 'wp-photo-album-plus' ) );
14
  parent::__construct( 'wppa_topten_widget', __( 'WPPA+ Top Ten Photos', 'wp-photo-album-plus' ), $widget_ops );
 
15
  }
16
 
17
  /** @see WP_Widget::widget */
18
- function widget($args, $instance) {
19
  global $wpdb;
20
 
21
  wppa_initialize_runtime();
@@ -25,21 +42,7 @@ class TopTenWidget extends WP_Widget {
25
 
26
  extract( $args );
27
 
28
- $instance = wp_parse_args( (array) $instance, array(
29
- 'title' => __( 'Top Ten Photos', 'wp-photo-album-plus' ),
30
- 'sortby' => 'mean_rating',
31
- 'title' => '',
32
- 'album' => '',
33
- 'display' => 'thumbs',
34
- 'meanrat' => 'yes',
35
- 'ratcount' => 'yes',
36
- 'viewcount' => 'yes',
37
- 'includesubs' => 'yes',
38
- 'medalsonly' => 'no',
39
- 'showowner' => 'no',
40
- 'showalbum' => 'no',
41
- 'logonly' => 'no',
42
- ) );
43
 
44
  // Logged in only and logged out?
45
  if ( wppa_checked( $instance['logonly'] ) && ! is_user_logged_in() ) {
@@ -259,7 +262,7 @@ class TopTenWidget extends WP_Widget {
259
  break;
260
 
261
  }
262
- wppa_log('dbg', $query);
263
  $thumbs = $wpdb->get_results( $wpdb->prepare( $query, $max ), ARRAY_A );
264
  }
265
  }
@@ -424,60 +427,23 @@ wppa_log('dbg', $query);
424
  }
425
 
426
  /** @see WP_Widget::update */
427
- function update($new_instance, $old_instance) {
428
- $instance = $old_instance;
429
-
430
- // Defaults
431
- $instance = wp_parse_args( (array) $instance, array(
432
- 'sortby' => 'mean_rating',
433
- 'title' => __( 'Top Ten Photos', 'wp-photo-album-plus' ),
434
- 'album' => '0',
435
- 'display' => 'thumbs',
436
- 'meanrat' => 'yes',
437
- 'ratcount' => 'yes',
438
- 'viewcount' => 'yes',
439
- 'includesubs' => 'yes',
440
- 'medalsonly' => 'no',
441
- 'showowner' => 'no',
442
- 'showalbum' => 'no',
443
- 'logonly' => 'no',
444
- ) );
445
-
446
- $instance['title'] = strip_tags( $new_instance['title'] );
447
- $instance['album'] = strval( intval( $new_instance['album'] ) );
448
- $instance['sortby'] = $new_instance['sortby'];
449
- $instance['display'] = $new_instance['display'];
450
- $instance['meanrat'] = $new_instance['meanrat'];
451
- $instance['ratcount'] = $new_instance['ratcount'];
452
- $instance['viewcount'] = $new_instance['viewcount'];
453
- $instance['includesubs'] = $new_instance['includesubs'];
454
- $instance['medalsonly'] = $new_instance['medalsonly'];
455
- $instance['showalbum'] = $new_instance['showalbum'];
456
- $instance['showowner'] = $new_instance['showowner'];
457
- $instance['logonly'] = $new_instance['logonly'];
458
-
459
- return $instance;
460
  }
461
 
462
  /** @see WP_Widget::form */
463
  function form( $instance ) {
464
 
465
- // Defaults
466
- $instance = wp_parse_args( (array) $instance, array(
467
- 'sortby' => 'mean_rating',
468
- 'title' => __( 'Top Ten Photos', 'wp-photo-album-plus' ),
469
- 'album' => '0',
470
- 'display' => 'thumbs',
471
- 'meanrat' => 'yes',
472
- 'ratcount' => 'yes',
473
- 'viewcount' => 'yes',
474
- 'includesubs' => 'yes',
475
- 'medalsonly' => 'no',
476
- 'showowner' => 'no',
477
- 'showalbum' => 'no',
478
- 'logonly' => 'no',
479
-
480
- ) );
481
 
482
  // Title
483
  echo
8
 
9
  class TopTenWidget extends WP_Widget {
10
 
11
+ // Defaults
12
+ var $defaults = array(
13
+ 'sortby' => 'mean_rating',
14
+ 'title' => '',
15
+ 'album' => '0',
16
+ 'display' => 'thumbs',
17
+ 'meanrat' => 'yes',
18
+ 'ratcount' => 'yes',
19
+ 'viewcount' => 'yes',
20
+ 'includesubs' => 'yes',
21
+ 'medalsonly' => 'no',
22
+ 'showowner' => 'no',
23
+ 'showalbum' => 'no',
24
+ 'logonly' => 'no',
25
+ );
26
+
27
  /** constructor */
28
  function __construct() {
29
  $widget_ops = array( 'classname' => 'wppa_topten_widget', 'description' => __( 'Display top rated photos', 'wp-photo-album-plus' ) );
30
  parent::__construct( 'wppa_topten_widget', __( 'WPPA+ Top Ten Photos', 'wp-photo-album-plus' ), $widget_ops );
31
+ $this->defaults['title'] = __( 'Top Ten Photos', 'wp-photo-album-plus' );
32
  }
33
 
34
  /** @see WP_Widget::widget */
35
+ function widget( $args, $instance ) {
36
  global $wpdb;
37
 
38
  wppa_initialize_runtime();
42
 
43
  extract( $args );
44
 
45
+ $instance = wp_parse_args( (array) $instance, $this->defaults );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
46
 
47
  // Logged in only and logged out?
48
  if ( wppa_checked( $instance['logonly'] ) && ! is_user_logged_in() ) {
262
  break;
263
 
264
  }
265
+
266
  $thumbs = $wpdb->get_results( $wpdb->prepare( $query, $max ), ARRAY_A );
267
  }
268
  }
427
  }
428
 
429
  /** @see WP_Widget::update */
430
+ function update( $new_instance, $old_instance ) {
431
+
432
+ // Add possible missing defaults to new instance
433
+ $new_instance = wp_parse_args( (array) $new_instance, $thia->defaults );
434
+
435
+ // Sanitize input
436
+ $new_instance['title'] = strip_tags( $new_instance['title'] );
437
+ $new_instance['album'] = strval( intval( $new_instance['album'] ) );
438
+
439
+ return $new_instance;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
440
  }
441
 
442
  /** @see WP_Widget::form */
443
  function form( $instance ) {
444
 
445
+ // Add missing defaults
446
+ $instance = wp_parse_args( (array) $instance, $this->defaults );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
447
 
448
  // Title
449
  echo
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.10.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/
@@ -23,7 +23,7 @@ global $wp_version;
23
 
24
  /* WPPA GLOBALS */
25
  global $wppa_revno; $wppa_revno = '7110'; // WPPA db version
26
- global $wppa_api_version; $wppa_api_version = '7.1.10.004'; // WPPA software version
27
 
28
  /* Init page js data */
29
  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.1.10.005
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 = '7110'; // WPPA db version
26
+ global $wppa_api_version; $wppa_api_version = '7.1.10.005'; // WPPA software version
27
 
28
  /* Init page js data */
29
  global $wppa_js_page_data; $wppa_js_page_data = '';