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

Fix PHP warnings in print_code() #466

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

damiencarbery
Copy link

$toolbar_height and $info_height use $font_size but that variable is a string with 'px !important;' at the end and so the multiplication causes php notices (PHP Notice: A non well formed numeric value encountered in /wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 119). My code uses $_font_size which just contains a number.

$toolbar_height and $info_height use $font_size but that variable is a string with 'px !important;' at the end and so the multiplication causes php notices (PHP Notice:  A non well formed numeric value encountered in /wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 119). My code uses $_font_size which just contains a number.
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.

1 participant