PluginProbe
Tutor LMS – eLearning and online course solution / 3.7.2
Tutor LMS – eLearning and online course solution v3.7.2
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/Shortcode.php +3 -12 4.0.13.7.2 View file →
@@ -41,19 +41,10 @@
41 41 /**
42 42 * Register hooks
43 43 *
44 44 * @since 1.0.0
45 - * @since 3.8.0
46 - *
47 - * @param bool $register_hooks register hooks or not.
48 - *
49 - * @return void
50 45 */
51 - public function __construct( $register_hooks = true ) {
52 - if ( ! $register_hooks ) {
53 - return;
54 - }
55 -
46 + public function __construct() {
56 47 add_shortcode( 'tutor_student_registration_form', array( $this, 'student_registration_form' ) );
57 48 add_shortcode( 'tutor_dashboard', array( $this, 'tutor_dashboard' ) );
58 49 add_shortcode( 'tutor_instructor_registration_form', array( $this, 'instructor_registration_form' ) );
59 50 add_shortcode( 'tutor_course', array( $this, 'tutor_course' ) );
@@ -406,9 +397,9 @@
406 397 $course_taxonomy = CourseModel::COURSE_CATEGORY;
407 398
408 399 $remaining_categories = $wpdb->get_var(
409 400 $wpdb->prepare(
410 - "SELECT
401 + "SElECT
411 402 COUNT(*) AS total
412 403 FROM {$wpdb->terms} AS term
413 404 INNER JOIN {$wpdb->term_taxonomy} AS taxonomy
414 405 ON taxonomy.term_id = term.term_id AND taxonomy.taxonomy = %s
@@ -421,9 +412,9 @@
421 412 );
422 413
423 414 $add_categories = $wpdb->get_results(
424 415 $wpdb->prepare(
425 - "SELECT
416 + "SElECT
426 417 *
427 418 FROM {$wpdb->terms} term
428 419 INNER JOIN {$wpdb->term_taxonomy} as taxonomy
429 420 ON taxonomy.term_id = term.term_id AND taxonomy.taxonomy = %s