|
@@ 474-476 (lines=3) @@
|
| 471 |
|
$selected_lesson_course = get_post_meta( $post->ID, '_lesson_course', true ); |
| 472 |
|
} // End If Statement |
| 473 |
|
// Handle preselected course |
| 474 |
|
if ( isset( $_GET[ 'course_id' ] ) && ( 0 < absint( $_GET[ 'course_id' ] ) ) ) { |
| 475 |
|
$selected_lesson_course = absint( $_GET[ 'course_id' ] ); |
| 476 |
|
} // End If Statement |
| 477 |
|
// Get the Lesson Posts |
| 478 |
|
$post_args = array( 'post_type' => 'course', |
| 479 |
|
'posts_per_page' => -1, |
|
@@ 2143-2145 (lines=3) @@
|
| 2140 |
|
$course_title = ''; |
| 2141 |
|
$course_prerequisite = 0; |
| 2142 |
|
$course_category = 0; |
| 2143 |
|
if ( isset( $data[ 'course_id' ] ) && ( 0 < absint( $data[ 'course_id' ] ) ) ) { |
| 2144 |
|
$course_id = absint( $data[ 'course_id' ] ); |
| 2145 |
|
} // End If Statement |
| 2146 |
|
if ( isset( $data[ 'course_title' ] ) && ( '' != $data[ 'course_title' ] ) ) { |
| 2147 |
|
$course_title = $data[ 'course_title' ]; |
| 2148 |
|
} // End If Statement |