Gmedia Photo Gallery - Version 1.21.9

Version Description

Download this release

Release Info

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

Code changes from version 1.21.8 to 1.21.9

admin/assets/css/gmedia.admin.css CHANGED
@@ -2289,8 +2289,7 @@ select[multiple].form-group-sm .form-control {
2289
  .input-group-xs > .input-group-text,
2290
  .input-group-xs > .input-group-btn > .btn,
2291
  .input-group-sm > .form-control,
2292
- .input-group-sm > .input-group-text,
2293
- .input-group-sm > .input-group-btn > .btn {
2294
  padding: 1px 5px;
2295
  font-size: 12px;
2296
  line-height: 1.5;
@@ -2301,8 +2300,7 @@ select.input-group-xs > .form-control,
2301
  select.input-group-xs > .input-group-text,
2302
  select.input-group-xs > .input-group-btn > .btn,
2303
  select.input-group-sm > .form-control,
2304
- select.input-group-sm > .input-group-text,
2305
- select.input-group-sm > .input-group-btn > .btn {
2306
  line-height: 22px;
2307
  }
2308
 
@@ -2316,8 +2314,7 @@ textarea.input-group-sm > .form-control,
2316
  textarea.input-group-sm > .input-group-text,
2317
  textarea.input-group-sm > .input-group-btn > .btn,
2318
  select[multiple].input-group-sm > .form-control,
2319
- select[multiple].input-group-sm > .input-group-text,
2320
- select[multiple].input-group-sm > .input-group-btn > .btn {
2321
  height: auto;
2322
  }
2323
 
2289
  .input-group-xs > .input-group-text,
2290
  .input-group-xs > .input-group-btn > .btn,
2291
  .input-group-sm > .form-control,
2292
+ .input-group-sm > .input-group-text {
 
2293
  padding: 1px 5px;
2294
  font-size: 12px;
2295
  line-height: 1.5;
2300
  select.input-group-xs > .input-group-text,
2301
  select.input-group-xs > .input-group-btn > .btn,
2302
  select.input-group-sm > .form-control,
2303
+ select.input-group-sm > .input-group-text {
 
2304
  line-height: 22px;
2305
  }
2306
 
2314
  textarea.input-group-sm > .input-group-text,
2315
  textarea.input-group-sm > .input-group-btn > .btn,
2316
  select[multiple].input-group-sm > .form-control,
2317
+ select[multiple].input-group-sm > .input-group-text {
 
2318
  height: auto;
2319
  }
2320
 
admin/pages/terms/tpl/album-edit-item.php CHANGED
@@ -221,8 +221,7 @@ $_module_preset = ! empty( $term->meta['_module_preset'][0] ) ? $term->meta['_mo
221
  </span>
222
  </div>
223
  </div>
224
- <div class="gm-img-thumbnail gmedia-cover-image">
225
- <?php
226
  $cover_id = intval( $cover_id );
227
  if ( $cover_id ) {
228
  $cover = $gmDB->get_gmedia( $cover_id );
@@ -234,8 +233,7 @@ $_module_preset = ! empty( $term->meta['_module_preset'][0] ) ? $term->meta['_mo
234
  echo '<strong class="text-danger">' . esc_html__( 'No image with such ID', 'grand-media' ) . '</strong>';
235
  }
236
  }
237
- ?>
238
- </div>
239
  </div>
240
  </div>
241
  </div>
221
  </span>
222
  </div>
223
  </div>
224
+ <div class="gm-img-thumbnail gmedia-cover-image"><?php
 
225
  $cover_id = intval( $cover_id );
226
  if ( $cover_id ) {
227
  $cover = $gmDB->get_gmedia( $cover_id );
233
  echo '<strong class="text-danger">' . esc_html__( 'No image with such ID', 'grand-media' ) . '</strong>';
234
  }
235
  }
236
+ ?></div>
 
237
  </div>
238
  </div>
239
  </div>
admin/pages/terms/tpl/category-edit-item.php CHANGED
@@ -137,8 +137,7 @@ $_module_preset = ! empty( $term->meta['_module_preset'][0] ) ? $term->meta['_mo
137
  </span>
138
  </div>
139
  </div>
140
- <div class="gm-img-thumbnail gmedia-cover-image">
141
- <?php
142
  $cover_id = intval( $cover_id );
143
  if ( $cover_id ) {
144
  $cover = $gmDB->get_gmedia( $cover_id );
@@ -150,8 +149,7 @@ $_module_preset = ! empty( $term->meta['_module_preset'][0] ) ? $term->meta['_mo
150
  echo '<strong class="text-danger">' . esc_html__( 'No image with such ID', 'grand-media' ) . '</strong>';
151
  }
152
  }
153
- ?>
154
- </div>
155
  </div>
156
  </div>
157
  </div>
137
  </span>
138
  </div>
139
  </div>
140
+ <div class="gm-img-thumbnail gmedia-cover-image"><?php
 
141
  $cover_id = intval( $cover_id );
142
  if ( $cover_id ) {
143
  $cover = $gmDB->get_gmedia( $cover_id );
149
  echo '<strong class="text-danger">' . esc_html__( 'No image with such ID', 'grand-media' ) . '</strong>';
150
  }
151
  }
152
+ ?></div>
 
153
  </div>
154
  </div>
155
  </div>
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.21.8
7
  * Author: Rattus
8
  * Author URI: https://codeasily.com/
9
  * Requires at least: 5.3.0
@@ -39,7 +39,7 @@ if ( ! class_exists( 'Gmedia' ) ) {
39
  */
40
  class Gmedia {
41
 
42
- public $version = '1.21.8';
43
  public $dbversion = '1.8.0';
44
  public $minium_WP = '5.3';
45
  public $options = '';
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.21.9
7
  * Author: Rattus
8
  * Author URI: https://codeasily.com/
9
  * Requires at least: 5.3.0
39
  */
40
  class Gmedia {
41
 
42
+ public $version = '1.21.9';
43
  public $dbversion = '1.8.0';
44
  public $minium_WP = '5.3';
45
  public $options = '';
inc/core.php CHANGED
@@ -3764,6 +3764,19 @@ class GmediaCore {
3764
  return $input;
3765
  }
3766
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3767
  /**
3768
  * Recursive sanitation for an array
3769
  *
@@ -3772,11 +3785,8 @@ class GmediaCore {
3772
  * @return string|array
3773
  */
3774
  public function sanitize_post_field_deep( $input ) {
3775
- if ( ! is_array( $input ) ) {
3776
- return wp_kses_post( $input );
3777
- }
3778
 
3779
- return wp_kses_post_deep( $input );
3780
  }
3781
 
3782
  /**
3764
  return $input;
3765
  }
3766
 
3767
+ /**
3768
+ * Recursive sanitation for an array
3769
+ *
3770
+ * @param string $input
3771
+ *
3772
+ * @return string
3773
+ */
3774
+ public function sanitize_post_field( $input ) {
3775
+ $r = str_replace( '&', '_å_', $input );
3776
+ $r = wp_kses_post( $r );
3777
+ return str_replace( '_å_', '&', $r );
3778
+ }
3779
+
3780
  /**
3781
  * Recursive sanitation for an array
3782
  *
3785
  * @return string|array
3786
  */
3787
  public function sanitize_post_field_deep( $input ) {
 
 
 
3788
 
3789
+ return map_deep( $input, array( $this, 'sanitize_post_field' ) );
3790
  }
3791
 
3792
  /**
readme.txt CHANGED
@@ -139,6 +139,10 @@ Use [Gmedia Support Forum](https://codeasily.com/community/forum/gmedia-gallery-
139
  = Modules Updated =
140
  * Go to Gmedia Modules page and update installed premium modules to latest versions
141
 
 
 
 
 
142
  = v1.21.8 =
143
  * Fix saving title with ampersand
144
  * Fix display some modues in preview
139
  = Modules Updated =
140
  * Go to Gmedia Modules page and update installed premium modules to latest versions
141
 
142
+ = v1.21.9 =
143
+ * Fix gallery query saving
144
+ * Improve admin styling
145
+
146
  = v1.21.8 =
147
  * Fix saving title with ampersand
148
  * Fix display some modues in preview