Make WordPress Core

Opened 20 months ago

Last modified 16 months 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: General 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 (3)

#1 @joyously
20 months ago

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

#2 @dingdang
20 months 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 20 months ago by dingdang (previous) (diff)

#3 @dingdang
16 months ago

Is this bug going to be addressed at any time?

Note: See TracTickets for help on using tickets.