Repository navigation
Carry over the review fixes of the FrontBlocks menu and the settings script - #364
Merged
Merged
Conversation
Now that the settings script no longer stops at load, the mutual exclusion runs for sites without a valid license too, and it dimmed the whole card (badge and title included) to 0.5 on top of the existing .frbl-feature-pro styles. Clear the inline opacity instead, so only the mutual exclusion dims a card. The selector test now also checks selectors in double quotes and template literals. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Review fixes: - Share one rule (get_tab_menu_page()) between the menu and the tab script, so a tab without a menu page never points the address bar at an unregistered page; such a tab keeps the current page and its #hash. - Always register the main page entry, even when a filter removes or hides the first tab. - Encode the values the legacy redirect forwards, and only redirect GET and HEAD requests so a form posting to the old URL keeps its data. - Anchor is_settings_screen() instead of matching a substring. - Return to the page of the active tab after saving. - Use self::CAPABILITY in render_page() and drop the leftover "Appearance > FrontBlocks" strings. Menu: - Testimonials and Events (with an Event categories entry) live in the FrontBlocks menu. The menu is registered at priority 9 so the settings come first, and License is moved to the end of the menu. - Document how companion plugins can nest their own post types. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Follow-up to #357 and #358. Both were merged before their review fixes were pushed to their branches, so those two commits never reached
trunk. This pull request carries them over, cherry-picked ontotrunkwithout changes.What changes
Settings script (#358 follow-up)
.frbl-feature-prostyles. The script now clears the inline opacity, so only the mutual exclusion dims a card.FrontBlocks menu (#357 follow-up)
get_tab_menu_page(), decides which tabs get a menu page. The tab script only receives registered pages, so a tab hidden with'menu' => falseno longer sends the address bar to a page that does not exist (it keeps the current page and its#hash).admin.php?page=frontblocks-settings, is always registered, even when a filter removes or hides the first tab.is_settings_screen()matches the screen ID exactly instead of a substring.render_page()usesself::CAPABILITY, and the last "Appearance → FrontBlocks" strings are updated (Google Sign-In notice,docs/STAGING.md).docs/SETTINGS-TAB-EXTENSIONS.mdexplains how a companion plugin can nest its own post types. FrontBlocks PRO does this for Popups in closemarketing/frontblocks-pro#122.Testing
SettingsMenuTest,EventsTest,TestimonialsTestandSettingsTest.composer lintandcomposer phpstanare clean.