|
@@ 2228-2230 (lines=3) @@
|
| 2225 |
|
$question_category = $data[ 'question_category' ]; |
| 2226 |
|
} // End If Statement |
| 2227 |
|
|
| 2228 |
|
if ( isset( $data[ 'question_id' ] ) && ( 0 < absint( $data[ 'question_id' ] ) ) ) { |
| 2229 |
|
$question_id = absint( $data[ 'question_id' ] ); |
| 2230 |
|
} // End If Statement |
| 2231 |
|
if ( isset( $data[ 'question' ] ) && ( '' != $data[ 'question' ] ) ) { |
| 2232 |
|
$question_text = $data[ 'question' ]; |
| 2233 |
|
} // End If Statement |
|
@@ 2450-2452 (lines=3) @@
|
| 2447 |
|
|
| 2448 |
|
// Get which question to delete |
| 2449 |
|
$question_id = 0; |
| 2450 |
|
if ( isset( $data[ 'question_id' ] ) && ( 0 < absint( $data[ 'question_id' ] ) ) ) { |
| 2451 |
|
$question_id = absint( $data[ 'question_id' ] ); |
| 2452 |
|
} // End If Statement |
| 2453 |
|
// Delete the question |
| 2454 |
|
if ( 0 < $question_id ) { |
| 2455 |
|
$quizzes = get_post_meta( $question_id, '_quiz_id', false ); |