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

PHP 7.1 notice

Open jerry1333 opened this issue 8 years ago • 1 comments
trafficstars

Hi, when used with PHP 7.1 getting notice for posts where syntax highlite exists:

Notice: A non well formed numeric value encountered in /wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 118 Notice: A non well formed numeric value encountered in /wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 119

To fixit need to change this two lines to:

$toolbar_height = $_font_size * 1.5 . 'px !important;';
$info_height = $_font_size * 1.4 . 'px !important;';

jerry1333 avatar Mar 29 '17 16:03 jerry1333

same issue here!

pramodk avatar Aug 05 '17 18:08 pramodk