mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 12:20:22 +00:00
Deprecate wp_get/set_post_cats() in favor of wp_get/set_post_categories().
git-svn-id: https://develop.svn.wordpress.org/trunk@3849 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -462,4 +462,12 @@ function list_authors($optioncount = false, $exclude_admin = true, $show_fullnam
|
||||
return wp_list_authors($args);
|
||||
}
|
||||
|
||||
function wp_get_post_cats($blogid = '1', $post_ID = 0) {
|
||||
return wp_get_post_categories($post_ID);
|
||||
}
|
||||
|
||||
function wp_set_post_cats($blogid = '1', $post_ID = 0, $post_categories = array()) {
|
||||
return wp_set_post_categories($post_ID, $post_categories);
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user