Automattic / Automattic/jetpack

Refactor `wpcomsh_make_content_clickable`

Open
#40,134 1 comment 0 reactions 0 assignees View on GitHub
[Plugin] Wpcomsh [Status] Stale Task
Dominant language
PHP
Stars
1.8k
Forks
898
Avg merge
1d 18h
Merged PRs (30d)
774

Description

This is a follow-up of [this discussion](https://github.com/Automattic/jetpack/pull/39931#issuecomment-2455410617).

The idea is to refactor the function `wpcomsh_make_content_clickable` to use `WP HTML API`. When it was written, we didn't have this, so it's a complex function with regexes and loops checking strings.

As we identified in [that PR](https://github.com/Automattic/jetpack/pull/39931), it's prone to errors.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.