Make WordPress Core

Opened 10 years ago

Closed 10 years ago

Last modified 6 years ago

#2472 closed defect (bug) (fixed)

display pages with the same post_name as posts

Reported by: donncha Owned by:
Milestone: 2.1 Priority: highest omg bbq
Severity: normal Version: 2.0.1
Component: General Keywords: pages bg|has-patch
Focuses: Cc:


Pages with the same post_name as posts don't get displayed. This patch to wp-includes/functions.php will fix that.

Attachments (2)

patch.txt (546 bytes) - added by donncha 10 years ago.
post-page-slug-clash.diff (1.0 KB) - added by davidhouse 10 years ago.
Exactly the same patch in SVN diff format

Download all attachments as: .zip

Change History (6)

@donncha10 years ago

@davidhouse10 years ago

Exactly the same patch in SVN diff format

comment:1 @davidhouse10 years ago

  • Keywords bg|has-patch added
  • Severity changed from blocker to normal

Can't replicate on my system so I guess it's permalink-structure related. What's your permalink structure?

Patch looks like a good idea anyway, so I'm not closing. I also added another patch which is exactly the same but was generated using svn diff instead of normal diff: they're just easier for svn to apply. If you could you svn diff in the future that would be appreciated (and probably simpler on your behalf :)); if not, at least use diff -u. Thanks.

comment:2 @donncha10 years ago

Check any wordpress.com blog, it played havoc with some of the blogs there!
I'll submit future patches using svn diff, thanks!

comment:3 @ryan10 years ago

  • Milestone set to 2.1

comment:4 @ryan10 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [3558]) Fix post/page slug out. Props donncha. fixes #2472

Note: See TracTickets for help on using tickets.