You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
isset( $this->options['shared'] ) // Or our shared option is set.
&& 1 === $this->options['shared']
)
) {
returntrue;
}
returnfalse;
}
But this check will also return true in a single site installation when the option still exists. This will cause a fatal error because switch_to_blog() doesn't exist.
Describe the bug
When the plugin is used on a multisite an option to share avatars is available. This is used in
simple-local-avatars/includes/class-simple-local-avatars.php
Lines 204 to 217 in 801cc93
But this check will also return true in a single site installation when the option still exists. This will cause a fatal error because
switch_to_blog()
doesn't exist.simple-local-avatars/includes/class-simple-local-avatars.php
Lines 359 to 362 in 801cc93
Steps to Reproduce
Screenshots, screen recording, code snippet
No response
Environment information
No response
WordPress information
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: