Support » Plugin: Widget Logic » [Plugin: Widget Logic] Error First argument should be an array

Viewing 1 replies (of 1 total)
  • Plugin Contributor alanft

    (@alanft)

    W Logic and W classes use different, but related, ways of intercepting the control on the widget’s config page which I think are mutually incompatible.

    WL adds the ID to the widget’s params, WC replaces the params with just the ID, saving the params elsewhere. You could try expanding line 67 of WL to something like

    if (is_array($wp_registered_widget_controls[$id]['params']))
    	array_push($wp_registered_widget_controls[$id]['params'],$id);
    else if (isset($wp_registered_widget_controls[$id]['_params']))
    	array_push($wp_registered_widget_controls[$id]['_params'],$id);

    but i’ve not tried it as i’m way too lazy at the moment, sorry.

    All respect to the writer and users of WC, I don’t see what WC is for as widgets already have CSS classes, and blocking different classes together in the CSS code seems like less coding overhead.

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: Widget Logic] Error First argument should be an array’ is closed to new replies.