Make WordPress Core

Opened 9 years ago

Closed 9 years ago

#42664 closed defect (bug) (fixed)

Editor link autocomplete suggestions: no fallback title displayed for posts with no title

Reported by: afercia Owned by: afercia
Priority: normal Milestone: 4.9.2
Component: Editor Version:
Severity: normal Keywords: has-screenshots has-patch fixed-major
Cc: Focuses:

Description

When inserting a link in a post, the links suggestions list doesn't show any fallback title for posts with no title. There's just an empty space followed by the post date:

https://cldup.com/zjJ4pdkTyA.png

Worth noting the "Link options" modal does display a fallback title for that same post, and it's the string (no title) already used in other places in core:

https://cldup.com/Y54vX9842z.png

Attachments (1)

42664.diff (897 bytes ) - added by afercia 9 years ago.

Download all attachments as: .zip

Change History (8)

@afercia
9 years ago

#1 @afercia
9 years ago

  • Keywords has-patch added; needs-patch removed

42664.diff is a first pass, I guess it is necessary to check for window.wpLinkL10n as that check is done in other parts too, but I'm not so sure why. Any feedback welcome.

Last edited 9 years ago by afercia (previous) (diff)

#2 @afercia
9 years ago

  • Owner set to afercia
  • Status newassigned

#3 @johnbillion
9 years ago

  • Milestone 4.9.15.0

#4 @afercia
9 years ago

  • Resolutionfixed
  • Status assignedclosed

In 42425:

Editor: Link suggestions: add fallback title for posts with no title.

Fixes #42664.

#5 @afercia
9 years ago

  • Keywords fixed-major added
  • Milestone 5.04.9.2

Reopening for 4.9.2 consideration.

#6 @afercia
9 years ago

  • Resolution fixed
  • Status closedreopened

#7 @SergeyBiryukov
9 years ago

  • Resolutionfixed
  • Status reopenedclosed

In 42439:

Editor: Link suggestions: add fallback title for posts with no title.

Props afercia.
Merges [42425] to the 4.9 branch.
Fixes #42664.

Note: See TracTickets for help on using tickets.