• Resolved ubro

    (@ubro)


    After upgrading wonderplugin slider to the version 1.5 there is a warning at all textblocks:
    Warning: Invalid argument supplied for foreach() in /home/httpd/vhosts/xxxxxxxx/xxxxxxxxxx/wp-content/plugins/reusable-text-blocks/text-blocks.php on line 324

    https://wordpress.org/plugins/reusable-text-blocks/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Hal Gatewood

    (@halgatewood)

    Thanks. I’ll push through a quick update to fix this!

    abda53

    (@abda53)

    Saw this too.

    on line 324 you can make it

    if(is_array($atts)){
    		foreach( $atts as $slug => $att )
    		{
    			if( in_array($att, $dont_detect) ) continue;
    			$content = str_replace($replace_front . $slug . $replace_back, $atts[$slug], $content);
    		}
    	}
    Plugin Author Hal Gatewood

    (@halgatewood)

    Version 1.5.1 does basically the same thing.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Invalid argument supplied for foreach()’ is closed to new replies.