Changeset 3472
- Timestamp:
- 01/23/2006 11:20:17 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/classes.php
r3467 r3472 972 972 foreach ($attachment_uris as $uri => $pagename) { 973 973 $this->add_rewrite_tag('%pagename%', "($uri)", 'attachment='); 974 $rewrite_rules += $this->generate_rewrite_rules($page_structure);974 $rewrite_rules = array_merge($rewrite_rules, $this->generate_rewrite_rules($page_structure)); 975 975 } 976 976 } … … 978 978 foreach ($uris as $uri => $pagename) { 979 979 $this->add_rewrite_tag('%pagename%', "($uri)", 'pagename='); 980 $rewrite_rules += $this->generate_rewrite_rules($page_structure);980 $rewrite_rules = array_merge($rewrite_rules, $this->generate_rewrite_rules($page_structure)); 981 981 } 982 982 } … … 1240 1240 $rewrite = array($feedmatch => $feedquery, $feedmatch2 => $feedquery2); 1241 1241 if ($paged) 1242 $rewrite = $rewrite + array($pagematch => $pagequery);1242 $rewrite = array_merge($rewrite, array($pagematch => $pagequery)); 1243 1243 1244 1244 if ($num_toks) { … … 1275 1275 } 1276 1276 1277 $rewrite = $rewrite + array($match => $query);1277 $rewrite = array_merge($rewrite, array($match => $query)); 1278 1278 1279 1279 if ($post) { 1280 $rewrite = array ($trackbackmatch => $trackbackquery) + $rewrite;1280 $rewrite = array_merge(array($trackbackmatch => $trackbackquery), $rewrite); 1281 1281 if ( ! $page ) 1282 $rewrite = $rewrite + array($sub1 => $subquery, $sub1tb => $subtbquery, $sub1feed => $subfeedquery, $sub1feed2 => $subfeedquery); 1283 $rewrite = $rewrite + array($sub2 => $subquery, $sub2tb => $subtbquery, $sub2feed => $subfeedquery, $sub2feed2 => $subfeedquery); 1284 } 1285 } 1286 1287 $post_rewrite = $rewrite + $post_rewrite; 1288 } 1289 1282 $rewrite = array_merge($rewrite, array($sub1 => $subquery, $sub1tb => $subtbquery, $sub1feed => $subfeedquery, $sub1feed2 => $subfeedquery)); 1283 $rewrite = array_merge($rewrite, array($sub2 => $subquery, $sub2tb => $subtbquery, $sub2feed => $subfeedquery, $sub2feed2 => $subfeedquery)); 1284 } 1285 } 1286 $post_rewrite = array_merge($rewrite, $post_rewrite); 1287 } 1290 1288 return $post_rewrite; 1291 1289 } … … 1340 1338 1341 1339 // Put them together. 1342 $this->rules = $page_rewrite + $root_rewrite + $comments_rewrite + $search_rewrite + $category_rewrite + $author_rewrite + $date_rewrite + $post_rewrite;1340 $this->rules = array_merge($page_rewrite, $root_rewrite, $comments_rewrite, $search_rewrite, $category_rewrite, $author_rewrite, $date_rewrite, $post_rewrite); 1343 1341 1344 1342 do_action('generate_rewrite_rules', array(&$this));
Note: See TracChangeset
for help on using the changeset viewer.