Skip to content
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

Add box for custom css in heads up display admin settings page #3

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

wrkzk
Copy link

@wrkzk wrkzk commented Oct 29, 2024

This pull requests adds in a html textarea box where site admins can add custom css that will be injected into the heads up display that is shown on the dashboard.

Copy link
Member

@apjmason apjmason left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@wrkzk this is looking good for your specific CSS changes, but the plugin is still throwing an error on install due to a PHP behavior change, e.g.

Warning: Trying to access array offset on value of type bool in /home/.../wp-content/plugins/WP-Heads-Up-Plugin/core-functions.php on line 57

Can you uninstall then reinstall to test this behavior and try to fix? The basic issue is that it's returning false when there is no value yet in the table, instead of empty or null. A few possible fixes discussed here that you can experiment with

Copy link
Member

@apjmason apjmason left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested one more change

admin/settings-page.php Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants