Fix deprecation notice shown on wish and focus area pages:
Deprecated: Use of MediaWiki\SpecialPage\SpecialPage constructor parameters $restriction, $listed, $function, $file and $includable was deprecated in MediaWiki 1.46. [Called from MediaWiki\Extension\CommunityRequests\AbstractWishlistSpecialPage::__construct in /var/www/html/w/extensions/CommunityRequests/includes/AbstractWishlistSpecialPage.php at line 38] in /var/www/html/w/includes/Debug/MWDebug.php on line 372
Derived Requirement
- Wish and focus area pages must load without displaying any PHP deprecation warnings to the user.
- The system must not trigger deprecation warnings related to the MediaWiki\SpecialPage\SpecialPage constructor when accessing wishlist-related special pages.
- All wishlist and focus area special pages must render successfully without errors or debug output.
- The user experience on wishlist and focus area pages must remain unaffected while ensuring compatibility with MediaWiki 1.46.
**Test Result - Meta Beta*
Status: ✅ PASS / ❓ Need More Info / ❌ FAIL
Environment: Meta Beta
OS: macOS Tahoe 26.4.1
Browser: Chrome 147
Device: MBA
Emulated Device: NA
Test Artifact(s):
Test Steps
Test Case 1: Verify no deprecation warning appears on wish pages
- Open the wiki.
- Navigate to a wish page under the CommunityRequests extension.
- Observe the page during load and after rendering completes.
- Check for any visible warning or debug message.
- ✅❓❌⬜ AC1: No deprecation warning related to SpecialPage constructor is displayed on the wish page.
Test Case 2: Verify no deprecation warning appears on focus area pages
- Open the wiki.
- Navigate to a focus area page under the CommunityRequests extension.
- Observe the page during load and after rendering completes.
- Check for any visible warning or debug message.
- ✅❓❌⬜ AC2: No deprecation warning related to SpecialPage constructor is displayed on the focus area page.
Test Case 3: Verify pages render without debug output
- Open the wiki.
- Navigate to multiple wishlist-related pages including wish and focus area pages.
- Observe page content and layout.
- Check for any debug output, stack traces, or PHP warnings.
- ✅❓❌⬜ AC3: Pages render fully without any debug output or PHP warnings.
Test Case 4: Verify no console or network errors related to deprecation
- Open the browser developer tools.
- Navigate to a wish page.
- Check the Console and Network tabs during page load.
- Look for any deprecation-related messages.
- ✅❓❌⬜ AC4: No deprecation-related errors or warnings appear in the console or network logs.
Test Case 5: Verify normal functionality of wishlist pages
- Open the wiki.
- Navigate to a wish page.
- Interact with page elements such as links or UI controls.
- Confirm that content loads and behaves as expected.
- ✅❓❌⬜ AC5: Wishlist and focus area pages function correctly without errors after the fix.
QA Results - Meta Beta
| AC | Status | Details |
|---|---|---|
| 1 | ✅ | T424121#11869137 |
| 2 | ✅ | T424121#11869137 |
| 3 | ✅ | T424121#11869137 |
| 4 | ✅ | T424121#11869137 |
| 5 | ❓ | T424121#11869137 |
