Galleries by Angie Makes - Version 1.17

Version Description

Download this release

Release Info

Developer cbaldelomar
Plugin Icon wp plugin Galleries by Angie Makes
Version 1.17
Comparing to
See all releases

Code changes from version 1.16 to 1.17

README.md CHANGED
@@ -46,6 +46,10 @@ Insert a gallery through your dashboard. You will see extra dropdown settings wh
46
 
47
  ## Changelog ##
48
 
 
 
 
 
49
  ### Version 1.16
50
 
51
  * Bug fix on checking for defined images sizes
46
 
47
  ## Changelog ##
48
 
49
+ ### Version 1.17
50
+
51
+ * Bug fix
52
+
53
  ### Version 1.16
54
 
55
  * Bug fix on checking for defined images sizes
includes/functions.php CHANGED
@@ -14,6 +14,44 @@ function wc_gallery_check_supports() {
14
  }
15
  add_action( 'init', 'wc_gallery_check_supports' );
16
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
17
  /**
18
  * The Gallery shortcode.
19
  *
14
  }
15
  add_action( 'init', 'wc_gallery_check_supports' );
16
 
17
+ /*
18
+ * Activation
19
+ */
20
+ function wc_gallery_options_activation_hook() {
21
+ global $wc_gallery_options;
22
+
23
+ $initialize = false;
24
+
25
+ if ( ! WC_GALLERY_CURRENT_VERSION ) {
26
+ $initialize = true;
27
+ }
28
+ else if ( version_compare( WC_GALLERY_VERSION, WC_GALLERY_CURRENT_VERSION ) > 0 ) {
29
+ $initialize = true;
30
+ }
31
+
32
+ if ( $initialize ) {
33
+ update_option( WC_GALLERY_PREFIX . 'current_version', WC_GALLERY_VERSION );
34
+
35
+ foreach ( $wc_gallery_options as $o ) {
36
+ foreach ( $o['sections'] as $oo ) {
37
+ foreach ( $oo['options'] as $ooo ) {
38
+ if ( isset( $ooo['group'] ) && is_array( $ooo['group'] ) ) {
39
+ foreach ( $ooo['group'] as $key => $oooo ) {
40
+ $option_name = WC_GALLERY_PREFIX . $oooo['id'];
41
+ add_option( $option_name, $oooo['default'] );
42
+ }
43
+ }
44
+ else {
45
+ $option_name = WC_GALLERY_PREFIX . $ooo['id'];
46
+ add_option( $option_name, $ooo['default'] );
47
+ }
48
+ }
49
+ }
50
+ }
51
+ }
52
+ }
53
+ add_action( 'init', 'wc_gallery_options_activation_hook', 200 );
54
+
55
  /**
56
  * The Gallery shortcode.
57
  *
includes/options.php CHANGED
@@ -289,4 +289,4 @@ function wc_gallery_set_options() {
289
  ),
290
  );
291
  }
292
- add_action( 'after_setup_theme', 'wc_gallery_set_options', 100 );
289
  ),
290
  );
291
  }
292
+ add_action( 'init', 'wc_gallery_set_options', 100 );
includes/settings.php CHANGED
@@ -322,41 +322,3 @@ function wc_gallery_remember_last_options_tab() {
322
  }
323
  }
324
  add_action( 'admin_init', 'wc_gallery_remember_last_options_tab' );
325
-
326
- /*
327
- * Activation
328
- */
329
- function wc_gallery_options_activation_hook() {
330
- global $wc_gallery_options;
331
-
332
- $initialize = false;
333
-
334
- if ( ! WC_GALLERY_CURRENT_VERSION ) {
335
- $initialize = true;
336
- }
337
- else if ( version_compare( WC_GALLERY_VERSION, WC_GALLERY_CURRENT_VERSION ) > 0 ) {
338
- $initialize = true;
339
- }
340
-
341
- if ( $initialize ) {
342
- update_option( WC_GALLERY_PREFIX . 'current_version', WC_GALLERY_VERSION );
343
-
344
- foreach ( $wc_gallery_options as $o ) {
345
- foreach ( $o['sections'] as $oo ) {
346
- foreach ( $oo['options'] as $ooo ) {
347
- if ( isset( $ooo['group'] ) && is_array( $ooo['group'] ) ) {
348
- foreach ( $ooo['group'] as $key => $oooo ) {
349
- $option_name = WC_GALLERY_PREFIX . $oooo['id'];
350
- add_option( $option_name, $oooo['default'] );
351
- }
352
- }
353
- else {
354
- $option_name = WC_GALLERY_PREFIX . $ooo['id'];
355
- add_option( $option_name, $ooo['default'] );
356
- }
357
- }
358
- }
359
- }
360
- }
361
- }
362
- add_action( 'init', 'wc_gallery_options_activation_hook' );
322
  }
323
  }
324
  add_action( 'admin_init', 'wc_gallery_remember_last_options_tab' );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
readme.txt CHANGED
@@ -46,6 +46,10 @@ Insert a gallery through your dashboard. You will see extra dropdown settings wh
46
 
47
  == Changelog ==
48
 
 
 
 
 
49
  ### Version 1.16
50
 
51
  * Bug fix on checking for defined images sizes
46
 
47
  == Changelog ==
48
 
49
+ ### Version 1.17
50
+
51
+ * Bug fix
52
+
53
  ### Version 1.16
54
 
55
  * Bug fix on checking for defined images sizes
wc-gallery.php CHANGED
@@ -5,7 +5,7 @@ Plugin URI: http://wordpresscanvas.com/features/gallery/
5
  Description: Extend WordPress galleries to display masonry gallery, carousel gallery, and slider gallery
6
  Author: Chris Baldelomar
7
  Author URI: http://webplantmedia.com/
8
- Version: 1.16
9
  License: GPLv2 or later
10
  */
11
 
@@ -13,7 +13,7 @@ function wc_gallery_using_woocommerce() {
13
  return in_array( 'woocommerce/woocommerce.php', apply_filters( 'active_plugins', get_option( 'active_plugins' ) ) );
14
  }
15
 
16
- define( 'WC_GALLERY_VERSION', '1.16' );
17
  define( 'WC_GALLERY_PREFIX', 'wc_gallery_' );
18
  define( '_WC_GALLERY_PREFIX', '_wc_gallery_' );
19
  define( 'WC_GALLERY_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
5
  Description: Extend WordPress galleries to display masonry gallery, carousel gallery, and slider gallery
6
  Author: Chris Baldelomar
7
  Author URI: http://webplantmedia.com/
8
+ Version: 1.17
9
  License: GPLv2 or later
10
  */
11
 
13
  return in_array( 'woocommerce/woocommerce.php', apply_filters( 'active_plugins', get_option( 'active_plugins' ) ) );
14
  }
15
 
16
+ define( 'WC_GALLERY_VERSION', '1.17' );
17
  define( 'WC_GALLERY_PREFIX', 'wc_gallery_' );
18
  define( '_WC_GALLERY_PREFIX', '_wc_gallery_' );
19
  define( 'WC_GALLERY_PLUGIN_URL', plugin_dir_url( __FILE__ ) );