WP Photo Album Plus - Version 7.6.08.009

Version Description

= 7.6.07 =

  • This version addresses various minor bug fixes and feature requests.
Download this release

Release Info

Developer opajaap
Plugin Icon wp plugin WP Photo Album Plus
Version 7.6.08.009
Comparing to
See all releases

Code changes from version 7.6.08.008 to 7.6.08.009

Files changed (3) hide show
  1. wppa-boxes-html.php +2 -3
  2. wppa-functions.php +6 -2
  3. wppa.php +3 -3
wppa-boxes-html.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * Various wppa boxes
6
- * Version 7.6.08.002
7
  *
8
  */
9
 
@@ -3112,7 +3112,7 @@ static $albums_granted;
3112
 
3113
  // Predefined desc ?
3114
  elseif ( wppa_switch( 'apply_newphoto_desc_user' ) ) {
3115
- /*
3116
  $result .=
3117
  '<input' .
3118
  ' id="wppa-name-user-' . $mocc . '-' . $seqno . '"' .
@@ -3120,7 +3120,6 @@ static $albums_granted;
3120
  ' value="' . esc_attr( wppa_opt( 'newphoto_description' ) ) . '"' .
3121
  ' name="wppa-user-desc"' .
3122
  ' />';
3123
- */
3124
  }
3125
 
3126
  // Custom fields
3
  * Package: wp-photo-album-plus
4
  *
5
  * Various wppa boxes
6
+ * Version 7.6.08.009
7
  *
8
  */
9
 
3112
 
3113
  // Predefined desc ?
3114
  elseif ( wppa_switch( 'apply_newphoto_desc_user' ) ) {
3115
+
3116
  $result .=
3117
  '<input' .
3118
  ' id="wppa-name-user-' . $mocc . '-' . $seqno . '"' .
3120
  ' value="' . esc_attr( wppa_opt( 'newphoto_description' ) ) . '"' .
3121
  ' name="wppa-user-desc"' .
3122
  ' />';
 
3123
  }
3124
 
3125
  // Custom fields
wppa-functions.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * Various functions
6
- * Version 7.6.08.002
7
  *
8
  */
9
 
@@ -5230,12 +5230,16 @@ global $wppa_alert;
5230
  // Add new entry
5231
  if ( ! $id ) {
5232
 
 
 
 
 
5233
  $id = wppa_create_photo_entry( array( 'album' => $alb,
5234
  'filename' => $filename,
5235
  'ext' => 'xxx',
5236
  'name' => $name,
5237
  'status' => $status,
5238
- 'description' => balanceTags( wppa_get_post( 'user-desc' ), true )
5239
  ) );
5240
 
5241
  if ( ! $id ) {
3
  * Package: wp-photo-album-plus
4
  *
5
  * Various functions
6
+ * Version 7.6.08.009
7
  *
8
  */
9
 
5230
  // Add new entry
5231
  if ( ! $id ) {
5232
 
5233
+ $desc = isset( $_POST['user-desc'] ) ? balanceTags( wppa_get_post( 'user-desc' ), true ) : '';
5234
+ if ( ! $desc && wppa_switch( 'apply_newphoto_desc_user' ) ) {
5235
+ $desc = wppa_opt( 'newphoto_description' );
5236
+ }
5237
  $id = wppa_create_photo_entry( array( 'album' => $alb,
5238
  'filename' => $filename,
5239
  'ext' => 'xxx',
5240
  'name' => $name,
5241
  'status' => $status,
5242
+ 'description' => $desc,
5243
  ) );
5244
 
5245
  if ( ! $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.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/
@@ -23,8 +23,8 @@ global $wpdb;
23
  global $wp_version;
24
 
25
  /* WPPA GLOBALS */
26
- global $wppa_revno; $wppa_revno = '7607'; // WPPA db version
27
- global $wppa_api_version; $wppa_api_version = '7.6.08.008'; // WPPA software version
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.08.009
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 = '7608'; // WPPA db version
27
+ global $wppa_api_version; $wppa_api_version = '7.6.08.009'; // WPPA software version
28
 
29
  /* Init page js data */
30
  global $wppa_js_page_data; $wppa_js_page_data = '';