Automattic / Automattic/jetpack

Slideshow: long titles display a   at the end

Open
#9,569 1 comment 0 reactions 0 assignees View on GitHub
[Feature] Shortcodes / Embeds [Pri] Low Bug Customer Report [LEGACY] Good For Community
Dominant language
PHP
Stars
1.8k
Forks
898
Avg merge
1d 18h
Merged PRs (30d)
774

Description

#### Steps to reproduce the issue
1. Create/edit a post
2. Add a gallery with a few images
3. Add a long title (not a caption) to those images. Something like:
> A really long title, just to check if it breaks in the slideshow
4. Visit the gallery
5. Hover over the image

#### What I expected
To see the title correctly.

#### What happened instead
I'm seeing a ` ` similar to the one it's available with the `widont` function. I'm assuming it may be related to the [widont](https://vip.wordpress.com/functions/widont/) since it only applies to titles, not to the `alt`. Both `title` and `alt` were added in #1095.

#### Screenshots

captura de tela 2018-05-17 as 14 38 15

captura de tela 2018-05-17 as 14 29 09

#user-report
1164472-zen

Contributor guide

Open the contributing guide

Research direction

No file or test is named in the issue. Reproduce the gallery slideshow case, then trace how image titles are rendered and where the widont function is applied; the fix is done when a long title displays without a literal   while the alt text remains correct.

Written by the indexing model from the issue text.

Assessment

Tech stack
php, wordpress
Domain
frontend
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.