crayon-syntax-highlighter icon indicating copy to clipboard operation
crayon-syntax-highlighter copied to clipboard

Fix PHP warnings in print_code()

Open damiencarbery opened this issue 6 years ago • 0 comments

$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.

damiencarbery avatar Sep 03 '19 11:09 damiencarbery