WP Photo Album Plus - Version 7.5.11.001

Version Description

= 7.5.11 =

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

Release Info

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

Code changes from version 7.5.10.009 to 7.5.11.001

changelog.txt CHANGED
@@ -1,5 +1,12 @@
1
  WP Photo Album Plus Changelog
2
 
 
 
 
 
 
 
 
3
  = 7.5.10 =
4
 
5
  * Searching on numbers on the album admin screen now also returns real search results besides the already implemented list of ids.
@@ -9,7 +16,7 @@ WP Photo Album Plus Changelog
9
  * The availebility of ImagMagick is now detected and activated automatically on opening the settings page the first time after install/update if it was not already done manually.
10
  * New setting Table I-F15: Character sizing.
11
  You can specify 'linear' (default), 'quadratic' or 'cubic' for the formula that determines the relation between the number of items and the size of the tagcloud text.
12
- * Fixed shortcode generators. They all work back properly now, both on classic asn block editor in classic blocks as well as the wppa custom block types.
13
  * Fixed some php warnings.
14
 
15
  = 7.5.09 =
1
  WP Photo Album Plus Changelog
2
 
3
+ = 7.5.11 =
4
+
5
+ * New setting: Table VI-C13: Moderate links admin/superuser/owner only.
6
+ If ticked, the moderate links etc. on the frontend will only be shown to admins, superusers and the photo owners.
7
+ The owners still need to have the capability moderate in Table VII-A.
8
+ * Fixed links to the wp plugins page when 'gallery not album' is activated in Table IV-A36.
9
+
10
  = 7.5.10 =
11
 
12
  * Searching on numbers on the album admin screen now also returns real search results besides the already implemented list of ids.
16
  * The availebility of ImagMagick is now detected and activated automatically on opening the settings page the first time after install/update if it was not already done manually.
17
  * New setting Table I-F15: Character sizing.
18
  You can specify 'linear' (default), 'quadratic' or 'cubic' for the formula that determines the relation between the number of items and the size of the tagcloud text.
19
+ * Fixed shortcode generators. They all work back properly now, both on classic as on block editor in classic blocks as well as the wppa custom block types.
20
  * Fixed some php warnings.
21
 
22
  = 7.5.09 =
readme.txt CHANGED
@@ -5,7 +5,7 @@ Tags: photo, album, slideshow, video, audio, lightbox, iptc, exif, cloudinary, f
5
  Requires at least: 3.9
6
  Tested up to: 5.5
7
  Requires PHP: 5.5
8
- Stable tag: 7.5.09.010
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -134,7 +134,7 @@ See for the full changelog: <a href="http://www.wppa.nl/changelog/" >The documen
134
 
135
  == Upgrade Notice ==
136
 
137
- = 7.5.10 =
138
 
139
  * This version addresses various bug fixes and feature requests.
140
 
5
  Requires at least: 3.9
6
  Tested up to: 5.5
7
  Requires PHP: 5.5
8
+ Stable tag: 7.5.10.009
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
134
 
135
  == Upgrade Notice ==
136
 
137
+ = 7.5.11 =
138
 
139
  * This version addresses various bug fixes and feature requests.
140
 
wppa-defaults.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * Contains default settings
6
- * Version 7.5.07
7
  *
8
  */
9
 
@@ -824,6 +824,7 @@ horizrailenabled:false,";
824
  'wppa_cover_sublinks' => 'none',
825
  'wppa_cover_sublinks_display' => 'none',
826
  'wppa_real_calendar_linktype' => 'lightbox',
 
827
 
828
  // Table VII: Security
829
  // B
3
  * Package: wp-photo-album-plus
4
  *
5
  * Contains default settings
6
+ * Version 7.5.11
7
  *
8
  */
9
 
824
  'wppa_cover_sublinks' => 'none',
825
  'wppa_cover_sublinks_display' => 'none',
