Make WordPress Core

Ticket #7529: textpattern.diff

File textpattern.diff, 541 bytes (added by mrmist, 17 years ago)

diff containing suggested change to textpattern.php

  • textpattern.php

    old new  
    334334                                $category1 = $category1->term_id;
    335335                                $category2 = get_category_by_slug($Category2);
    336336                                $category2 = $category1->term_id;
    337                                 if($cat1 = $category1) { $cats[1] = $cat1; }
    338                                 if($cat2 = $category2) { $cats[2] = $cat2; }
     337                                if($cat1 = $category1) { $cats[0] = $cat1; }
     338                                if($cat2 = $category2) { $cats[1] = $cat2; }
    339339
    340340                                if(!empty($cats)) { wp_set_post_categories($ret_id, $cats); }
    341341                        }