Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions scormcloud/ajax.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
$action = $_POST['action'];

global $current_user;
get_currentuserinfo();
wp_get_current_user();

switch($action)
{
Expand Down Expand Up @@ -264,7 +264,7 @@

global $current_user;
global $wpdb;
get_currentuserinfo();
wp_get_current_user();

$user_email = $current_user->user_email;
if (!($user_first_name = $current_user->user_firstname) || strlen($user_first_name) < 1){
Expand Down Expand Up @@ -358,7 +358,7 @@

global $current_user;
global $wpdb;
get_currentuserinfo();
wp_get_current_user();

$regid = $_POST['regid'];
$returnUrl = $_POST['returnurl'];
Expand Down Expand Up @@ -582,7 +582,7 @@
$appId = ScormCloudPlugin::get_wp_option('scormcloud_appid');
global $current_user;
global $wpdb;
get_currentuserinfo();
wp_get_current_user();

$user_email = $current_user->user_email;
if (!($user_first_name = $current_user->user_firstname) || strlen($user_first_name) < 1){
Expand Down
2 changes: 1 addition & 1 deletion scormcloud/scormcloudcontenthandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public static function make_blog_entry($content){

global $current_user;
global $wpdb;
get_currentuserinfo();
wp_get_current_user();

//if not logged in
if(!isset($current_user->user_login) || $current_user->user_login == '')
Expand Down
2 changes: 1 addition & 1 deletion scormcloud/ui/scormcloudcatalogwidget.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ function widget($args, $instance){
//echo '<h2>SCORM Cloud Courses</h2>';
global $current_user;
global $wpdb;
get_currentuserinfo();
wp_get_current_user();

$coursesFilter = (ScormCloudPlugin::is_network_managed() && get_site_option('scormcloud_sharecourses') !== '1') ? $GLOBALS['blog_id']."-.*" : null ;
$ScormService = ScormCloudPlugin::get_cloud_service();
Expand Down
2 changes: 1 addition & 1 deletion scormcloud/ui/scormcloudregistrationswidget.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ function widget($args, $instance){
//echo '<h2>SCORM Course Registrations</h2>';
global $current_user;
global $wpdb;
get_currentuserinfo();
wp_get_current_user();

if(!is_user_logged_in())
{
Expand Down