Support » Plugin: Widget Wrangler » function ww_get_all_widget() returns NULL with no widgets

  • Resolved hlant

    (@hlant)


    Running plugin version 1.5.2
    Network multi-site install with Multilingual Press plugin.

    When saving a page in a website without any published widgets, the following error occurs:

    Warning: Invalid argument supplied for foreach() in /wp-content/plugins/widget-wrangler/admin/widget-wrangler.admin.php on line 274

    After some investigation, function ww_get_all_widgets() was returning null when it did not find any published widgets, instead of an empty array.

    Recommend adding the following line into widget-wrangler.php within function ww_get_all_widgets():

    $widgets = array();

    https://wordpress.org/plugins/widget-wrangler/

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘function ww_get_all_widget() returns NULL with no widgets’ is closed to new replies.