Skip to content

Conversation

zlateska
Copy link
Contributor

@zlateska zlateska commented Aug 4, 2025

Proposed changes

This PR prevents Yoast redirect after it's installed through the WonderBlocks modal.

Type of Change

Production

  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Dependency update
  • Refactoring / housekeeping (changes to files not directly related to functionality)

Development

  • Tests
  • Dependency update
  • Environment update / refactoring
  • Documentation Update

Visual

Checklist

  • I have read the CONTRIBUTING doc
  • I have viewed my change in a web-browser
  • Linting and tests pass locally with my changes
  • I have added tests that prove my fix is effective or that my feature works
  • I have added necessary documentation (if appropriate)

Further comments

@zlateska zlateska requested review from Copilot and wpscholar August 4, 2025 19:21
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR prevents automatic redirection to Yoast SEO Premium's onboarding flow after the plugin is installed through the WonderBlocks modal, improving the user experience by keeping them in the original workflow.

  • Adds specific handling for the wordpress-seo-premium plugin slug in the setup process
  • Creates a dedicated method to disable Yoast's post-installation redirect behavior
  • Modifies Jetpack forms module check to include blocks module requirement
Comments suppressed due to low confidence (1)

includes/Services/PluginService.php:215

  • The method name enable_yoast_seo_premium is misleading as it doesn't actually enable the plugin, but rather configures it to prevent redirects. Consider renaming to configure_yoast_seo_premium or setup_yoast_seo_premium to better reflect its actual purpose.
	public static function enable_yoast_seo_premium() {

Copy link
Contributor

github-actions bot commented Aug 4, 2025

@newfold-labs newfold-labs deleted a comment from Copilot AI Aug 4, 2025
@zlateska zlateska merged commit 2cc4951 into main Aug 4, 2025
16 checks passed
@zlateska zlateska deleted the fix/redirect-after-yoast-installation branch August 4, 2025 19:38
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