-
Notifications
You must be signed in to change notification settings - Fork 20
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
Move Core Font Installer Notice to selected pages. #1445
Move Core Font Installer Notice to selected pages. #1445
Conversation
Codecov Report
@@ Coverage Diff @@
## development #1445 +/- ##
==================================================
+ Coverage 75.71% 93.30% +17.58%
==================================================
Files 243 57 -186
Lines 12828 1464 -11364
Branches 370 370
==================================================
- Hits 9713 1366 -8347
+ Misses 3107 90 -3017
Partials 8 8 Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
6f93a84
to
79a7f5c
Compare
Hi @jakejackson1, can you review the recent changes on this PR please? This would look like on Form list: But when its on Gravity PDF pages, it will look like this: Not sure if this is a good compromise, please advise. Thanks! |
6bd796e
to
89c576e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jestonihpi just a few minor corrections needed.
$register_routes = false; | ||
$is_gfpdf_page = \GPDFAPI::get_misc_class()->is_gfpdf_page(); | ||
|
||
if ( ! wp_doing_ajax() && is_admin() && ( $pagenow === 'plugins.php' || $is_gfpdf_page || \GFForms::is_gravity_page() ) ) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As I mentioned, assign all conditions to individual variables so this IF statement is easy to understad.
e64df1b
to
96f94cf
Compare
Add Gravity Form's default error message handler. This will add the message to the current gform_admin_error_messages queue Rewrite maybe_remove_non_pdf_messages to return false if the current page doesn't belongs to gravity pdf. Add toggle between Helper_Notices and GFCommon on we display the font install message. Update condition and improve codebase Update unit test for Test_Action Revert changes on Helper_Notices Update Install font notice display, codebase cleanup. Lint
ce2f9ac
to
172cd15
Compare
Resolved in #1549 |
Description
WIP. I have only set the Core Font Installer Notice exclusively to Gravity PDF pages. I need to add this to these pages as well:
#1439
Testing instructions
Screenshots
Checklist:
Additional Comments