-
Notifications
You must be signed in to change notification settings - Fork 88
Fix the nonce generated for the plugin activation link in the upgrade… #811
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 the nonce generated for the plugin activation link in the upgrade… #811
Conversation
swashata
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please see my question, thanks
| $this->do_action( 'after_free_version_reactivation' ); | ||
|
|
||
| if ( $this->is_paying() && ! $this->is_premium() ) { | ||
| $this->add_complete_upgrade_instructions_notice( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we just skip this notice altogether if !is_admin? Do we have a reason to believe admin_init can get called outisde is_admin()?
fce2a53 to
3e06b5a
Compare
swashata
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Please ask @DanieleAlessandra to test it 🙏
|
@fajardoleo please also fix the linting issue Looks like an unintended trailing comma. |
swashata
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code looks good. Just has a lint issue for PHP 7.0 (no trailing comma)
… instructions admin notice.
3e06b5a to
6681019
Compare
swashata
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎉

… instructions admin notice.