Make WordPress Core

Opened 17 years ago

Closed 17 years ago

Last modified 17 years ago

#10960 closed defect (bug) (fixed)

?author=-N forwards to wrong canonical URL

Reported by: markjaquith Owned by: markjaquith
Priority: high Milestone: 2.9
Component: Canonical Version: 2.8.4
Severity: major Keywords:
Cc: Focuses:

Description

/feed/?author=-123 will redirect to the feed for that author.

Expected: No forwarding, stay on that URL and exclude that author.

I'm on it.

Change History (4)

#1 @markjaquith
17 years ago

  • Resolutionfixed
  • Status newclosed

(In [12034]) Do not do a canonical redirect for negated author query strings. fixes #10960

#2 @aaroncampbell
17 years ago

Wouldn't it be far more efficient to use ctype_digit( $_GET['author'] ) rather than a regular expression?

#3 @filosofo
17 years ago

Actually a better optimization would probably be leaving the regular expression and taking out the ! empty() check (ctype_digit() returns true for empty strings in some PHP versions).

#4 @markjaquith
17 years ago

(In [12040]) Remove redundant !empty() checks. props filosofo. see #10960

Note: See TracTickets for help on using tickets.