### Eclipse Workspace Patch 1.0
#P WordPressDev
|
|
|
844 | 844 | * |
845 | 845 | * @uses $wpdb |
846 | 846 | * |
847 | | * @param int|string $term The term to check |
| 847 | * @param int|string $term The term to check (assumed not stripslashed) |
848 | 848 | * @param string $taxonomy The taxonomy name to use |
849 | 849 | * @param int $parent ID of parent term under which to confine the exists search. |
850 | 850 | * @return mixed Get the term id or Term Object, if exists. |
… |
… |
|
865 | 865 | return $wpdb->get_var( $wpdb->prepare( $select . $where, $term ) ); |
866 | 866 | } |
867 | 867 | |
| 868 | $term = trim( stripslashes( $term )); |
| 869 | |
868 | 870 | if ( '' === $slug = sanitize_title($term) ) |
869 | 871 | return 0; |
870 | 872 | |