Closed ocean90 closed 7 years ago
Fatal error: Uncaught Error: Call to undefined function switch_to_blog() in /var/www/wordpress-playground/wordpress/content/plugins/simpleshib/simpleshib.php:145 Stack trace: #0 /var/www/wordpress-playground/wordpress/content/plugins/simpleshib/simpleshib.php(110): SimpleShib->get_initiator_url('https://playgro...') #1 /var/www/wordpress-playground/wordpress/wp/wp-includes/class-wp-hook.php(298): SimpleShib->authenticate_or_redirect(NULL, '', '') #2 /var/www/wordpress-playground/wordpress/wp/wp-includes/plugin.php(203): WP_Hook->apply_filters(NULL, Array) #3 /var/www/wordpress-playground/wordpress/wp/wp-includes/pluggable.php(532): apply_filters('authenticate', NULL, '', '') #4 /var/www/wordpress-playground/wordpress/wp/wp-includes/user.php(85): wp_authenticate('', '') #5 /var/www/wordpress-playground/wordpress/wp/wp-login.php(790): wp_signon(Array, true) #6 {main} thrown in /var/www/wordpress-playground/wordpress/content/plugins/simpleshib/simpleshib.php on line 145
The switch_to_blog() isn't necessary here. It can be replaced with a call to get_site_url().
switch_to_blog()
get_site_url()
The
switch_to_blog()
isn't necessary here. It can be replaced with a call toget_site_url()
.