WP Photo Album Plus - Version 7.0.08.008

Version Description

= 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.0.08.008
Comparing to
See all releases

Code changes from version 7.0.08.006 to 7.0.08.008

Files changed (4) hide show
  1. changelog.txt +3 -1
  2. wppa-setup.php +5 -5
  3. wppa-wrappers.php +14 -32
  4. wppa.php +3 -3
changelog.txt CHANGED
@@ -3,10 +3,12 @@ WP Photo Album Plus Changelog
3
  = 7.0.08 =
4
 
5
  * Added dashboard widget for (un)subscribing to/from mailinglists.
6
- * Reamke failed on .pdf's. Fixed.
7
  * Links defined on the photo of the day admin page did not work. Fixed.
8
  * Available tags were not updated when a photo was deleted. Fixed.
9
  * Auto updates could fail due to improper initialisation of wp filesystem. Fixed.
 
 
10
 
11
  = 7.0.07 =
12
 
3
  = 7.0.08 =
4
 
5
  * Added dashboard widget for (un)subscribing to/from mailinglists.
6
+ * Remake failed on .pdf's. Fixed.
7
  * Links defined on the photo of the day admin page did not work. Fixed.
8
  * Available tags were not updated when a photo was deleted. Fixed.
9
  * Auto updates could fail due to improper initialisation of wp filesystem. Fixed.
10
+ * On certain systems uploads were no longer possible due to improper initialisation of wp filesystem. Fixed.
11
+ * Copy/move photos generated a comm error. Fixed.
12
 
13
  = 7.0.07 =
14
 
wppa-setup.php CHANGED
@@ -12,11 +12,11 @@ if ( ! defined( 'ABSPATH' ) ) die( "Can't load this file directly" );
12
  /* SETUP */
13
  // It used to be: register_activation_hook(WPPA_FILE, 'wppa_setup');
14
  // The activation hook is useless since wp does no longer call this hook after upgrade of the plugin
15
- // this routine is now called at action admin_init, so also after initial install
16
  // Additionally it can now output messages about success or failure
17
  // Just for people that rely on the healing effect of de-activating and re-activating a plugin
18
  // we still do a setup on activation by faking that we are not up to rev, and so invoking
19
- // the setup on the first admin_init event. This has the advantage that we can display messages
20
  // instead of characters of unexpected output.
21
  // register_activation_hook(WPPA_FILE, 'wppa_activate_plugin'); is in wppa.php
