Skip to content

Commit e26803e

Browse files
committed
v2.4.4
1 parent 9fb1045 commit e26803e

File tree

2 files changed

+12
-5
lines changed

2 files changed

+12
-5
lines changed

class.sidebars.php

+10-4
Original file line numberDiff line numberDiff line change
@@ -218,9 +218,15 @@ public static function sidebar( $default = null, $logic = false, $return = false
218218
$sidebar = get_post_meta( $post->ID, 'white_dynamic_sidebar', true );
219219

220220
if( $return === true ){
221-
if ( $sidebar && is_active_sidebar( $sidebar ) ) return $sidebar;
222-
elseif( is_active_sidebar( $default ) ) return $default;
223-
else return;
221+
if ( is_active_sidebar( $sidebar ) ){
222+
return $sidebar;
223+
}
224+
elseif( is_active_sidebar( $default ) ){
225+
return $default;
226+
}
227+
else {
228+
return;
229+
}
224230
} else {
225231
if ( $logic === true ) {
226232
if ( $sidebar && is_active_sidebar( $sidebar ) ) {
@@ -269,7 +275,7 @@ public function meta_box_callback( $post ) {
269275

270276
echo '<p><strong><label>'.__('Choose Sidebar:','whitelabel').'</label></strong></p>';
271277
echo '<select name="sidebar" id="sidebar">';
272-
echo '<option>'.__('Choose Sidebar','whitelabel').'</option>';
278+
echo '<option value="">'.__('Choose Sidebar','whitelabel').'</option>';
273279
foreach ( $wp_registered_sidebars as $value ) {
274280
echo '<option value="'.$value['id'].'" '.selected($default_sidebar, $value['id']).'>'.$value['name'].'</option>';
275281
}

curly-extension.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Plugin Name: Curly Themes Extension
44
Plugin URI: http://demo.curlythemes.com
55
Description: Curly Themes Extension is a collection of Shortcodes, Widgets and Plugins. This plugin exclusive for Curly Themes
6-
Version: 2.4.3
6+
Version: 2.4.4
77
Author: Curly Themes
88
Author URI: http://www.curlythemes.com
99
*/
@@ -276,5 +276,6 @@ function load_shortcodes_admin_scripts() {
276276

277277
require_once( 'class.vc.php' );
278278
require_once( 'class.shortcodes.php' );
279+
require_once( 'class.sidebars.php' );
279280

280281
?>

0 commit comments

Comments
 (0)