Skip to content

Commit

Permalink
block manager error problem fixed and changelog updated
Browse files Browse the repository at this point in the history
  • Loading branch information
Md. Anam Hossain committed Feb 28, 2020
1 parent ccd67f7 commit c0db3a7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
12 changes: 5 additions & 7 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -129,17 +129,15 @@ Absolutely not. You can create and manage your landing pages without any coding
1. composer install
2. npm Install
3. bower install
4.

== Changelog ==

= 2.2.8 =
- New - Global option panel in onepager dashboard.
- New - Settings menu in onepager dashboard.
- New - Blocks menu added and display all blocks in the dashboard.
- Improved - Show Update notification in sidebar of builder mood.
- Improved - Upgrade to pro panel added in builder mode.
- Improved - Exit to dashboard link added in builder siderbar footer.
- New: Introduced brand new global setting.
- New: Introduced page level setting.
- New: Introduced dedicated block menu in the dashboard.
- Improved: Show Update notification in the sidebar.
- Improved: New exit to dashboard option.

= 2.2.7 =
- Fix: Rating notification style in dashboard.
Expand Down
6 changes: 3 additions & 3 deletions src/Onepager/Block/BlockManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ class BlockManager {

public function __construct( ConfigTransformer $configTransformer, Collection $blocksCollection ) {
$op_settings_panel = [];
$op_settings_panel['general'] = get_option('op_settings_general');
$op_settings_panel['styles']['color'] = get_option('op_setting_styles');
$op_settings_panel['advanced'] = get_option('op_setting_advanced');
$op_settings_panel['general'] = get_option('op_settings_general') ?: [];
$op_settings_panel['styles']['color'] = get_option('op_setting_styles') ?: [];
$op_settings_panel['advanced'] = get_option('op_setting_advanced') ?: [];
update_option( 'onepager', $op_settings_panel ); // data comes from setting option panel of onepager dashboard

$this->configTransformer = $configTransformer;
Expand Down

0 comments on commit c0db3a7

Please sign in to comment.