Opened 22 hours ago
Last modified 22 hours ago
#65658 new enhancement
The On This Day Widget should handle untitled posts more nicely
| Reported by: | alshakero | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Widgets | Version: | |
| Severity: | minor | Keywords: | has-patch has-unit-tests |
| Cc: | Focuses: | administration |
Description
All details can be seen here: https://wordpress.org/support/topic/on-this-day-widget/
To summarize, when a post has no title, the widget should show a few words from the post's body instead of "(no title)".
Change History (2)
This ticket was mentioned in PR #12581 on WordPress/wordpress-develop by @alshakero.
22 hours ago
#1
- Keywords has-patch has-unit-tests added; needs-patch removed
@bph commented on PR #12581:
22 hours ago
#2
Thank you @alshakero for jumping right on it!
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
## Summary
Trac: https://core.trac.wordpress.org/ticket/65658
See: https://wordpress.org/support/topic/on-this-day-widget/
This adds the same untitled-post fallback used in the posts list table to the On This Day dashboard widget. When a matching post has no title, the widget now appends a trimmed excerpt after
(no title)when the current user can read the post and the post is not password protected.The change keeps protected post excerpts hidden and adds PHPUnit coverage for the trimmed excerpt and password-protected cases.
## Testing
(no title) 15 word excerpt.