Skip to content

Commit

Permalink
Fixed adding new options, fixes #23
Browse files Browse the repository at this point in the history
  • Loading branch information
tyrann0us committed Oct 31, 2016
1 parent 94ca631 commit a4efff1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 1 addition & 3 deletions inc/options.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@ public static function get( $field = '' ) {
foreach ( $options as $option => $array_values ) {
if ( isset( $options_db[$option] ) ) {
$options[$option]['value'] = $options_db[$option];
} else {
self::update( $options );
}
}
slickSliderCache::set( 'options', $options );
Expand Down Expand Up @@ -152,7 +150,7 @@ public static function prepareOptionsForOutput( $atts ) {
}

$options_slider_raw = array_filter( $atts, function( $value, $key ) {
return strpos( $key, 'sl_') === 0;
return strpos( $key, 'sl_') === 0;
}, true );

$options_slider = [];
Expand Down
3 changes: 2 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,9 @@ If you want, you can buy me a beer too. You’ll find the donation link on your

== Changelog ==

= 0.3 =
= 0.3 (10/31/2016) =
* Feature: Extended FAQ section in readme.txt
* Fix: Bug that prevented new options to be added (finally)
* Fix: Minor tweaks in readme.txt

= 0.2 (10/23/2016) =
Expand Down

0 comments on commit a4efff1

Please sign in to comment.