diff --git a/js/qsm-admin.js b/js/qsm-admin.js index 9201a78ab..2ea8aafd9 100644 --- a/js/qsm-admin.js +++ b/js/qsm-admin.js @@ -3249,7 +3249,6 @@ var import_button; var new_category_data = { action: 'save_new_category', name: new_category, - quiz_id: qsmQuestionSettings.quizID, nonce: qsmQuestionSettings.saveNonce, parent: parent_category }; diff --git a/php/admin/options-page-questions-tab.php b/php/admin/options-page-questions-tab.php index 61be2b601..f70491607 100644 --- a/php/admin/options-page-questions-tab.php +++ b/php/admin/options-page-questions-tab.php @@ -1068,8 +1068,6 @@ function qsm_delete_question_from_database() { function qsm_save_new_category() { $category = isset( $_POST['name'] ) ? sanitize_text_field( wp_unslash( $_POST['name'] ) ) : ''; $parent = isset( $_POST['parent'] ) ? intval( $_POST['parent'] ) : ''; - $user_id = get_current_user_id(); - $quiz_id = isset( $_POST['quiz_id'] ) ? intval( $_POST['quiz_id'] ) : 0; $parent = ( -1 == $parent ) ? 0 : $parent; if ( isset( $_POST['nonce'] ) && wp_verify_nonce( sanitize_text_field( wp_unslash( $_POST['nonce'] ) ), 'ajax-nonce-sandy-page' ) ) { $term_array = wp_insert_term(