I have modified a plugin I wrote with an ajax call. It was working in an old Wordpress version but not in the 4.3.1.
This is my code
$error = false;
foreach($domande as $domanda) {
if (!isset($risposte[$domanda->ID])) {
$error = true;
$ret['error']['missingAnswer'][] = sprintf("Manca risposta alla domanda %s", $_REQUEST['ixd'][$domanda->ID]);
continue;
}
$test->addEsitoCarriera($domanda->Carriera_val*$risposte[$domanda->ID]);
$test->addEsitoAutonomia($domanda->Autonomia_val*$risposte[$domanda->ID]);
$test->addEsitoComodita($domanda->Comodita_val*$risposte[$domanda->ID]);
$test->addEsitoCrescita($domanda->Crescita_val*$risposte[$domanda->ID]);
$test->addEsitoSicurezza($domanda->Sicurezza_val*$risposte[$domanda->ID]);
}
Only the 'missingAnswer' part is not working. What I'm doing wrong? Thanks.
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire