Fixed PHP Warning
-
Hi,
I have this error reporting:
PHP Warning: Cannot assign an empty string to a string offset
.Call Stack :
wp_localize_script() wp-content/plugins/toolbar-publish-button/toolbar-publish-button.php:307
In file
toolbar-publish-button.php
, I suggest to add this line (function enqueue_admin_assets()
after line 300):$button_bg_color = !empty($button_bg_color) ? $button_bg_color : '#fff';
And error it’s fixed.
Thanks for this plugin.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Fixed PHP Warning’ is closed to new replies.