Ticket #7249 (closed defect: fixed)

Opened 5 months ago

Last modified 5 months ago

AtomPub Doesn't Work When Using Clean URLs

Reported by: josephscott Assigned to: anonymous
Priority: normal Milestone: 2.6
Component: General Version: 2.5.1
Severity: normal Keywords: atompub, has-patch
Cc: josephscott

Description

When trying to get a post collection a client will ask for wp-app.php/posts which works fine with the regular ?p=1 style URLs, but will return zero posts when clean URLs are turned on. After comparing successful requests with failed ones, it looks like WordPress is marking wp-app.php/posts requests as a 404 so it doesn't bother to do the post query to fetch recent post data. From the client point of view it looks like the blog has no posts.

The solution I came up with checks the $req_uri value to see if it's equal to wp-app.php. If it is then it breaks out of the rewrite match loop. This worked for both the default ?p=1 style URLs and clean URLs.

Attachments

wp-includes--classes.php.diff (0.6 kB) - added by josephscott on 07/06/08 04:02:21.

Change History

07/06/08 04:02:21 changed by josephscott

  • attachment wp-includes--classes.php.diff added.

07/06/08 04:09:48 changed by josephscott

Just to note, it looks like AtomPub? support for clean URL blogs has not been working for quite awhile. It doesn't work in 2.5.1 and appears to have broke during the r5951 changes back at the end of August 2007.

07/06/08 17:33:39 changed by ryan

  • status changed from new to closed.
  • resolution set to fixed.

(In [8263]) Don't try to match rewrite rules against AtomPub? requests. Props josephscott. fixes #7249