mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Popups
synced 2024-12-20 19:12:49 +00:00
a75ddc4173
Implement conditional defaults for user preferences in the Popups component. This patch aims to simplify the preference management system by leveraging conditional logic directly within the component rather than relying on multiple hooks Changes: - Updated `extension.json` to reflect the removal of outdated hooks. - Updated `extension.json` to reflect the conditional user defaults. - Removed unused user option `popupsreferencepreviews` from `extension.json` - Modified `PopupsHooks` to streamline the preferences management, and depend on conditional user defaults, and removing `onUserGetDefaultOptions` and `onLocalUserCreated` hooks. - Removed unneeded test cases in `PopupsHooksTest`. Bug: T364347 Change-Id: Iae454e4b4704a0289ca0a2b0794730562fda0dd1 |
||
---|---|---|
.. | ||
PopupsContextTest.php | ||
PopupsContextTestWrapper.php | ||
PopupsGadgetsIntegrationTest.php | ||
PopupsHooksTest.php |