[wp-trac] [WordPress Trac] #23300: Wordpress can create same URL for a post and a page.
WordPress Trac
noreply at wordpress.org
Sun Jan 27 09:19:24 UTC 2013
#23300: Wordpress can create same URL for a post and a page.
-----------------------------+--------------------------
Reporter: Prixit | Type: defect (bug)
Status: new | Priority: normal
Milestone: Awaiting Review | Component: Permalinks
Version: 3.4.2 | Severity: critical
Keywords: |
-----------------------------+--------------------------
I am using Wordpress 3.4.2 on my website http://latest-health-news.com/.
I think i found a bug a wordpress.
It can create same URL for a post and a page.
I created a post with URL :http://latest-health-news.com/top-10-brain-
diseases/ , then i created a page using same URL, and it was created
successfully. I was expecting this it will add a"-2" at the end of page
URL, but it didn't happen.
Now when i went back to my home page, which show my last 15 posts, i click
on the same post, but it opened the page (the content of post and page
were different, so i can distinguish it). There was no way for the visitor
of my site to open that post. However the excerpt that was showing on the
homepage was correct (it was from the post).
Then i deleted the page to get rid of this problem. But it resulted in
another one. Now when i clicked on that post on the homepage, it showed as
error message saying that its a "redirect loop". It was happening because
i forgot to remove that page from thrash. Now when i removed that page
from trash, everything was fine.
I think its a bug in the wordpress that it can create same URL for a post
and a page. I think that while creating a post it searches the database of
posts if any other post contain the same URL, it don't search the database
of pages, while it should do so. Same is in the case of creating a page.
I don't know if this problem happened to anyone before, but i didn't found
any satisfactory answer to this problem on internet or i wasn't able to
find it.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/23300>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list