WordPress / WordPress/sqlite-database-integration

Do not redirect when activating plugin via WP-CLI

Open
#49 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
PHP
Stars
363
Forks
67
Avg merge
2d 15h
Merged PRs (30d)
7

Description

We‘d like to run WP-CLI tests with SQLite using this plugin. I noticed this issue during one of the test runs, as the attempted redirect can cause warnings in CLI.
I suggest not doing a redirect if the WP_CLI constant is defined and true.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the plugin activation path that attempts the redirect and the WP-CLI tests using SQLite. Confirm the behavior when WP_CLI is defined and true, then run the relevant WP-CLI test suite; done means activation produces no redirect warning in CLI while normal activation behavior remains covered.

Written by the indexing model from the issue text.

Assessment

Tech stack
php, sqlite
Domain
cli
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.