Automattic / Automattic/jetpack
Remove shortcode from instant search results
Open
[Feature] Search
[Plugin] Search
[Pri] Low
[Status] Stale
Bug
Instant Search
Triaged
- Dominant language
- PHP
- Stars
- 1.8k
- Forks
- 898
- Avg merge
- 1d 18h
- Merged PRs (30d)
- 774
Description
### Impacted plugin
Search
### What
If shortcodes cannot be expanded, then at least they should be removed from the results text
### How
It looks weird to have text like this [this_is_a_shortcode] in the middle of the results.
Reported in this forum issue: https://wordpress.org/support/topic/customize-results-pages-with-hooks/
Contributor guide
Research direction
Start in the Search plugin's instant-results code and trace how result text is prepared when shortcodes cannot be expanded. Reproduce the forum-reported case, then verify that markers such as [this_is_a_shortcode] no longer appear in instant results while surrounding text remains.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php, wordpress
- Domain
- search
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100