22
  function wppa_activate_plugin() {
@@ -27,18 +27,18 @@ function wppa_activate_plugin() {
27
 
28
  // Set force to true to re-run it even when on rev (happens in wppa-settings.php)
29
  // Force will NOT redefine constants
30
- function wppa_setup($force = false) {
31
  global $silent;
32
  global $wpdb;
33
  global $wppa_revno;
34
  global $current_user;
35
  global $wppa_error;
36
 
37
- $old_rev = get_option('wppa_revision', '100');
38
 
39
  if ( $old_rev == $wppa_revno && ! $force ) return; // Nothing to do here
40
 
41
- wppa_clear_cache($force);
42
 
43
  $wppa_error = false; // Init no error
44
 
12
  /* SETUP */
13
  // It used to be: register_activation_hook(WPPA_FILE, 'wppa_setup');
14
  // The activation hook is useless since wp does no longer call this hook after upgrade of the plugin
15
+ // this routine is now called at action init, so also after initial install
16
  // Additionally it can now output messages about success or failure
17
  // Just for people that rely on the healing effect of de-activating and re-activating a plugin
18
  // we still do a setup on activation by faking that we are not up to rev, and so invoking
19
+ // the setup on the first init event. This has the advantage that we can display messages
20
  // instead of characters of unexpected output.
21
  // register_activation_hook(WPPA_FILE, 'wppa_activate_plugin'); is in wppa.php
22
  function wppa_activate_plugin() {
27
 
28
  // Set force to true to re-run it even when on rev (happens in wppa-settings.php)
29
  // Force will NOT redefine constants
30
+ function wppa_setup( $force = false ) {
31
  global $silent;
32
  global $wpdb;
33
  global $wppa_revno;
34
  global $current_user;
35
  global $wppa_error;
36
 
37
+ $old_rev = get_option( 'wppa_revision', '100' );
38
 
39
  if ( $old_rev == $wppa_revno && ! $force ) return; // Nothing to do here
40
 
41
+ wppa_clear_cache( $force );
42
 
43
  $wppa_error = false; // Init no error
44
 
wppa-wrappers.php CHANGED
@@ -10,45 +10,27 @@
10
  */
11
 
12
  require_once ABSPATH . 'wp-admin/includes/file.php';
13
-
14
- // add_action( 'admin_init', 'wppa_init_fs' );
15
 
16
  function wppa_init_fs() {
17
  global $wp_filesystem;
18
 
19
  if ( empty( $wp_filesystem ) ) {
20
 
21
- // $access_type = get_filesystem_method();
22
- // wppa_log( 'fso', $access_type );
23
- // if ( $access_type === 'direct' ) {
24
-
25
- /* you can safely run request_filesystem_credentials() without any issues and don't need to worry about passing in a URL */
26
- $creds = request_filesystem_credentials(
27
- site_url() . '/wp-admin/',
28
- 'direct', // Force direct
29
- false, // error
30
- false, // context
31
- array(), // extra fileds
32
- true // allow_relaxed_file_ownership
33
- );
34
-
35
- /* initialize the API */
36
- if ( ! WP_Filesystem( $creds, false, true ) ) {
37
-
38
- /* any problems and we exit */
39
- return false;
40
- }
41
 
42
- global $wp_filesystem;
43
- /* do our file manipulations below */
44
- // }
45
- // else
46
- // {
47
- /* don't have direct write access. Prompt user with our notice */
48
- // add_action( 'admin_notices', 'wppa_fs_admin_notice' );
49
- // }
50
 
51
- // WP_Filesystem( array( 'verbose' => true ), false, true );
 
 
52
  }
53
  return true;
54
  }
@@ -150,7 +132,7 @@ global $wp_filesystem;
150
  }
151
 
152
  wppa_init_fs();
153
- if ( $wp_filesystem->file_exists( $from ) ) {
154
  $bret = $wp_filesystem->move( $from, $to );
155
  if ( ! $bret ) {
156
  wppa_log( 'Fso', 'Could not rename file ' . sanitize_text_field( $from ) . ' to ' . sanitize_text_field( $to ), true );
10
  */
11
 
12
  require_once ABSPATH . 'wp-admin/includes/file.php';
13
+ // require_once ABSPATH . 'wp-admin/includes/template.php';
 
14
 
15
  function wppa_init_fs() {
16
  global $wp_filesystem;
17
 
18
  if ( empty( $wp_filesystem ) ) {
19
 
20
+ $creds = request_filesystem_credentials(
21
+ site_url() . '/wp-admin/',
22
+ 'direct', // Force direct
23
+ false, // error
24
+ false, // context
25
+ array(), // extra fileds
26
+ true // allow_relaxed_file_ownership
27
+ );
 
 
 
 
 
 
 
 
 
 
 
 
28
 
29
+ if ( ! WP_Filesystem( $creds, false, true ) ) {
 
 
 
 
 
 
 
30
 
31
+ wppa_log( 'err', 'WP_Filesystem initialisation error' );
32
+ return false;
33
+ }
34
  }
35
  return true;
36
  }
132
  }
133
 
134
  wppa_init_fs();
135
+ if ( $wp_filesystem->exists( $from ) ) {
136
  $bret = $wp_filesystem->move( $from, $to );
137
  if ( ! $bret ) {
138
  wppa_log( 'Fso', 'Could not rename file ' . sanitize_text_field( $from ) . ' to ' . sanitize_text_field( $to ), true );
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.0.08.006
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/
@@ -22,8 +22,8 @@ global $wpdb;
22
  global $wp_version;
23
 
24
  /* WPPA GLOBALS */
25
- global $wppa_revno; $wppa_revno = '7007'; // WPPA db version
26
- global $wppa_api_version; $wppa_api_version = '7.0.08.006'; // WPPA software version
27
 
28
  /* start timers */
29
  global $wppa_starttime; $wppa_starttime = microtime( true );
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.0.08.008
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/
22
  global $wp_version;
23
 
24
  /* WPPA GLOBALS */
25
+ global $wppa_revno; $wppa_revno = '7008'; // WPPA db version
26
+ global $wppa_api_version; $wppa_api_version = '7.0.08.008'; // WPPA software version
27
 
28
  /* start timers */
29
  global $wppa_starttime; $wppa_starttime = microtime( true );