Gallery Bank: WordPress Photo Gallery Plugin - Version 2.0.9

Version Description

  • Fixed Bug Related to Menus visible to Users other than Administrator
Download this release

Release Info

Developer Gallery-Bank
Plugin Icon 128x128 Gallery Bank: WordPress Photo Gallery Plugin
Version 2.0.9
Comparing to
See all releases

Code changes from version 2.0.8 to 2.0.9

Files changed (3) hide show
  1. gallery-bank.php +1 -1
  2. lib/gallery-bank-class.php +12 -12
  3. readme.txt +5 -1
gallery-bank.php CHANGED
@@ -4,7 +4,7 @@
4
  Plugin URI: http://gallery-bank.com
5
  Description: Gallery Bank is an interactive WordPress photo gallery plugin, best fit for creative and corporate portfolio websites.
6
  Author: Gallery-Bank
7
- Version: 2.0.8
8
  Author URI: http://gallery-bank.com
9
  */
10
  ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
4
  Plugin URI: http://gallery-bank.com
5
  Description: Gallery Bank is an interactive WordPress photo gallery plugin, best fit for creative and corporate portfolio websites.
6
  Author: Gallery-Bank
7
+ Version: 2.0.9
8
  Author URI: http://gallery-bank.com
9
  */
10
  ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
lib/gallery-bank-class.php CHANGED
@@ -16,8 +16,8 @@ if(file_exists($fileName)==false)
16
  function create_global_menus_for_gallery_bank()
17
  {
18
  global $wpdb;
19
- $menu = add_menu_page('Gallery Bank', __('Gallery Bank', gallery_bank), 'read', 'gallery_bank','',GALLERY_BK_PLUGIN_URL . '/icon.png');
20
- add_submenu_page('', 'Dashboard', __('Dashboard', gallery_bank), 'read', 'gallery_bank', 'gallery_bank');
21
  $album_count = $wpdb->get_var
22
  (
23
  $wpdb->prepare
@@ -27,18 +27,18 @@ function create_global_menus_for_gallery_bank()
27
  );
28
  if($album_count < 2)
29
  {
30
- add_submenu_page('gallery_bank', 'Add New Album',__('Add New Album', gallery_bank) , 'read', 'add_album', 'add_album');
31
  }
32
 
33
- add_submenu_page('gallery_bank', 'Sorting',__('Sorting', gallery_bank) , 'read', 'images_sorting_dd', 'images_sorting_dd');
34
- $submenu1 = add_submenu_page('gallery_bank', 'Gallery Bank', __('Global Settings', gallery_bank), 'read', 'settings', 'settings');
35
- add_submenu_page('gallery_bank','Documentation',__('Documentation', gallery_bank),'read','documentation','documentation');
36
- add_submenu_page('gallery_bank','Purchase Pro Version',__('Purchase Pro Version', gallery_bank),'read','get_more_features','get_more_features');
37
- add_submenu_page('', '','' , 'read', 'view_album', 'view_album');
38
- add_submenu_page('', '','' , 'read', 'album_preview', 'album_preview');
39
- add_submenu_page('', '','' , 'read', 'edit_album', 'edit_album');
40
- add_submenu_page('', '','' , 'read', 'images_sorting', 'images_sorting');
41
- add_submenu_page('', '','' , 'read', 'pro_version', 'pro_version');
42
 
43
  }
44
  //--------------------------------------------------------------------------------------------------------------//
16
  function create_global_menus_for_gallery_bank()
17
  {
18
  global $wpdb;
19
+ $menu = add_menu_page('Gallery Bank', __('Gallery Bank', gallery_bank), 'administrator', 'gallery_bank','',GALLERY_BK_PLUGIN_URL . '/icon.png');
20
+ add_submenu_page('', 'Dashboard', __('Dashboard', gallery_bank), 'administrator', 'gallery_bank', 'gallery_bank');
21
  $album_count = $wpdb->get_var
22
  (
23
  $wpdb->prepare
27
  );
28
  if($album_count < 2)
29
  {
30
+ add_submenu_page('gallery_bank', 'Add New Album',__('Add New Album', gallery_bank) , 'administrator', 'add_album', 'add_album');
31
  }
32
 
33
+ add_submenu_page('gallery_bank', 'Sorting',__('Sorting', gallery_bank) , 'administrator', 'images_sorting_dd', 'images_sorting_dd');
34
+ $submenu1 = add_submenu_page('gallery_bank', 'Gallery Bank', __('Global Settings', gallery_bank), 'administrator', 'settings', 'settings');
35
+ add_submenu_page('gallery_bank','Documentation',__('Documentation', gallery_bank),'administrator','documentation','documentation');
36
+ add_submenu_page('gallery_bank','Purchase Pro Version',__('Purchase Pro Version', gallery_bank),'administrator','get_more_features','get_more_features');
37
+ add_submenu_page('', '','' , 'administrator', 'view_album', 'view_album');
38
+ add_submenu_page('', '','' , 'administrator', 'album_preview', 'album_preview');
39
+ add_submenu_page('', '','' , 'administrator', 'edit_album', 'edit_album');
40
+ add_submenu_page('', '','' , 'administrator', 'images_sorting', 'images_sorting');
41
+ add_submenu_page('', '','' , 'administrator', 'pro_version', 'pro_version');
42
 
43
  }
44
  //--------------------------------------------------------------------------------------------------------------//
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: Gallery-Bank
3
  Tags: gallery, image, gallery images, album, foto, fotoalbum, website gallery, multiple pictures, pictures, photo, photoalbum, photogallery, photo gallery, lightbox,media, nextgen, nextgen gallery,photo, photo albums, picture, pictures, thumbnails, slideshow
4
  Requires at least: 3.0
5
  Tested up to: 3.6
6
- Stable tag: 2.0.8
7
  License: GPLv3 or later
8
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
9
 
@@ -134,6 +134,10 @@ With this bulk deletion feature, you can now delete the pictures you want in bul
134
 
135
  == Changelog ==
136
 
 
 
 
 
137
  = 2.0.8 =
138
 
139
  * Few Bugs Fixed
3
  Tags: gallery, image, gallery images, album, foto, fotoalbum, website gallery, multiple pictures, pictures, photo, photoalbum, photogallery, photo gallery, lightbox,media, nextgen, nextgen gallery,photo, photo albums, picture, pictures, thumbnails, slideshow
4
  Requires at least: 3.0
5
  Tested up to: 3.6
6
+ Stable tag: 2.0.9
7
  License: GPLv3 or later
8
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
9
 
134
 
135
  == Changelog ==
136
 
137
+ = 2.0.9 =
138
+
139
+ * Fixed Bug Related to Menus visible to Users other than Administrator
140
+
141
  = 2.0.8 =
142
 
143
  * Few Bugs Fixed