Open a8ck3n opened 2 years ago
To reproduce the above:
/?s=no%20title&result_format=minimal
Bonus Points: What happens if the post category is removed?!
By default, WP sites are configured to assign a default category. If the user removes all categories, the code will fallback to showing the post slug which is nice. I tried changing my permalinks to "Plain" and reloading the search overlay. Unfortunately that breaks search completely and all results lead to 404s. Refreshing the sync did not fix this.
Impacted plugin
Jetpack, Search
What
Posts without a title are visible in the minimal results but are inaccessible.
How
What it looks like now:
Ideally, we'd detect this and either use a localized "Untitled" string or maybe the post slug. I'd favour the localized string because it might look odd if the site is not configured to use pretty permalinks.