Version Description
= 8.0.10 =
- This version addresses various bug fixes, feature requests and security fixes.
Download this release
Release Info
Developer | opajaap |
Plugin | WP Photo Album Plus |
Version | 8.1.00.002 |
Comparing to | |
See all releases |
Code changes from version 8.1.00.001 to 8.1.00.002
- wppa-defaults.php +3 -1
- wppa-init.php +14 -1
- wppa-settings-autosave.php +8 -1
- wppa.php +2 -2
wppa-defaults.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* Contains default settings
|
6 |
-
* Version 8.
|
7 |
*
|
8 |
*/
|
9 |
|
@@ -1226,6 +1226,8 @@ horizrailenabled:false,";
|
|
1226 |
|
1227 |
'wppa_heartbeat' => '0',
|
1228 |
|
|
|
|
|
1229 |
);
|
1230 |
|
1231 |
if ( $force ) {
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* Contains default settings
|
6 |
+
* Version 8.1.00.002
|
7 |
*
|
8 |
*/
|
9 |
|
1226 |
|
1227 |
'wppa_heartbeat' => '0',
|
1228 |
|
1229 |
+
'wppa_use_wp_upload_dir_locations' => 'no',
|
1230 |
+
|
1231 |
);
|
1232 |
|
1233 |
if ( $force ) {
|
wppa-init.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
*
|
5 |
* This file loads required php files and contains all functions used in init actions.
|
6 |
*
|
7 |
-
* Version 8.1.00.
|
8 |
*/
|
9 |
|
10 |
/* LOAD SIDEBAR WIDGETS */
|
@@ -181,6 +181,19 @@ global $blog_id;
|
|
181 |
define( 'WPPA_DEPOT_URL', site_url() . '/' . WPPA_DEPOT );
|
182 |
}
|
183 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
184 |
else { // Single site or multisite global
|
185 |
define( 'WPPA_UPLOAD', $rel_uploads_path );
|
186 |
if ( ! defined( 'WPPA_UPLOAD_PATH' ) ) {
|
4 |
*
|
5 |
* This file loads required php files and contains all functions used in init actions.
|
6 |
*
|
7 |
+
* Version 8.1.00.002
|
8 |
*/
|
9 |
|
10 |
/* LOAD SIDEBAR WIDGETS */
|
181 |
define( 'WPPA_DEPOT_URL', site_url() . '/' . WPPA_DEPOT );
|
182 |
}
|
183 |
}
|
184 |
+
// This is for sites where wp_upload_dir() returns valid output and having non standard file locations
|
185 |
+
elseif ( get_option( 'wppa_use_wp_upload_dir_locations', 'no' ) == 'yes' ) {
|
186 |
+
$user = is_user_logged_in() ? '/' . wppa_get_user() : '';
|
187 |
+
$dir = wp_upload_dir();
|
188 |
+
$basedir = $dir['basedir'];
|
189 |
+
$baseurl = $dir['baseurl'];
|
190 |
+
define( 'WPPA_UPLOAD_PATH', $basedir . '/wppa' );
|
191 |
+
define( 'WPPA_UPLOAD_URL', $baseurl . '/wppa' );
|
192 |
+
define( 'WPPA_UPLOAD', str_replace( ABSPATH, '', $basedir ) );
|
193 |
+
define( 'WPPA_DEPOT_PATH', dirname( $basedir ) . '/wppa-depot' . $user );
|
194 |
+
define( 'WPPA_DEPOT_URL', dirname( $baseurl ) . '/wppa-depot' . $user );
|
195 |
+
define( 'WPPA_DEPOT', str_replace( ABSPATH, '', WPPA_DEPOT_PATH ) );
|
196 |
+
}
|
197 |
else { // Single site or multisite global
|
198 |
define( 'WPPA_UPLOAD', $rel_uploads_path );
|
199 |
if ( ! defined( 'WPPA_UPLOAD_PATH' ) ) {
|
wppa-settings-autosave.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* manage all options
|
6 |
-
* Version 8.1.00.
|
7 |
*
|
8 |
*/
|
9 |
|
@@ -6852,6 +6852,13 @@ global $wppa_subtab_names;
|
|
6852 |
$html = wppa_select($slug, $opts, $vals, '');
|
6853 |
wppa_setting_new($slug, '42', $name, $desc, $html, $help);
|
6854 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
6855 |
wppa_setting_box_footer_new();
|
6856 |
}
|
6857 |
}
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* manage all options
|
6 |
+
* Version 8.1.00.002
|
7 |
*
|
8 |
*/
|
9 |
|
6852 |
$html = wppa_select($slug, $opts, $vals, '');
|
6853 |
wppa_setting_new($slug, '42', $name, $desc, $html, $help);
|
6854 |
|
6855 |
+
$name = __('Use wp_upload_dir()', 'wp-photo-album-plus');
|
6856 |
+
$desc = __('Rely upon the information supplied by wp_upload_dir() for wppa file locations', 'wp-photo-album-plus');
|
6857 |
+
$help = __('Switch this on only when you are using non-standard locations for uploads etc', 'wp-photo-album-plus');
|
6858 |
+
$slug = 'wppa_use_wp_upload_dir_locations';
|
6859 |
+
$html = wppa_checkbox($slug);
|
6860 |
+
wppa_setting_new($slug, '43', $name, $desc, $html, $help);
|
6861 |
+
|
6862 |
wppa_setting_box_footer_new();
|
6863 |
}
|
6864 |
}
|
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: 8.1.00.
|
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 = '8.1.00.
|
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: 8.1.00.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/
|
24 |
|
25 |
/* WPPA GLOBALS */
|
26 |
global $wppa_api_version;
|
27 |
+
$wppa_api_version = '8.1.00.002'; // WPPA software version
|
28 |
global $wppa_revno;
|
29 |
$wppa_revno = str_replace( '.', '', $wppa_api_version ); // WPPA db version
|
30 |
|