Skip to content

Commit

Permalink
fixed sonar cloud issue
Browse files Browse the repository at this point in the history
  • Loading branch information
zubairraeen committed Nov 1, 2023
1 parent a8dae20 commit f6f7467
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion js/qsm-admin.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
};
Expand Down
2 changes: 0 additions & 2 deletions php/admin/options-page-questions-tab.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit f6f7467

Please sign in to comment.