Skip to content
This repository was archived by the owner on Jul 28, 2024. It is now read-only.

Wrong username in commit#817

Merged
octopuss merged 2 commits intomasterfrom
812-non-admin-actions
Mar 24, 2016
Merged

Wrong username in commit#817
octopuss merged 2 commits intomasterfrom
812-non-admin-actions

Conversation

@octopuss
Copy link
Copy Markdown
Contributor

Please review this PR which closes #812. I've changed functionality of rollback,undo, commit as well, because these methods were not handled properly and generated same bug.

Thank you.

@octopuss octopuss added this to the 3.0 milestone Mar 24, 2016
@octopuss octopuss self-assigned this Mar 24, 2016
* @return \Closure
*/
private function handleAsAdminSectionRoute($routeHandler) {
if (!defined('WP_ADMIN')) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this should be in the callback returned from this method. The WP_ADMIN is now defined for every request if it's here.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes you are right. I've fixed that

@octopuss octopuss merged commit 62e8f4e into master Mar 24, 2016
@octopuss octopuss deleted the 812-non-admin-actions branch March 24, 2016 12:03
pavelevap added a commit that referenced this pull request May 14, 2019
REST requests are handled correctly now (when user is logged in) and there is no need for special method handleAsAdminSectionRoute().
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Hiding welcome panel after activation is tracked as a non-admin action

2 participants