aboutsummaryrefslogtreecommitdiffstats
path: root/RELEASE-NOTES-1.39
diff options
context:
space:
mode:
authorSiddharth VP <siddharthvp@gmail.com>2022-08-14 21:19:20 +0530
committerSiddharth VP <siddharthvp@gmail.com>2022-08-26 01:22:10 +0530
commit3af9036b99c6a3f1a6951fbacf73936b3065c8e6 (patch)
tree9239797e14ba327363a294cd61437aa326dd3e2f /RELEASE-NOTES-1.39
parent92021fe88ec7238469fc56656ff889069ef0cd1a (diff)
downloadmediawikicore-3af9036b99c6a3f1a6951fbacf73936b3065c8e6.tar.gz
mediawikicore-3af9036b99c6a3f1a6951fbacf73936b3065c8e6.zip
Customise error message for invalid JSON, add hook
When invalid JSON is being saved, change the error message from the generic "invalid-content-data" to "invalid-json-data" with the specific error passed as param. Allow extensions to hook into JSON validation, enabling them to apply additional validations for specific JSON files such as MediaWiki:*.json config files. The page identity is passed to the hook. Bug: T313254 Change-Id: If9590c29ed0b871b03a3db8f13e72ee9cfdd7e2b
Diffstat (limited to 'RELEASE-NOTES-1.39')
-rw-r--r--RELEASE-NOTES-1.392
1 files changed, 2 insertions, 0 deletions
diff --git a/RELEASE-NOTES-1.39 b/RELEASE-NOTES-1.39
index 8125154c5592..14336d38ca3d 100644
--- a/RELEASE-NOTES-1.39
+++ b/RELEASE-NOTES-1.39
@@ -91,6 +91,8 @@ For notes on 1.38.x and older releases, see HISTORY.
* …
=== New developer features in 1.39 ===
+* JsonValidateSaveHook has been added to allow extensions to set additional
+ pre-save validations for specific JSON pages (T313254)
* …
=== External library changes in 1.39 ===