Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WP-Admin Widget Username Always Uses Default #17

Open
joelika opened this issue Apr 16, 2014 · 0 comments
Open

WP-Admin Widget Username Always Uses Default #17

joelika opened this issue Apr 16, 2014 · 0 comments

Comments

@joelika
Copy link

joelika commented Apr 16, 2014

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant