SiteOrigin Widgets Bundle - Version 1.5.11

Version Description

  • April 11 2016 =
  • Fixed features widget container shape setting.
Download this release

Release Info

Developer gpriday
Plugin Icon 128x128 SiteOrigin Widgets Bundle
Version 1.5.11
Comparing to
See all releases

Code changes from version 1.5.10 to 1.5.11

base/inc.php CHANGED
@@ -180,6 +180,7 @@ function siteorigin_widget_search_posts_action(){
180
  ) );
181
  unset($post_types['attachment']);
182
 
 
183
 
184
  global $wpdb;
185
  if( !empty($_GET['query']) ) {
@@ -200,7 +201,7 @@ function siteorigin_widget_search_posts_action(){
200
  LIMIT 20
201
  ", ARRAY_A );
202
 
203
- echo json_encode( $results );
204
  wp_die();
205
  }
206
  add_action('wp_ajax_so_widgets_search_posts', 'siteorigin_widget_search_posts_action');
180
  ) );
181
  unset($post_types['attachment']);
182
 
183
+ $post_types = apply_filters( 'siteorigin_widgets_search_posts_post_types', $post_types );
184
 
185
  global $wpdb;
186
  if( !empty($_GET['query']) ) {
201
  LIMIT 20
202
  ", ARRAY_A );
203
 
204
+ echo json_encode( apply_filters( 'siteorigin_widgets_search_posts_results', $results ) );
205
  wp_die();
206
  }
207
  add_action('wp_ajax_so_widgets_search_posts', 'siteorigin_widget_search_posts_action');
base/inc/fields/measurement.class.php CHANGED
@@ -80,8 +80,7 @@ class SiteOrigin_Widget_Field_Measurement extends SiteOrigin_Widget_Field_Text_I
80
  unset( $instance[ $unit_name ] );
81
  }
82
 
83
- $value = ( $value === '' ) ? false : (float) $value;
84
- $value .= $unit;
85
  return $value;
86
  }
87
 
80
  unset( $instance[ $unit_name ] );
81
  }
82
 
83
+ $value = ( $value === '' ) ? false : ( (float) $value ) . $unit;
 
84
  return $value;
85
  }
86
 
base/inc/fields/siteorigin-widget-field-class-loader.class.php CHANGED
@@ -73,7 +73,7 @@ class SiteOrigin_Widget_Field_Class_Loader {
73
  /**
74
  * Initialize and register the class field loader
75
  */
76
- function extend(){
77
  $class_prefixes = apply_filters( 'siteorigin_widgets_field_class_prefixes', array() );
78
  $this->add_class_prefixes( $class_prefixes );
79
 
73
  /**
74
  * Initialize and register the class field loader
75
  */
76
+ public function extend(){
77
  $class_prefixes = apply_filters( 'siteorigin_widgets_field_class_prefixes', array() );
78
  $this->add_class_prefixes( $class_prefixes );
79
 
readme.txt CHANGED
@@ -2,8 +2,8 @@
2
  Tags: bundle, widget, button, slider, image, carousel, price table, google maps, tinymce, social links
3
  Requires at least: 3.9
4
  Tested up to: 4.4.2
5
- Stable tag: 1.5.9
6
- Build time: 2016-04-06T08:37:03+02:00
7
  License: GPLv3 or later
8
  Contributors: gpriday, braam-genis
9
 
@@ -51,6 +51,9 @@ The SiteOrigin Widgets Bundle is the perfect platform to build widgets for your
51
 
52
  == Changelog ==
53
 
 
 
 
54
  = 1.5.10 - April 5 2016 =
55
  * Added Icon widget.
56
  * Moved widget form arrays into separate functions to improve performance.
2
  Tags: bundle, widget, button, slider, image, carousel, price table, google maps, tinymce, social links
3
  Requires at least: 3.9
4
  Tested up to: 4.4.2
5
+ Stable tag: 1.5.10
6
+ Build time: 2016-04-11T15:16:36+02:00
7
  License: GPLv3 or later
8
  Contributors: gpriday, braam-genis
9
 
51
 
52
  == Changelog ==
53
 
54
+ = 1.5.11 - April 11 2016 =
55
+ * Fixed features widget container shape setting.
56
+
57
  = 1.5.10 - April 5 2016 =
58
  * Added Icon widget.
59
  * Moved widget form arrays into separate functions to improve performance.
so-widgets-bundle.php CHANGED
@@ -2,7 +2,7 @@
2
  /*
3
  Plugin Name: SiteOrigin Widgets Bundle
4
  Description: A collection of all widgets, neatly bundled into a single plugin. It's also a framework to code your own widgets on top of.
5
- Version: 1.5.10
6
  Text Domain: so-widgets-bundle
7
  Domain Path: /languages
8
  Author: SiteOrigin
@@ -12,7 +12,7 @@ License: GPL3
12
  License URI: https://www.gnu.org/licenses/gpl-3.0.txt
13
  */
14
 
15
- define('SOW_BUNDLE_VERSION', '1.5.10');
16
  define('SOW_BUNDLE_JS_SUFFIX', '.min');
17
  define('SOW_BUNDLE_BASE_FILE', __FILE__);
18
 
2
  /*
3
  Plugin Name: SiteOrigin Widgets Bundle
4
  Description: A collection of all widgets, neatly bundled into a single plugin. It's also a framework to code your own widgets on top of.
5
+ Version: 1.5.11
6
  Text Domain: so-widgets-bundle
7
  Domain Path: /languages
8
  Author: SiteOrigin
12
  License URI: https://www.gnu.org/licenses/gpl-3.0.txt
13
  */
14
 
15
+ define('SOW_BUNDLE_VERSION', '1.5.11');
16
  define('SOW_BUNDLE_JS_SUFFIX', '.min');
17
  define('SOW_BUNDLE_BASE_FILE', __FILE__);
18
 
widgets/features/features.php CHANGED
@@ -35,8 +35,6 @@ class SiteOrigin_Widget_Features_Widget extends SiteOrigin_Widget {
35
  }
36
 
37
  function initialize_form(){
38
- $form['container_shape']['options'] = include dirname( __FILE__ ) . '/inc/containers.php';
39
-
40
  $image_size_configs = $this->get_image_sizes();
41
  $sizes = array();
42
  foreach( $image_size_configs as $name => $size_config) {
@@ -187,7 +185,7 @@ class SiteOrigin_Widget_Features_Widget extends SiteOrigin_Widget {
187
  'type' => 'select',
188
  'label' => __('Container shape', 'so-widgets-bundle'),
189
  'default' => 'round',
190
- 'options' => array(),
191
  ),
192
 
193
  'container_size' => array(
35
  }
36
 
37
  function initialize_form(){
 
 
38
  $image_size_configs = $this->get_image_sizes();
39
  $sizes = array();
40
  foreach( $image_size_configs as $name => $size_config) {
185
  'type' => 'select',
186
  'label' => __('Container shape', 'so-widgets-bundle'),
187
  'default' => 'round',
188
+ 'options' => include dirname( __FILE__ ) . '/inc/containers.php',
189
  ),
190
 
191
  'container_size' => array(