Uopce se ne sjecam kako sam prvi puta došao do ovoga, ali:
WordPress
/wp-includes/rewrite.php
generate_rewrite_rules (line 1278)
Kôd:
/**
* Generate the rules from permalink structure.
*
* The main WP_Rewrite function for building the rewrite rule list. The
* contents of the function is a mix of black magic and regular expressions,
* so best just ignore the contents and move to the parameters.
*