Ejemplo n.º 1
0
 function test_wpas_edit_reply()
 {
     $ticket_id = wpas_insert_ticket($this->ticket_data, false);
     $reply_id = wpas_insert_reply($this->reply_data, $ticket_id);
     $edited = wpas_edit_reply($reply_id, 'Vivamus aliquet elit ac nisl.');
     $this->assertInternalType('int', $edited);
 }
/**
 * Edit a reply with Ajax
 *
 * @return void
 */
function wpas_edit_reply_ajax()
{
    $ID = wpas_edit_reply();
    if (false === $ID || is_wp_error($ID)) {
        $ID = $ID->get_error_message();
    }
    echo $ID;
    die;
}