[wp-trac] [WordPress Trac] #24612: Permalink conflict when image is not attached to the post and permalink setting is /%postname%/
WordPress Trac
noreply at wordpress.org
Wed Jun 19 23:06:05 UTC 2013
#24612: Permalink conflict when image is not attached to the post and permalink
setting is /%postname%/
--------------------------+-----------------------------
Reporter: augustas | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Permalinks | Version: 3.5.1
Severity: normal | Keywords:
--------------------------+-----------------------------
Here is scenario when there is a permalink conflict between the
"attachment page" URL and post when image filename and post name are
equal:
Permalinks are set to `/%postname%/`
Using Media -> Library -> upload new image called `about-me.jpg`
System saves into "wp_posts" database table: `post_name = "about-me"`
I publish a new POST with the title ''"About Me"''. For this post database
stores the `post_name = "about-me"`
If I go to URL: `www.example.com/about-me/` - I am redirected to `about-
me.jpg` '''Image Attachment Page'''.
If POST is created first and the image uploaded second - URL will open the
POST.
This issue is similar to #13459
--
Ticket URL: <http://core.trac.wordpress.org/ticket/24612>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list