Skip to content

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

Open
wrkzk wants to merge 2 commits into
masterfrom
custom_css
Open

Add box for custom css in heads up display admin settings page#3
wrkzk wants to merge 2 commits into
masterfrom
custom_css

Conversation

@wrkzk

@wrkzk wrkzk commented Oct 29, 2024

Copy link
Copy Markdown

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.

@apjmason apjmason left a comment

Copy link
Copy Markdown
Member

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

@apjmason apjmason left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested one more change

Comment thread admin/settings-page.php Outdated
Co-authored-by: Austin Mason <austin.pj.mason@gmail.com>
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