wordpress-vanilla icon indicating copy to clipboard operation
wordpress-vanilla copied to clipboard

WordPress 4.9.7 and greater requires change in functions.php

Open donovandb opened this issue 7 years ago • 3 comments

vanilla-forums/functions.php (line 342) Change: if (!function_exists('get_currentuserinfo')) require_once ABSPATH . WPINC . '/pluggable.php'; get_currentuserinfo();

To if (!function_exists('wp_get_current_user')) require_once ABSPATH . WPINC . '/pluggable.php'; wp_get_current_user();

Which seems to fix a "Whoops" parseerror when using the "<forumURL>/sso" link.

donovandb avatar Aug 12 '18 17:08 donovandb

This still exists by the way. I updated the WP plug-in to the most recent version, then updated to Vanilla 3.0.. and still had to make this edit to get /sso to work.

donovandb avatar Jul 02 '19 18:07 donovandb

@donovandb Is the only thing blocking the integration with the latest versions of wordpress? We don't use the integration ourselves anymore which is why this issue wasn't noticed, but if it's such a simple fix it's worth doing.

charrondev avatar Jul 08 '19 14:07 charrondev

Yes, that's all that needs to be done.
I'm running: Wordpress 5.2.2 Vanilla 3.0

donovandb avatar Jul 08 '19 14:07 donovandb