Making WordPress.org

Opened 10 years ago

Closed 10 years ago

#1648 closed defect (bug) (fixed)

Permalinks are wrong when using the plain permalink structure

Reported by: keesiemeijer Owned by: coffee2code
Priority: normal Milestone:
Component: Developer Hub Keywords: has-patch
Cc:

Description

Permalinks for taxonomy archives and method post type posts are going to 404 pages because they use pretty permalinks even when the plain structure is set.

for example the link to the source file taxonomy page for /wp-includes/query.php should be /?wp-parser-source-file=wp-includes_query-php (if the plain structure is set). Instead it goes to /reference/files/wp-includes/query.php/

The same happens with method post permalinks. The method_permalink and taxonomy_permalink filter callbacks that change the permalinks do not use a check to see if pretty permalinks are used.


Attachments (1)

1648.patch (1.5 KB ) - added by keesiemeijer 10 years ago.
Add check for pretty permalinks

Download all attachments as: .zip

Change History (3)

@keesiemeijer
10 years ago

Add check for pretty permalinks

#1 @keesiemeijer
10 years ago

  • Keywords has-patch added

#2 @coffee2code
10 years ago

  • Owner set to coffee2code
  • Resolutionfixed
  • Status newclosed

In 2965:

developer.wordpress.org: Check if pretty permalinks are in use before attempting to modify permalink structure.

Props keesiemeijer.
Fixes #1648.

Note: See TracTickets for help on using tickets.