mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
Don't use deprecated functions. Props Nazgul. fixes #3186
git-svn-id: https://develop.svn.wordpress.org/trunk@4264 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -338,7 +338,7 @@ class Textpattern_Import {
|
||||
if($cat1 = get_catbynicename($Category1)) { $cats[1] = $cat1; }
|
||||
if($cat2 = get_catbynicename($Category2)) { $cats[2] = $cat2; }
|
||||
|
||||
if(!empty($cats)) { wp_set_post_cats('', $ret_id, $cats); }
|
||||
if(!empty($cats)) { wp_set_post_categories($ret_id, $cats); }
|
||||
}
|
||||
}
|
||||
// Store ID translation for later use
|
||||
|
||||
Reference in New Issue
Block a user