Thanks for the solution. I was getting each sidebar repeating exactly 4 times on every page till I too followed this replacement –
——————————————–
if ($post->handle || isset($handled_already[$host])) {
to
if ($post->handle) {
——————————————–
I hope this doesn’t break again if I update it!