Opened 2 years ago
Last modified 7 months ago
#44958 assigned defect (bug)
  character in title generates a permalink (and slug) with space
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Awaiting Review | Priority: | normal |
Severity: | major | Version: | 4.8 |
Component: | Permalinks | Keywords: | needs-testing reporter-feedback |
Focuses: | Cc: |
Description
If a title has an   character copy pasted or if the permalink has a   copy pasted
It will generate a permalink and slug with an space breaking some elements on the site
I generated an empty wordpress install without any plugins to test it, and it has the same problem
Attachments (1)
Change History (11)
#1
follow-up:
↓ 4
@
2 years ago
- Keywords reporter-feedback added
Hi @ace2_heart thanks for the ticket and welcome to WordPress Trac,
I can't reproduce the issue on a fresh install (see screen capture above). I tested it in the permalink edition and in the title field and both are correctly escaping the non-breaking space. Can you provide us some further information to reproduce the bug please?
Cheers,
Jb
#2
@
2 years ago
Hi @ace2_heart, thanks for the ticket!
is supposed to be converted to a hyphen by sanitize_title_with_dashes().
Are you sure the issue still happens on a clean install with all plugins disabled and a default theme (Twenty Seventeen) activated?
#3
@
2 years ago
Hi, I created an empty install here, you can access it
- user: miguelesquirol
- password: miguelesquirol
https://bug-testing-miguelesquirol.c9users.io/wp-ad- min
These are the pages created
The parmalink are as following:
/e -securite/
/ -test/
#4
in reply to:
↑ 1
@
2 years ago
Replying to audrasjb:
I just saw the demo you posted, instead of using the text on the title, tried to copy/paste the actual space character.
e -securite
Hi @ace2_heart thanks for the ticket and welcome to WordPress Trac,
I can't reproduce the issue on a fresh install (see screen capture above). I tested it in the permalink edition and in the title field and both are correctly escaping the non-breaking space. Can you provide us some further information to reproduce the bug please?
Cheers,
Jb
#5
follow-up:
↓ 6
@
2 years ago
Ok thanks for your answer.
So the issue happens with control marks like %e2%80%
. Indeed, I'm able to reproduce this specific issue.
By the way, you are running WP 4.8.7 which is quite an old version. But the issue also happens in 4.9.8.
Thanks,
Jb
#6
in reply to:
↑ 5
@
2 years ago
So it's a really a bug? It's my first time submitting one.
Replying to audrasjb:
Ok thanks for your answer.
So the issue happens with control marks like
%e2%80%
. Indeed, I'm able to reproduce this specific issue.
By the way, you are running WP 4.8.7 which is quite an old version. But the issue also happens in 4.9.8.
Thanks,
Jb
Works for me