WordPress / WordPress/sqlite-database-integration

Support regex_replace

Open
#47 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Torsten Landsiedel said:

I would like to know if regexp_replace would be available in Playground
Fixing the native search is my use:
https://wordpress.org/plugins/ignore-block-name-in-search/
But Regex_Replace is only available since MySQL 8.0.4+ and MariaDB 10.0.5+ and my check prevents the activation in Playground.

Let's support regex_replace.

Technically, that could be another custom function registered here:

https://github.com/WordPress/sqlite-database-integration/blob/3306576c9b606bc23bbb26c15383fef08e03ab11/wp-includes/sqlite/class-wp-sqlite-pdo-user-defined-functions.php#L37

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

Read wp-includes/sqlite/class-wp-sqlite-pdo-user-defined-functions.php, especially the custom-function registration around line 37, and inspect how existing functions are exposed in Playground. Done means regex_replace is available as a registered function so the cited search plugin can use it without the current database-version restriction.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.