Skip sanitization altogether for raw context. Props Quandary. fixes #5325

git-svn-id: https://develop.svn.wordpress.org/trunk@6321 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2007-11-07 06:20:08 +00:00
parent d5ed4b3d7d
commit 3330c693e4
2 changed files with 8 additions and 0 deletions
+4
View File
@@ -734,6 +734,10 @@ function is_term($term, $taxonomy = '') {
* @return array|object Term with all fields sanitized
*/
function sanitize_term($term, $taxonomy, $context = 'display') {
if ( 'raw' == $context )
return $term;
$fields = array('term_id', 'name', 'description', 'slug', 'count', 'parent', 'term_group');
$do_object = false;