PluginProbe
Tutor LMS – eLearning and online course solution / 2.2.1
Tutor LMS – eLearning and online course solution v2.2.1
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/Tutor_Base.php +5 -31 trunk2.2.1 View file →
@@ -47,35 +47,8 @@
47 47 */
48 48 public $lesson_base_permalink;
49 49
50 50 /**
51 - * Course base permalink
52 - *
53 - * @since 2.5.0
54 - *
55 - * @var string
56 - */
57 - public $course_base_permalink;
58 -
59 - /**
60 - * Quiz permalink
61 - *
62 - * @since 2.6.0
63 - *
64 - * @var string
65 - */
66 - public $quiz_base_permalink;
67 -
68 - /**
69 - * Assignment permalink
70 - *
71 - * @since 2.6.0
72 - *
73 - * @var string
74 - */
75 - public $assignment_base_permalink;
76 -
77 - /**
78 51 * Register hooks
79 52 *
80 53 * @since 1.0.0
81 54 */
@@ -83,12 +56,13 @@
83 56
84 57 $this->course_post_type = tutor()->course_post_type;
85 58 $this->lesson_post_type = tutor()->lesson_post_type;
86 59
87 - $this->course_base_permalink = tutor_utils()->get_option( 'course_permalink_base', 'courses' );
88 - $this->lesson_base_permalink = tutor_utils()->get_option( 'lesson_permalink_base', 'lessons' );
89 - $this->quiz_base_permalink = tutor_utils()->get_option( 'quiz_permalink_base', 'quizzes' );
90 - $this->assignment_base_permalink = tutor_utils()->get_option( 'assignment_permalink_base', 'assignments' );
60 + // Lesson Permalink.
61 + $this->lesson_base_permalink = tutor_utils()->get_option( 'lesson_permalink_base' );
62 + if ( ! $this->lesson_base_permalink ) {
63 + $this->lesson_base_permalink = $this->lesson_post_type;
64 + }
91 65
92 66 }
93 67
94 68 }