| @@ -8,8 +8,12 @@ | ||
| 8 | 8 | */ |
| 9 | 9 | |
| 10 | 10 | defined( 'ABSPATH' ) || exit(); |
| 11 | 11 | |
| 12 | +if ( ! isset( $lesson ) ) { | |
| 13 | + return; | |
| 14 | +} | |
| 15 | + | |
| 12 | 16 | $title = $lesson->get_title( 'display' ); |
| 13 | 17 | |
| 14 | 18 | if ( ! $title ) { |
| 15 | 19 | return; |
| @@ -15,5 +19,5 @@ | ||
| 15 | 19 | return; |
| 16 | 20 | } |
| 17 | 21 | ?> |
| 18 | 22 | |
| 19 | -<h3 class="course-item-title question-title"><?php echo esc_html( $title ); ?></h3> | |
| 23 | +<h1 class="course-item-title lesson-title"><?php echo esc_html( $title ); ?></h1> | |