Photo Gallery by Envira – Responsive Image Gallery for WordPress - Version 1.5.0.1

Version Description

  • Updated: Standardised edit screen titles and descriptions
  • Updated: Screenshots
Download this release

Release Info

Developer n7studios
Plugin Icon 128x128 Photo Gallery by Envira – Responsive Image Gallery for WordPress
Version 1.5.0.1
Comparing to
See all releases

Code changes from version 1.5.0 to 1.5.0.1

envira-gallery-lite.php CHANGED
@@ -4,8 +4,8 @@
4
  * Plugin URI: http://enviragallery.com
5
  * Description: Envira Gallery is best responsive WordPress gallery plugin. This is the lite version.
6
  * Author: Thomas Griffin
7
- * Author URI: http://thomasgriffinmedia.com
8
- * Version: 1.5.0
9
  * Text Domain: envira-gallery
10
  *
11
  * Envira Gallery is free software: you can redistribute it and/or modify
@@ -53,7 +53,7 @@ class Envira_Gallery_Lite {
53
  *
54
  * @var string
55
  */
56
- public $version = '1.5.0';
57
 
58
  /**
59
  * The name of the plugin.
4
  * Plugin URI: http://enviragallery.com
5
  * Description: Envira Gallery is best responsive WordPress gallery plugin. This is the lite version.
6
  * Author: Thomas Griffin
7
+ * Author URI: http://enviragallery.com
8
+ * Version: 1.5.0.1
9
  * Text Domain: envira-gallery
10
  *
11
  * Envira Gallery is free software: you can redistribute it and/or modify
53
  *
54
  * @var string
55
  */
56
+ public $version = '1.5.0.1';
57
 
58
  /**
59
  * The name of the plugin.
includes/admin/metaboxes.php CHANGED
@@ -701,8 +701,10 @@ class Envira_Gallery_Metaboxes {
701
  <div id="envira-config">
702
  <!-- Title and Help -->
703
  <p class="envira-intro">
704
- <?php _e( 'The settings below adjust the basic configuration options for the gallery.', 'envira-gallery' ); ?>
705
  <small>
 
 
706
  <?php _e( 'Need some help?', 'envira-gallery' ); ?>
707
  <a href="http://enviragallery.com/docs/creating-first-envira-gallery/" class="envira-doc" target="_blank">
708
  <?php _e( 'Read the Documentation', 'envira-gallery' ); ?>
@@ -834,8 +836,10 @@ class Envira_Gallery_Metaboxes {
834
  ?>
835
  <div id="envira-lightbox">
836
  <p class="envira-intro">
837
- <?php _e( 'The settings below adjust the lightbox output.', 'envira-gallery' ); ?>
838
  <small>
 
 
839
  <?php _e( 'Need some help?', 'envira-gallery' ); ?>
840
  <a href="http://enviragallery.com/docs/creating-first-envira-gallery/" class="envira-doc" target="_blank">
841
  <?php _e( 'Read the Documentation', 'envira-gallery' ); ?>
@@ -938,8 +942,10 @@ class Envira_Gallery_Metaboxes {
938
  ?>
939
  <div id="envira-misc">
940
  <p class="envira-intro">
941
- <?php _e( 'The settings below adjust miscellaneous settings for the gallery.', 'envira-gallery' ); ?>
942
  <small>
 
 
943
  <?php _e( 'Need some help?', 'envira-gallery' ); ?>
944
  <a href="http://enviragallery.com/docs/creating-first-envira-gallery/" class="envira-doc" target="_blank">
945
  <?php _e( 'Read the Documentation', 'envira-gallery' ); ?>
@@ -1157,35 +1163,35 @@ class Envira_Gallery_Metaboxes {
1157
  }
1158
 
1159
  if ( defined( 'DOING_AJAX' ) && DOING_AJAX ) {
1160
- // Check if this is a Quick Edit request
1161
- if ( isset( $_POST['_inline_edit'] ) ) {
1162
-
1163
- // Just update specific fields in the Quick Edit screen
1164
-
1165
- // Get settings
1166
- $settings = get_post_meta( $post_id, '_eg_gallery_data', true );
1167
- if ( empty( $settings ) ) {
1168
- return;
1169
- }
1170
 
1171
- // Update Settings
1172
- $settings['config']['columns'] = preg_replace( '#[^a-z0-9-_]#', '', $_POST['_envira_gallery']['columns'] );
1173
  $settings['config']['gallery_theme'] = preg_replace( '#[^a-z0-9-_]#', '', $_POST['_envira_gallery']['gallery_theme'] );
1174
  $settings['config']['gutter'] = absint( $_POST['_envira_gallery']['gutter'] );
1175
  $settings['config']['margin'] = absint( $_POST['_envira_gallery']['margin'] );
1176
  $settings['config']['crop_width'] = absint( $_POST['_envira_gallery']['crop_width'] );
1177
  $settings['config']['crop_height'] = absint( $_POST['_envira_gallery']['crop_height'] );
1178
-
1179
- // Provide a filter to override settings.
1180
- $settings = apply_filters( 'envira_gallery_quick_edit_save_settings', $settings, $post_id, $post );
1181
-
1182
- // Update the post meta.
1183
- update_post_meta( $post_id, '_eg_gallery_data', $settings );
1184
-
1185
- // Finally, flush all gallery caches to ensure everything is up to date.
1186
  Envira_Gallery_Common::get_instance()->flush_gallery_caches( $post_id, $settings['config']['slug'] );
1187
-
1188
- }
1189
 
1190
  return;
1191
  }
701
  <div id="envira-config">
702
  <!-- Title and Help -->
703
  <p class="envira-intro">
704
+ <?php _e( 'Gallery Settings', 'envira-gallery' ); ?>
705
  <small>
706
+ <?php _e( 'The settings below adjust the basic configuration options for the gallery.', 'envira-gallery' ); ?>
707
+ <br />
708
  <?php _e( 'Need some help?', 'envira-gallery' ); ?>
709
  <a href="http://enviragallery.com/docs/creating-first-envira-gallery/" class="envira-doc" target="_blank">
710
  <?php _e( 'Read the Documentation', 'envira-gallery' ); ?>
836
  ?>
837
  <div id="envira-lightbox">
838
  <p class="envira-intro">
839
+ <?php _e( 'Lightbox Settings', 'envira-gallery' ); ?>
840
  <small>
841
+ <?php _e( 'The settings below adjust the lightbox output.', 'envira-gallery' ); ?>
842
+ <br />
843
  <?php _e( 'Need some help?', 'envira-gallery' ); ?>
844
  <a href="http://enviragallery.com/docs/creating-first-envira-gallery/" class="envira-doc" target="_blank">
845
  <?php _e( 'Read the Documentation', 'envira-gallery' ); ?>
942
  ?>
943
  <div id="envira-misc">
944
  <p class="envira-intro">
945
+ <?php _e( 'Miscellaneous Settings', 'envira-gallery' ); ?>
946
  <small>
947
+ <?php _e( 'The settings below adjust miscellaneous settings for the gallery.', 'envira-gallery' ); ?>
948
+ <br />
949
  <?php _e( 'Need some help?', 'envira-gallery' ); ?>
950
  <a href="http://enviragallery.com/docs/creating-first-envira-gallery/" class="envira-doc" target="_blank">
951
  <?php _e( 'Read the Documentation', 'envira-gallery' ); ?>
1163
  }
1164
 
1165
  if ( defined( 'DOING_AJAX' ) && DOING_AJAX ) {
1166
+ // Check if this is a Quick Edit request
1167
+ if ( isset( $_POST['_inline_edit'] ) ) {
1168
+
1169
+ // Just update specific fields in the Quick Edit screen
1170
+
1171
+ // Get settings
1172
+ $settings = get_post_meta( $post_id, '_eg_gallery_data', true );
1173
+ if ( empty( $settings ) ) {
1174
+ return;
1175
+ }
1176
 
1177
+ // Update Settings
1178
+ $settings['config']['columns'] = preg_replace( '#[^a-z0-9-_]#', '', $_POST['_envira_gallery']['columns'] );
1179
  $settings['config']['gallery_theme'] = preg_replace( '#[^a-z0-9-_]#', '', $_POST['_envira_gallery']['gallery_theme'] );
1180
  $settings['config']['gutter'] = absint( $_POST['_envira_gallery']['gutter'] );
1181
  $settings['config']['margin'] = absint( $_POST['_envira_gallery']['margin'] );
1182
  $settings['config']['crop_width'] = absint( $_POST['_envira_gallery']['crop_width'] );
1183
  $settings['config']['crop_height'] = absint( $_POST['_envira_gallery']['crop_height'] );
1184
+
1185
+ // Provide a filter to override settings.
1186
+ $settings = apply_filters( 'envira_gallery_quick_edit_save_settings', $settings, $post_id, $post );
1187
+
1188
+ // Update the post meta.
1189
+ update_post_meta( $post_id, '_eg_gallery_data', $settings );
1190
+
1191
+ // Finally, flush all gallery caches to ensure everything is up to date.
1192
  Envira_Gallery_Common::get_instance()->flush_gallery_caches( $post_id, $settings['config']['slug'] );
1193
+
1194
+ }
1195
 
1196
  return;
1197
  }
readme.txt CHANGED
@@ -185,6 +185,10 @@ Also, I'm an <a href="https://thomasgriffin.io" rel="me" title="WordPress Develo
185
 
186
  == Changelog ==
187
 
 
 
 
 
188
  = 1.5.0 =
189
  * Added: New UI
190
  * Added: WordPress native modal window for image upload, insertion from Media Library and edit
185
 
186
  == Changelog ==
187
 
188
+ = 1.5.0.1 =
189
+ * Updated: Standardised edit screen titles and descriptions
190
+ * Updated: Screenshots
191
+
192
  = 1.5.0 =
193
  * Added: New UI
194
  * Added: WordPress native modal window for image upload, insertion from Media Library and edit