Submitting the checkboxes gives an array with $key => '0' element for any unchecked options. This behavior should be considered in the _easy_social_render_widgets() function. Currently disabling the standard plugins (Twitter, Facebook, G+ or LinkedIn) is impossible. I recomend change the line 621 from:

      if (in_array($key, $enabled_widgets)) {

to:

      if (in_array($key, $enabled_widgets) && !empty($enabled_widgets[$key])) {

Comments

maarudth’s picture

same here, i think...
can not disable any of the Widgets.

it ignores the settings.

anyone else run into this?

edit -
@bak
i confirm your solution works.
Thanks!

pragnatek’s picture

Same problem.
Same fix.

aaron.r.carlton’s picture

Status: Active » Needs review
StatusFileSize
new481 bytes

Same issue - here is a patch with the above fix.

alexweber’s picture

Will take a look at this as soon as I can, thanks! :)

alexweber’s picture

Assigned: Unassigned » alexweber
Status: Needs review » Closed (fixed)

Thanks aaron, I've commited this with proper attribution: 288c700

Note, this is fixed in dev release, might take a couple days before 7.x-2.6 gets released