Changeset 538201
- Timestamp:
- 04/30/2012 03:33:35 PM (14 years ago)
- Location:
- vanilla-forums/trunk
- Files:
-
- 4 edited
-
functions.php (modified) (4 diffs)
-
hooks.php (modified) (1 diff)
-
plugin.php (modified) (3 diffs)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
vanilla-forums/trunk/functions.php
r535240 r538201 3 3 * Utility & hook functions. 4 4 */ 5 6 function vf_check_request() { 7 if (isset($_GET['VFRequest'])) { 8 require dirname(__FILE__).'/sso.php'; 9 } 10 } 5 11 6 12 … … 300 306 301 307 if (!function_exists('get_currentuserinfo')) 302 require (ABSPATH . WPINC . '/pluggable.php');308 require_once ABSPATH . WPINC . '/pluggable.php'; 303 309 get_currentuserinfo(); 304 310 305 311 $user = array(); 306 312 if ($current_user->ID != '') { … … 311 317 $user['wp_nonce'] = wp_create_nonce('log-out'); 312 318 319 // Do some fudgery to grab the photo url. 313 320 try { 314 321 $avatar = new SimpleXMLElement(get_avatar($current_user->ID)); … … 317 324 } catch (Exception $Ex) { 318 325 } 319 } 326 327 // Add the user's roles to the SSO. 328 if (isset($current_user->roles)) { 329 $user['roles'] = implode(',', $current_user->roles); 330 } else { 331 $user['roles'] = null; 332 } 333 // $user['_user'] = $current_user; 334 } 335 336 // Allow other plugins to modify the user. 337 $user = apply_filters('vf_get_user', $user); 320 338 321 339 return $user; -
vanilla-forums/trunk/hooks.php
r533673 r538201 35 35 // Add our js to update the comment count 36 36 add_action('wp_footer', 'vf_comment_count_js'); 37 add_action('wp_loaded', 'vf_check_request'); -
vanilla-forums/trunk/plugin.php
r535240 r538201 4 4 Plugin URI: http://vanillaforums.org/addons/ 5 5 Description: Integrates Vanilla Forums with Wordpress: embedded blog comments, embedded forum, single sign on, and Wordpress widgets. 6 Version: 1.1. 86 Version: 1.1.9 7 7 Author: Mark O'Sullivan 8 8 Author URI: http://www.vanillaforums.org/ … … 46 46 1.1.8 47 47 - Fixed sso photourl. 48 1.1.9 49 - Made the sso pluggable. 48 50 49 51 Copyright 2010 Vanilla Forums Inc … … 63 65 include_once(VF_PLUGIN_PATH.'/embed.php'); 64 66 include_once(VF_PLUGIN_PATH.'/widgets.php'); 65 include_once(VF_PLUGIN_PATH.'/sso.php');67 //include_once(VF_PLUGIN_PATH.'/sso.php'); 66 68 include_once(VF_PLUGIN_PATH.'/hooks.php'); -
vanilla-forums/trunk/readme.txt
r535240 r538201 4 4 Requires at least: 3 5 5 Tested up to: 3.3.1 6 Stable tag: 1.1. 86 Stable tag: 1.1.9 7 7 8 8 == Description ==
Note: See TracChangeset
for help on using the changeset viewer.