OK, for anybody stumbling upon the same issue, actually writing it out makes it work – so if you have somehting like:
public function update($new_instance, $old_instance)
{
$instance = $old_instance;
'foreach($instance as $key => $value) {
$instance[$key] = strip_tags( $new_instance[$key]);
}
using the “written out form” like this:
public function update($new_instance, $old_instance)
{
$instance = $old_instance;
$instance['title'] = strip_tags( $new_instance['title']);
$instance['Headline'] = strip_tags( $new_instance['Headline']);
...
}'
works – although i do not have a clue why this works like that, as the foreach method should actually do the same – or am i having a thinking problem there ?