Skip to content

Conversation

@fajardoleo
Copy link
Contributor

… instructions admin notice.

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

@swashata swashata left a 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(
Copy link
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
Copy link
Contributor

@swashata swashata left a 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 🙏

@swashata
Copy link
Contributor

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

Looks like an unintended trailing comma.

Copy link
Contributor

@swashata swashata left a 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)

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

@swashata swashata left a comment

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.

4 participants