mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
Add some filtering. Props jhodgdon. see #4516
git-svn-id: https://develop.svn.wordpress.org/trunk@5998 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -117,6 +117,14 @@ function cat_is_ancestor_of($cat1, $cat2) {
|
||||
return cat_is_ancestor_of($cat1, get_category($cat2->parent));
|
||||
}
|
||||
|
||||
function sanitize_category($category, $context = 'display') {
|
||||
return sanitize_term($category, 'category', $context);
|
||||
}
|
||||
|
||||
function sanitize_category_field($field, $value, $cat_id, $context) {
|
||||
return sanitize_term_field($field, $value, $cat_id, 'category', $context);
|
||||
}
|
||||
|
||||
// Tags
|
||||
|
||||
function &get_tags($args = '') {
|
||||
|
||||
Reference in New Issue
Block a user