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

Fixed object-type detection of the CMB2::current_object_type() method #842

Merged
merged 1 commit into from
Jan 20, 2017

Conversation

ADC07
Copy link
Contributor

@ADC07 ADC07 commented Jan 20, 2017

to handle the 'add-tag' action of the 'admin-ajax.php' page.

Fixes #841.

Changes proposed in this pull request

  • Add a new check to see if the current page is admin-ajax.php and if an action parameter exists within the $_POST variable determine object-type based on it's value.

PS: AFAICT, there is only one entry point into the plugin's execution flow via the 'admin-ajax.php' page and this applies to this specific scenario / term object-type therefore the action parameter validation is sort of useless however, perhaps this might change in the near future so I'm recommending we leave it there.

to handle the 'add-tag' action of the 'admin-ajax.php' page.
@jtsternberg jtsternberg merged commit 0d0125e into CMB2:trunk Jan 20, 2017
@jtsternberg
Copy link
Member

This is great, and the bug report, steps for reproducing, etc were all very clear, and the PR is focused. This makes for an easy merge. Thank you!

jtsternberg added a commit that referenced this pull request Jan 20, 2017
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