826
  'wppa_real_calendar_linktype' => 'lightbox',
827
+ 'wppa_fe_links_owner_only' => 'no',
828
 
829
  // Table VII: Security
830
  // B
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 7.4.01
8
  */
9
 
10
  /* LOAD SIDEBAR WIDGETS */
@@ -438,6 +438,7 @@ global $thegallery;
438
  $text = str_replace( array( $thealbum, $albums, $album, $Albums, $Album ),
439
  array( $thegallery, $galleries, $gallery, $Galleries, $Gallery ),
440
  $text );
 
441
  }
442
 
443
  return $text;
4
  *
5
  * This file loads required php files and contains all functions used in init actions.
6
  *
7
+ * Version 7.5.11
8
  */
9
 
10
  /* LOAD SIDEBAR WIDGETS */
438
  $text = str_replace( array( $thealbum, $albums, $album, $Albums, $Album ),
439
  array( $thegallery, $galleries, $gallery, $Galleries, $Gallery ),
440
  $text );
441
+ $text = str_replace( '-'.$gallery.'-', '-'.$album.'-', $text ); // Fix links to wp
442
  }
443
 
444
  return $text;
wppa-links.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * Frontend links
6
- * Version 7.5.05
7
  */
8
 
9
  if ( ! defined( 'ABSPATH' ) ) die( "Can't load this file directly" );
