Benunc / better-click-to-tweet

Gutenberg-ready WordPress Plugin for adding Click To Tweet boxes to Posts and Pages
https://www.betterclicktotweet.com
21 stars 22 forks source link

Undefined variable urlcustom #54

Closed josueochoa closed 5 years ago

josueochoa commented 5 years ago

Using block without setting a custom URL will trigger a Notice message:

Notice: Undefined variable: urlcustom in /path-to-plugin/better-click-to-tweet/assets/block/init.php on line 81

Something like this could fix this issue: $urlcustom = ( isset( $urlcustom ) ? $urlcustom : '' );

Benunc commented 5 years ago

Thanks for the heads up here, I am working on a patch for this issue.

Thanks!

Benunc commented 5 years ago

Version 5.8.2 will resolve this issue, and it is compiling to release as I type this. Thanks!