Make WordPress Core

Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#20617 closed defect (bug) (duplicate)

Permalinks with titles consisting of special characters do not work.

Reported by: RosaElefant Owned by:
Milestone: Priority: normal
Severity: major Version:
Component: General Keywords:
Focuses: Cc:


One of my articles in February 2012 has the title "□□□□□□□□□: 0 □□□□□□□□". I know, I should use a better title, but WordPress should be able to process it.

My permalink structure looks as follows: /%year%/%monthnum%/%postname%/

Now the automatically generated permalink for the aforementioned article is http://tuxproject.de/blog/2012/02/0/ which leads to 2012/02 archives but not to the single article. There is no way to access the article directly.

I presume this is a major bug in WordPress's permalink generator.

Change History (5)

#1 @SergeyBiryukov
5 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Status changed from new to closed

#2 @scribu
5 years ago

There are two things at play here:

1) The slug is generated by stripping special characters.

2) With your permalink structure, http://tuxproject.de/blog/2012/02/0/ is considered a day archive.

There are also two possible workarounds:

1) Manually edit the slug to be non-numeric.

2) Change your permalink structure so that it doesn't look like a date archive.

#3 @RosaElefant
5 years ago

Hmm, I guess I will use the first option then. I just think WordPress should be smart enough to avoid that.

Version 0, edited 5 years ago by RosaElefant (next)

#4 @scribu
5 years ago

What would you expect the generated slug to be?

#5 @RosaElefant
5 years ago

Maybe _0? Or ".0", dots should work in URLs...

Note: See TracTickets for help on using tickets.