Automattic / Automattic/jetpack

Remove shortcode from instant search results

Open
#33,555 1 comment 1 reaction 0 assignees View on GitHub
[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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.