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

Fix bug preventing custom args from being passed to custom controls #1433

Merged
merged 1 commit into from
Jun 27, 2017
Merged

Fix bug preventing custom args from being passed to custom controls #1433

merged 1 commit into from
Jun 27, 2017

Conversation

danielortiz
Copy link
Contributor

@danielortiz danielortiz commented Jun 27, 2017

Referent to #1425
The problem here lies on the fact that get_class_vars only gets the default class vars, not the ones that are set later by doing $this->var = .... On the other hand get_object_vars get's the defined vars on the current instance.

As I mentioned on the issue, I am no PHP/WP specialist, so I may not be aware of other implications this change might have, feel free to ignore this PR and fix it yourself or just let me know something I else I might have to take care.

Also, I have to say, thanks for this plugin, it's really neat 👍 ..It's saving me a lot of time

@aristath
Copy link
Contributor

Looks good 👍
Merged.

@aristath aristath merged commit 1977e82 into themeum:develop Jun 27, 2017
@danielortiz
Copy link
Contributor Author

danielortiz commented Jul 9, 2017

@aristath it's working :D

@aristath
Copy link
Contributor

aristath commented Jul 9, 2017

Awesome, thanks for checking!

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

Successfully merging this pull request may close these issues.

2 participants