The error is being raised because no user is logged in. Before it would raise just a warning, but now is a fatal error and it breaks wp-cli, among other things.
To fix until the developer patches on the next upcoming upgrade, just add the following 3 lines right after line 24 (on the file svg-support/functions/mime-types.php):
//returns if user is not logged in
if ($user->ID==0) {
return $mimes;
}
The error is being raised because no user is logged in. Before it would raise just a warning, but now is a fatal error and it breaks wp-cli, among other things.
To fix until the developer patches on the next upcoming upgrade, just add the following 3 lines right after line 24 (on the file svg-support/functions/mime-types.php):
//returns if user is not logged in
if ($user->ID==0) {
return $mimes;
}
Mabio