Commits

moumar committed 4167e9e Draft

redirect fix

Comments (0)

Files changed (1)

moumar_eval_form.php

     $category_ids[] = $continent->term_id;
     $category_ids[] = get_term_by("name", "Evaluations " . $continent->name, "category")->term_id;
     wp_set_post_categories( $post_id, $category_ids);
-    http_redirect($MEF_REDIRECT_URL);
+    header("Location: $MEF_REDIRECT_URL");
   } else {
     echo "erreur à l'enregistrement du post";
   }