From 6a88e1c2dcd43448f712d2241ac9c7ebc3614e70 Mon Sep 17 00:00:00 2001 From: Sara Arjona Date: Thu, 4 Jul 2024 10:00:05 +0200 Subject: [PATCH] [docs] Deprecation of the badges/newbadge.php page In MDL-43938, the badges/newbadge.php page has been deprecated and merged with badges/edit.php. --- docs/devupdate.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/docs/devupdate.md b/docs/devupdate.md index be4f2ebb5b..a312054f6c 100644 --- a/docs/devupdate.md +++ b/docs/devupdate.md @@ -9,6 +9,26 @@ tags: This page highlights the important changes that are coming in Moodle 4.5 for developers. +## Badges + +### Deprecated `badges/newbadge.php` + +The `badges/newbadge.php` and `badges/edit.php` pages have been combined to make things easier to maintain since both were pretty similar (`newbadge.php` for creating badges and `edit.php` for editing them). + +As a result, `badges/newbadge.php` is now deprecated and will be removed in Moodle 6.0. Please update your code to use badges/edit.php instead. + +:::info + +Visiting + +https://yourmoodlesite/badges/newbadge.php?id=x + +will now automatically redirect to + +https://yourmoodlesite/badges/edit.php?courseid=x&mode=new + +::: + ## Core changes ### Autoloader