Awesome Plugin! A few bugs (and fixes)
-
Hi there. Nice work on this little plugin.
Seriously, it was exactly what I was looking for! Simple. Easy for my clients to use. Hard for my clients to screw up. I’ve been wanting something like this for a long time now. I’m definitely going to be using this one on many of my custom sites in the future.
However, I noticed a couple of bugs that you’ll want to fix:
1.) I get the following error message when I try to insert an instance of the button: Notice: Undefined index: full_width in /Users/evanscheingross/Sites/paws/wp-content/plugins/lbdesign-button-shortcode/lbdesign-button-shortcode.php on line 23
FYI – I’m working locally on a new site and wp_debug turned on. Users who set this to false won’t see this error.
I checked your source code and it looks like you have a check for an array key ‘full_width’ which is never set or initiated. Removing that check (lines 23-27 of lbdesign-button-shortcode.php) will do the trick.
2.) The little button icon doesn’t show up for me in my instance of tinyMCE. The button is there and it works, but the background image of the tiny link icon doesn’t appear because the URL path is incorrect.
On line 15 of lbdesign-button-shortcode.js change
image : '/wp-content/plugins/lbdesign-button-shortcode/img/icon-grey.png'
to
image : './../wp-content/plugins/lbdesign-button-shortcode/img/icon-grey.png'
That will do the trick.
If you can get these updates pushed out I’d love to come back and give you a 5-star rating on the plugin.
Keep up the good work!
https://www.ads-software.com/plugins/lbdesign-button-shortcode/
- The topic ‘Awesome Plugin! A few bugs (and fixes)’ is closed to new replies.