@@ -959,6 +959,15 @@ function wppa_album_number_to_name_in_uri( $uri ) {
959
  function wppa_moderate_links( $type, $id, $comid = '' ) {
960
 
961
  $thumb = wppa_cache_thumb( $id );
 
 
 
 
 
 
 
 
 
962
  $result = '';
963
 
964
  if ( current_user_can('wppa_moderate') || ( current_user_can('wppa_comments') && $type == 'comment' ) ) {
3
  * Package: wp-photo-album-plus
4
  *
5
  * Frontend links
6
+ * Version 7.5.11
7
  */
8
 
9
  if ( ! defined( 'ABSPATH' ) ) die( "Can't load this file directly" );
959
  function wppa_moderate_links( $type, $id, $comid = '' ) {
960
 
961
  $thumb = wppa_cache_thumb( $id );
962
+
963
+ if ( wppa_switch( 'fe_links_owner_only' ) ) {
964
+ if ( ! wppa_user_is( 'administrator' ) ) {
965
+ if ( $thumb['owner'] != wppa_get_user() ) {
966
+ return;
967
+ }
968
+ }
969
+ }
970
+
971
  $result = '';
972
 
973
  if ( current_user_can('wppa_moderate') || ( current_user_can('wppa_comments') && $type == 'comment' ) ) {
wppa-settings-autosave.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * manage all options
6
- * Version 7.5.10
7
  *
8
  */
9
 
@@ -1641,7 +1641,7 @@ global $wppa_supported_camara_brands;
1641
  $clas = '';
1642
  $tags = 'layout,size,widget';
1643
  wppa_setting($slug, '14', $name, $desc, $html, $help, $clas, $tags);
1644
-
1645
  $name = __('Tagcloud character sizing', 'wp-photo-album-plus');
1646
  $desc = __('Formula to decide fontsizes', 'wp-photo-album-plus');
1647
  $help = '';
@@ -1652,7 +1652,7 @@ global $wppa_supported_camara_brands;
1652
  $clas = '';
1653
  $tags = 'layout,size,widget';
1654
  wppa_setting($slug, '15', $name, $desc, $html, $help, $clas, $tags);
1655
-
1656
  }
1657
  wppa_setting_subheader( 'G', '1', __( 'Lightbox related size settings. These settings have effect only when Table IX-J3 is set to wppa' , 'wp-photo-album-plus') );
1658
  {
@@ -7165,7 +7165,26 @@ global $wppa_supported_camara_brands;
7165
  $clas = '';
7166
  $tags = 'link';
7167
  wppa_setting($slug, '12', $name, $desc, $html, $help, $clas, $tags);
 
7168
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7169
  }
7170
 
7171
  ?>
3
  * Package: wp-photo-album-plus
4
  *
5
  * manage all options
6
+ * Version 7.5.11
7
  *
8
  */
9
 
1641
  $clas = '';
1642
  $tags = 'layout,size,widget';
1643
  wppa_setting($slug, '14', $name, $desc, $html, $help, $clas, $tags);
1644
+
1645
  $name = __('Tagcloud character sizing', 'wp-photo-album-plus');
1646
  $desc = __('Formula to decide fontsizes', 'wp-photo-album-plus');
1647
  $help = '';
1652
  $clas = '';
1653
  $tags = 'layout,size,widget';
1654
  wppa_setting($slug, '15', $name, $desc, $html, $help, $clas, $tags);
1655
+
1656
  }
1657
  wppa_setting_subheader( 'G', '1', __( 'Lightbox related size settings. These settings have effect only when Table IX-J3 is set to wppa' , 'wp-photo-album-plus') );
1658
  {
7165
  $clas = '';
7166
  $tags = 'link';
7167
  wppa_setting($slug, '12', $name, $desc, $html, $help, $clas, $tags);
7168
+ }
7169
 
7170
+ {
7171
+ $name = __('Moderate links owner only', 'wp-photo-album-plus');
7172
+ $desc = __('Frontend edit/delete/moderate links shown to owner, admin and superuser only', 'wp-photo-album-plus');
7173
+ $help = '';
7174
+ $slug1 = 'wppa_fe_links_owner_only';
7175
+ $slug2 = '';
7176
+ $slug3 = '';
7177
+ $slug4 = '';
7178
+ $slug = array($slug1, $slug2, $slug3, $slug4);
7179
+ $onchange = '';
7180
+ $html1 = wppa_checkbox($slug1, $onchange);
7181
+ $html2 = '';
7182
+ $slug3 = '';
7183
+ $slug4 = '';
7184
+ $html = array($html1, $html2, $html3, $html4);
7185
+ $clas = '';
7186
+ $tags = 'link';
7187
+ wppa_setting($slug, '13', $name, $desc, $html, $help, $clas, $tags);
7188
  }
7189
 
7190
  ?>
wppa-users.php CHANGED
@@ -321,12 +321,12 @@ function wppa_may_user_fe_edit( $id ) {
321
  // See if the current user may delete a given photo
322
  function wppa_may_user_fe_delete( $id ) {
323
 
324
- // Superuser?
325
- if ( wppa_is_user_superuser() ) return true;
326
-
327
  // Basic user?
328
  if ( wppa_user_is_basic() ) return false;
329
 
 
 
 
330
  // Can edit albums?
331
  if ( current_user_can( 'wppa_admin' ) ) return true;
332
 
321
  // See if the current user may delete a given photo
322
  function wppa_may_user_fe_delete( $id ) {
323
 
 
 
 
324
  // Basic user?
325
  if ( wppa_user_is_basic() ) return false;
326
 
327
+ // Superuser?
328
+ if ( wppa_is_user_superuser() ) return true;
329
+
330
  // Can edit albums?
331
  if ( current_user_can( 'wppa_admin' ) ) return true;
332
 
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.5.10.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,8 +23,8 @@ global $wpdb;
23
  global $wp_version;
24
 
25
  /* WPPA GLOBALS */
26
- global $wppa_revno; $wppa_revno = '7510'; // WPPA db version
27
- global $wppa_api_version; $wppa_api_version = '7.5.10.009'; // 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.5.11.001
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 = '7511'; // WPPA db version
27
+ global $wppa_api_version; $wppa_api_version = '7.5.11.001'; // WPPA software version
28
 
29
  /* Init page js data */
30
  global $wppa_js_page_data; $wppa_js_page_data = '';