[wp-trac] [WordPress Trac] #39543: Certain Strings When Pasted Into Title Bar Cause Loss of Styling

WordPress Trac noreply at wordpress.org
Thu Jan 12 15:01:39 UTC 2017


#39543: Certain Strings When Pasted Into Title Bar Cause Loss of Styling
-------------------------------+------------------------------
 Reporter:  Tranny             |       Owner:
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  General            |     Version:  4.7
 Severity:  normal             |  Resolution:
 Keywords:  reporter-feedback  |     Focuses:
-------------------------------+------------------------------

Comment (by Tranny):

 @@SergeyBiryukov

 I tried it on two different WP installations, which are each hosted on
 different servers with different companies. Both use TwentySixteen default
 theme, and while both have some plugins activated, each has different
 plugins, and not many of them (no exotic plugins installed).

 I noticed that this only happens when a hyperlinked text is copy-pasted
 into the title bar. I'm on a Windows computer, and when I highlight a
 hyperlinked text (such as a clickable search result), the text gets copied
 along with the link it is associated with. So if I subsequently go to an
 advanced text editor (such as Microsoft Word) and paste it there, it  will
 be pasted in the document as hyperlinked text.

 Pasting text that's been copied along with the embedded hyperlink is when
 it breaks the styling. But if I copy the hyperlinked text, paste it in
 some basic text editor (such as Notepad), which only deals with plain
 text, then the hyperlink is stripped, so if I highlight the text again,
 and copy if off Notepad again (ie now the copied text is plain text
 string, so it won't paste as hyperlinked into Microsoft Word), styling
 doesn't get broken, and everything works fine.

 So to reproduce, make sure you copy a hyperlinked text, and test it on
 something like Microsoft Word to make sure it is copied hyperlinked. Also,
 I noticed that it's only some hyperlinks that break it, not all. For
 example an English language Wikipedia page doesn't break it.But the
 Portuguese one does.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/39543#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list