WordPress / WordPress/sqlite-database-integration
Support regex_replace
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:
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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