FIX updated the link for adding a chantier to remove the return_to parameter in artisans.php
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Antoine M 2025-04-07 15:49:42 +02:00
parent 8cf357ffce
commit 3c2f7012ed

View File

@ -179,7 +179,7 @@ function render_custom_chantier_box_content($post)
} else {
echo '<h3> Chantiers réalisés</h3>';
echo '<p class="no-results">Aucun chantier pour cette entreprise</p>';
echo '<a href="' . admin_url('post-new.php?post_type=chantiers&return_to=' . urlencode($return_to)) . '" class="new-chantier">Ajouter un chantier</a>';
echo '<a href="' . admin_url('post-new.php?post_type=chantiers') . '" class="new-chantier">Ajouter un chantier</a>';
}
}