Make WordPress Core


Ignore:
Timestamp:
08/31/2007 11:55:56 PM (18 years ago)
Author:
ryan
Message:

Add some filtering. Props jhodgdon. see #4516

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/category.php

    r5938 r5998  
    118118}
    119119
     120function sanitize_category($category, $context = 'display') {
     121    return sanitize_term($category, 'category', $context);
     122}
     123
     124function sanitize_category_field($field, $value, $cat_id, $context) {
     125    return sanitize_term_field($field, $value, $cat_id, 'category', $context);
     126}
     127
    120128// Tags
    121129
Note: See TracChangeset for help on using the changeset viewer.