Gmedia Photo Gallery - Version 1.8.14

Version Description

  • Fixed: Multiple categories in Edit Mode
Download this release

Release Info

Developer pasyuk
Plugin Icon 128x128 Gmedia Photo Gallery
Version 1.8.14
Comparing to
See all releases

Code changes from version 1.8.12 to 1.8.14

admin/pages/library/tpl/edit-item.php CHANGED
@@ -101,7 +101,7 @@
101
  foreach($item->categories as $c) {
102
  $terms_category[] = esc_html($c->name);
103
  }
104
- $terms_category = join(', ', $terms_category);
105
  } else {
106
  $terms_category = '';
107
  }
101
  foreach($item->categories as $c) {
102
  $terms_category[] = esc_html($c->name);
103
  }
104
+ $terms_category = join(',', $terms_category);
105
  } else {
106
  $terms_category = '';
107
  }
grand-media.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Gmedia Gallery
4
  * Plugin URI: http://wordpress.org/extend/plugins/grand-media/
5
  * Description: Gmedia Gallery - powerful media library plugin for creating beautiful galleries and managing files.
6
- * Version: 1.8.12
7
  * Author: Rattus
8
  * Author URI: http://codeasily.com/
9
  * Requires at least: 3.6
@@ -42,7 +42,7 @@ if(!class_exists('Gmedia')) {
42
  */
43
  class Gmedia {
44
 
45
- var $version = '1.8.12';
46
  var $dbversion = '1.8.0';
47
  var $minium_WP = '3.6';
48
  var $options = '';
@@ -617,14 +617,14 @@ if(!class_exists('Gmedia')) {
617
  }
618
  } else {
619
  $term_id = get_post_meta($post->ID, '_gmedia_term_ID', true);
620
- $gmedia_term = $gmDB->get_term($term_id, $post->post_type);
621
- if($gmedia_term) {
622
- if($post->post_type == 'gmedia_album') {
623
- $link = admin_url("admin.php?page=GrandMedia_Terms&taxonomy={$post->post_type}&edit_item={$gmedia_term->term_id}");
624
- } elseif($post->post_type == 'gmedia_filter') {
625
- $link = admin_url("admin.php?page=GrandMedia_Terms&taxonomy={$post->post_type}&edit_item={$gmedia_term->term_id}");
626
- } elseif($post->post_type == 'gmedia_gallery') {
627
- $link = admin_url("admin.php?page=GrandMedia_Galleries&edit_item={$gmedia_term->term_id}");
628
  }
629
  } else {
630
  wp_delete_post($post->ID, true);
3
  * Plugin Name: Gmedia Gallery
4
  * Plugin URI: http://wordpress.org/extend/plugins/grand-media/
5
  * Description: Gmedia Gallery - powerful media library plugin for creating beautiful galleries and managing files.
6
+ * Version: 1.8.14
7
  * Author: Rattus
8
  * Author URI: http://codeasily.com/
9
  * Requires at least: 3.6
42
  */
43
  class Gmedia {
44
 
45
+ var $version = '1.8.14';
46
  var $dbversion = '1.8.0';
47
  var $minium_WP = '3.6';
48
  var $options = '';
617
  }
618
  } else {
619
  $term_id = get_post_meta($post->ID, '_gmedia_term_ID', true);
620
+ $term = $gmDB->get_term($term_id);
621
+ if($term) {
622
+ if($term->taxonomy == 'gmedia_album') {
623
+ $link = admin_url("admin.php?page=GrandMedia_Terms&taxonomy={$term->taxonomy}&edit_item={$term->term_id}");
624
+ } elseif($term->taxonomy == 'gmedia_filter') {
625
+ $link = admin_url("admin.php?page=GrandMedia_Terms&taxonomy={$term->taxonomy}&edit_item={$term->term_id}");
626
+ } elseif($term->taxonomy == 'gmedia_gallery') {
627
+ $link = admin_url("admin.php?page=GrandMedia_Galleries&edit_item={$term->term_id}");
628
  }
629
  } else {
630
  wp_delete_post($post->ID, true);
readme.txt CHANGED
@@ -135,6 +135,9 @@ Use [Gmedia Gallery support forum](http://codeasily.com/community/forum/gmedia-g
135
  = Modules Updated =
136
  * Go to Gmedia Modules page and update installed premium modules to latest versions
137
 
 
 
 
138
  = 1.8.12 =
139
  * New: Ability to create own categories
140
  * New: Ability to assign few categories to one item
135
  = Modules Updated =
136
  * Go to Gmedia Modules page and update installed premium modules to latest versions
137
 
138
+ = 1.8.14 =
139
+ * Fixed: Multiple categories in Edit Mode
140
+
141
  = 1.8.12 =
142
  * New: Ability to create own categories
143
  * New: Ability to assign few categories to one item