v4.7.4: Menu organizer + auto-detection van broken updates
🚨 Kritiek: Automatische update-detectie voor alle versies
Alle versies < 4.7.4 zien nu automatisch een waarschuwing als hun update checker niet werkt:
- Health check draait dagelijks in WordPress admin
- Detecteert als GitHub update checking kapot is (slechte token in v4.7.3 en eerder)
- Toont rode notice: 'Kritieke update vereist - Update nu naar 4.7.4'
- Werkt ZONDER dat je eerst moet upgraden naar 4.7.4
- Gebruikers zien meteen wat er mis is en waar ze op moeten klikken
Features
- Menu Organizer Enhancements: Replace binary visibility with per-item role-based access control
- Users can now specify which WordPress roles can see each menu item
- Add interactive role selector modal in menu organizer UI
- Each menu item displays role assignment button
- Role selection updates visual indicator in real-time
Fixes & Improvements
-
GitHub Update Checker Fixed: Plugin now works without token
- Works immediately on all sites
- Uses public GitHub API (60 requests/hour)
- Fallback to optional token if needed
-
Optional GitHub Token: Add in Admin → Beheer → Settings
- For high-traffic sites hitting rate limits
- Increases to 5000 requests/hour
-
Health Monitor: Detects broken update checkers
- Shows admin notice automatically
- Tells users exactly what to do
- Works on all versions
How It Works for Older Versions
Even if you're running v4.7.3 or earlier:
- WordPress admin is visited (once per 12 hours)
- Health check tests if GitHub is reachable
- If update checker is broken, a red notice appears
- Notice shows: "Update naar 4.7.4" with direct link
- User can immediately upgrade
No bootstrapping problem — broken version tells you it's broken!