-
Notifications
You must be signed in to change notification settings - Fork 39
Fix hidden column reset when inbox count changes #2777
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
Move badge addition after add_menu_page to maintain stable WordPress screen IDs which use sanitize_title($menu_title). Extract badge logic into separate add_menu_badge() method that modifies global $menu array directly instead of concatenating to menu name before registration.
…D conflicts
Stop concatenating unread inbox count to filter hook name which was causing WordPress screen ID mismatches. Use base sanitized menu name only in manage_{screen}_columns filter to maintain stable screen identification.
…n ID conflicts Stop concatenating unread inbox count to screen ID which was causing WordPress screen ID mismatches. Use base sanitized menu name only in remove_screen_options() and get_screen_id() to maintain stable screen identification.
…en ID conflicts Stop concatenating unread inbox count to screen ID which was causing WordPress screen ID mismatches. Use base sanitized menu name only in add_list_hooks() and remove_screen_options() to maintain stable screen identification.
Mark FrmEntriesHelper::get_visible_unread_inbox_count() as deprecated and return 0. Remove inbox count calculation logic that was causing WordPress screen ID conflicts by modifying menu names after registration.
WalkthroughCentralizes admin menu badge logic by adding FrmAppController::add_menu_badge() and refactors menu() to use it. Removes dynamic unread-count suffixes from filter/hook keys and screen-option naming in dashboard, entries, and payments controllers. Deprecates FrmEntriesHelper::get_visible_unread_inbox_count() and returns 0. Changes
Sequence Diagram(s)(omitted) Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
Suggested labels
Suggested reviewers
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
📜 Recent review detailsConfiguration used: Organization UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
🧰 Additional context used🧬 Code graph analysis (1)classes/controllers/FrmAppController.php (3)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (3)
🔇 Additional comments (2)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Fixes https://github.com/Strategy11/formidable-pro/issues/5794
This PR fixes an issue where hidden column preferences reset when the inbox unread count changes.
Pro PR