After Storefront theme update parse error on the site
-
Hi!
I updated to the latest version Storefront theme and getting now following parse error on the site&admin. I′m using Storefront`s childtheme.
Parse error: syntax error, unexpected T_FUNCTION in /mysite/htdocs/wp-content/themes/storefront/inc/customizer/class-storefront-customizer.php on line 74
Line 74 is following code, code validator gives an error too but as I don`t know php, have no idea how to fix it…
public function default_theme_mod_values() { foreach ( Storefront_Customizer::get_storefront_default_setting_values() as $mod => $val ) { add_filter( 'theme_mod_' . $mod, function( $setting ) use ( $val ) { return $setting ? $setting : $val; }, 10 ); } }
[moderated to add ‘code’ style to the code]
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘After Storefront theme update parse error on the site’ is closed to new replies.