Skip to content
Browse files

Fix sidebar swapping option bug.

Setting the post and page sidebar to use the same widgets as the
main sidebar was irreversible: unticking the checkbox and saving
the option had no effect. This commit fixes that bug so the feature
works correctly.

Thanks to Andrey Bazhan for reporting this issue.
  • Loading branch information...
1 parent cfee706 commit 3065c1b00c1921988771516c6ab6930d85453c0b @beastaugh committed
Showing with 2 additions and 0 deletions.
  1. +2 −0 library/classes/options.php
View
2 library/classes/options.php
@@ -113,6 +113,8 @@ function tarski_options_update() {
if (isset($_POST['sidebar_pp_type']) && $_POST['sidebar_pp_type'] == "main") {
$this->sidebar_pp_type = "main";
+ } else {
+ $this->sidebar_pp_type = "";
}
$this->display_title = (bool) $_POST['display_title'];

0 comments on commit 3065c1b

Please sign in to comment.
Something went wrong with that request. Please try again.