mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-16 14:50:29 +00:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user