[wp-testers] a bug in the internal permalinks

Stephan Spencer sspencer at netconcepts.com
Thu Jan 18 03:38:32 GMT 2007


Hi everyone!

I'm running 2.1beta4 with the Ultimate Tag Warrior plugin v.  
3.1415926 (latest version) and with Permalink Structure set to a  
Custom structure of: /%postname%/

Turns out in this configuration Ultimate Tag Warrior doesn't work  
when tag page rewriting is turned on. The reason is the following  
nasty little rewrite rule towards the end of the array of internal  
rewrite rules:

[[^/]+/([^/]+)/?$] => index.php?attachment=$1

That rewrite rule is a bit too greedy. It will match on  
www.mydomain.com/anything/anything, including www.mydomain.com/tag/ 
randomkeyword. So the UltimateTagWarrior rewrites, which are at the  
very end of the array, never get a chance to be invoked before this  
above-mentioned rogue rule hijacks things.

I don't know what other plugins are affected by this, other than  
Ultimate Tag Warrior. WP-Print and WP-Email are fine because those 2  
plugins put their rules at the very top of the array instead of the  
bottom.

Cheers,
Stephan

Stephan Spencer
Founder & President
Netconcepts

web: www.netconcepts.com
blog: www.stephanspencer.com
email: sspencer at netconcepts.com

ph: (608) 285 6600


This email and any files transmitted with it are CONFIDENTIAL. If you  
are not the intended recipient, you must not peruse, use,  
disseminate, distribute or copy this email or attachments. If you  
have received this in error, please notify us immediately by return  
email, facsimile or telephone (call us collect) and delete this  
email. Thank you.



More information about the wp-testers mailing list