twitter-widget-pro icon indicating copy to clipboard operation
twitter-widget-pro copied to clipboard

WP-Admin Widget Username Always Uses Default

Open joelika opened this issue 10 years ago • 0 comments

If you use the WP-Admin widget area to add a new instance of this plugin as a widget, it will always use the default or first item from the WP-Admin settings area. Title and other attributes seem to stick, but the username does not. So if more than one Twitter account is authorized, you can still only use one as a widget.

As a temporary workaround, I redefine the $instance['username'] in public function widget to the value in $instance['title'] so I could get it to work, but it would be great if WP-Admin could save the correct values on widget save.

The $_POST values do appear to be correct when saved to WordPress, but then the AJAX response contains the default Twitter handle.

joelika avatar Apr 16 '14 05:04 joelika