urvanov-ru / crayon-syntax-highlighter

Syntax Highlighter supporting multiple languages, themes, fonts, highlighting from a URL, local file or post text.
https://wordpress.org/plugins/urvanov-syntax-highlighter/
GNU General Public License v3.0
60 stars 11 forks source link

fixed deprecated passing null-parameter to pathinfo #50

Open aroesler-privat opened 1 year ago

aroesler-privat commented 1 year ago

Hi,

I received warnings "Deprecated: pathinfo(): Passing null to parameter #1 ($path) of type str" when using the plugin. To prevent them, I simply added a check for null. Maybe this pull request helps.

Have a nice Sunday,

Andreas

aroesler-privat commented 1 year ago

Hi,

in the frontend I did not receive errors anymore after reading in the docu, that Gutenberg has to use the block ;-)

However: In the backend the 'php-error'-class was added to every post-editing body. So I digged a little deeper and added those fixes.

I hope this helps ;-),

Andreas