PluginProbe
Tutor LMS – eLearning and online course solution / 1.5.0
Tutor LMS – eLearning and online course solution v1.5.0
4.0.7 4.0.6 4.0.5 4.0.4 4.0.3 4.0.2 4.0.1 4.0.0 3.9.15 3.9.14 3.9.13 3.9.12 3.9.11 trunk 1.0.0 1.0.0-alpha 1.0.1 1.0.2 1.0.3 1.0.4 1.0.5 1.0.6 1.0.7 1.0.8 1.0.9 All 191 releases
← All changes | classes/Course.php +0 -2 1.4.91.5.0 View file →
@@ -672,10 +672,8 @@
672 672 $user_ID = (int) tutor_utils()->avalue_dot('user_ID', $postarr);
673 673 if ($user_ID){
674 674 $data['post_author'] = $user_ID;
675 675 }else{
676 - global $wpdb;
677 -
678 676 $post_ID = (int) tutor_utils()->avalue_dot('ID', $postarr);
679 677 $post_author = (int) $wpdb->get_var("SELECT post_author FROM {$wpdb->posts} WHERE ID = {$post_ID} ");
680 678
681 679 $data['post_author'] = $post_author;