#1044 closed defect (bug) (fixed)
Parameter accidentally overwritten in code
Reported by: | shelleyp | Owned by: | ryan |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | major | Version: | 1.5.1 |
Component: | General | Keywords: | |
Focuses: | Cc: |
Description
In the classes.php file, the generate_rewrite_rules function has a parameter called $feed. Unfortunately, the first functionality in the file accidentally overwrites this, so when it's tested later in the code, the value is no longer viable.
I've patched the code in my copy of the file to the following (first few lines)--:
function generate_rewrite_rules($permalink_structure, $pageflg = true, $feedflg = true, $forcomments = false, $walk_dirs = true) {
$feedregex2 = ;
foreach ($this->feeds as $feed) {
$feedregex2 .= $feed . '|';
}
And then use $feedflg later to test to see whether feed entries should be generated.
Change History (4)
Note: See
TracTickets for help on using
tickets.
http://trac.wordpress.org/changeset/2419