mediawiki-extensions-AbuseF.../includes/Hooks
Kosta Harlan b93543ef00 ConfirmEditHandler: Use SimpleCaptcha API to invoke CAPTCHA display
Why:

- The previous attempt to integrate AbuseFilter with ConfirmEdit set
  a flag on the request object
  (I110a5f5321649dcf85993a0c209ab70b9886057c) didn't work in WMF
  production because in WMF, we load ConfirmEdit first, followed by
  AbuseFilter. Therefore any flag set in an AbuseFilter hook is ignored
  by ConfirmEdit

What:

- Remove implementation of ConfirmEditTriggersCaptchaHook, as this does
  not work when AbuseFilter is loaded after ConfirmEdit.
- Repurpose onConfirmEditTriggersCaptcha to handle non-edit actions only
- Implement the EditFilterMergedContent hook and call SimpleCaptcha's
  public confirmEditMerged method if CaptchaConsequence has specified
  that a CAPTCHA should be displayed, and if the CAPTCHA has not already
  been solved

Soft-Depends-On: Idc47bdae8007da938f31e1c0f33e9be4813f41d7
Bug: T20110
Change-Id: I7dd3a7c41606dcf5123518c2d3d0f4355f5edfd3
2024-06-26 16:07:40 +00:00
..
Handlers ConfirmEditHandler: Use SimpleCaptcha API to invoke CAPTCHA display 2024-06-26 16:07:40 +00:00
AbuseFilterAlterVariablesHook.php Use namespaced classes 2023-12-10 23:03:12 +01:00
AbuseFilterBuilderHook.php Move documentation from hooks.txt to hook interfaces 2021-03-31 21:50:30 +02:00
AbuseFilterComputeVariableHook.php Fix various typos and documentation issues 2023-09-04 12:55:17 +02:00
AbuseFilterContentToStringHook.php Move documentation from hooks.txt to hook interfaces 2021-03-31 21:50:30 +02:00
AbuseFilterCustomActionsHook.php
AbuseFilterDeprecatedVariablesHook.php Fix method names of hook interfaces 2021-03-09 17:03:14 +00:00
AbuseFilterFilterActionHook.php Use namespaced Title 2023-08-19 19:49:36 +02:00
AbuseFilterGenerateGenericVarsHook.php Clean up line indent with mixed tabs and whitespaces 2022-07-31 16:34:07 +02:00
AbuseFilterGenerateTitleVarsHook.php Use namespaced Title 2023-08-19 19:49:36 +02:00
AbuseFilterGenerateUserVarsHook.php Use namespaced classes 2023-12-10 23:03:12 +01:00
AbuseFilterGenerateVarsForRecentChangeHook.php Use namespaced classes 2023-12-10 23:03:12 +01:00
AbuseFilterGetDangerousActionsHook.php build: Updating dependencies 2021-07-21 18:51:18 +00:00
AbuseFilterHookRunner.php Use namespaced classes 2023-12-10 23:03:12 +01:00
AbuseFilterInterceptVariableHook.php Fix method names of hook interfaces 2021-03-09 17:03:14 +00:00
AbuseFilterShouldFilterActionHook.php Use namespaced classes 2023-12-10 23:03:12 +01:00