Skip to content

Fix the nonce generated for the plugin activation link in the upgrade… - #811

Merged
DanieleAlessandra merged 1 commit into
developfrom
feature/leo/fix-admin-notice-activation-link-nonce
Aug 12, 2025
Merged

Fix the nonce generated for the plugin activation link in the upgrade…#811
DanieleAlessandra merged 1 commit into
developfrom
feature/leo/fix-admin-notice-activation-link-nonce

Conversation

@fajardoleo

Copy link
Copy Markdown
Contributor

… instructions admin notice.

@fajardoleo
fajardoleo requested a review from swashata July 3, 2025 16:41
@fajardoleo fajardoleo self-assigned this Jul 3, 2025

@swashata swashata left a comment

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.

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(

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.

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()?

@fajardoleo
fajardoleo force-pushed the feature/leo/fix-admin-notice-activation-link-nonce branch 3 times, most recently from fce2a53 to 3e06b5a Compare July 28, 2025 09:40

@swashata swashata left a comment

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.

LGTM. Please ask @DanieleAlessandra to test it 🙏

@swashata

Copy link
Copy Markdown
Contributor

@fajardoleo please also fix the linting issue
CleanShot 2025-08-12 at 11 23 49@2x

Looks like an unintended trailing comma.

@swashata swashata left a comment

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.

Code looks good. Just has a lint issue for PHP 7.0 (no trailing comma)

@fajardoleo
fajardoleo force-pushed the feature/leo/fix-admin-notice-activation-link-nonce branch from 3e06b5a to 6681019 Compare August 12, 2025 07:40

@swashata swashata left a comment

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.

🎉

@DanieleAlessandra
DanieleAlessandra merged commit 427b526 into develop Aug 12, 2025
5 checks passed
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.

3 participants