Make WordPress Core

Opened 2 years ago

Last modified 7 days ago

#56682 new defect (bug)

Unexpected cut of the HTML title and the slug

Reported by: dingdang's profile dingdang Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 6.0.2
Component: Permalinks Keywords:
Focuses: Cc:

Description

WordPress cuts part of the HTML title and the slug after "<=" sequence.

Example that is OK (compared with one that IS NOT after that):

  • if the title entered is "some >= word" the HTML title would e "some &gt;= word" and the slug - "some-word" (as expected)
  • however if the title entered is "some <= word" then the HTML title is unexpectedly CUT and becomes "some" as well the slug is just "some".

The second example should perform exactly as the first one.

Note that the problematic sequence is "<=" not just "<".

Change History (5)

#1 @joyously
2 years ago

Are you referring to post title, site title, or image title?
Where are you entering this title?

#2 @dingdang
2 years ago

Tested on posts I guess it is the same for pages (but haven't tested).
Update: just tested with pages and it's the same.

ALSO: it's the same with images, if for slug is entered:
"some <= text"
everythign after the < is cut (i.e. "some")
if the text is:
"some >= text" for the slug
it correctly just filters out ">=" becoming "some-text".
So this is a general problem for WordPress related somehow to slugs filtering:

  • slugs (images, posts, pages)
  • titles (posts, pages; images' title is NOT affected)
Last edited 2 years ago by dingdang (previous) (diff)

#3 @dingdang
21 months ago

Is this bug going to be addressed at any time?

#4 @dingdang
7 days ago

ping?

#5 @sabernhardt
7 days ago

  • Component changed from General to Permalinks
Note: See TracTickets for help on using tickets.