equal
deleted
inserted
replaced
42 |
42 |
43 /** |
43 /** |
44 * The term's term_group. |
44 * The term's term_group. |
45 * |
45 * |
46 * @since 4.4.0 |
46 * @since 4.4.0 |
47 * @var string |
47 * @var int |
48 */ |
48 */ |
49 public $term_group = ''; |
49 public $term_group = ''; |
50 |
50 |
51 /** |
51 /** |
52 * Term Taxonomy ID. |
52 * Term Taxonomy ID. |
202 /** |
202 /** |
203 * Sanitizes term fields, according to the filter type provided. |
203 * Sanitizes term fields, according to the filter type provided. |
204 * |
204 * |
205 * @since 4.4.0 |
205 * @since 4.4.0 |
206 * |
206 * |
207 * @param string $filter Filter context. Accepts 'edit', 'db', 'display', 'attribute', 'js', 'raw'. |
207 * @param string $filter Filter context. Accepts 'edit', 'db', 'display', 'attribute', 'js', 'rss', or 'raw'. |
208 */ |
208 */ |
209 public function filter( $filter ) { |
209 public function filter( $filter ) { |
210 sanitize_term( $this, $this->taxonomy, $filter ); |
210 sanitize_term( $this, $this->taxonomy, $filter ); |
211 } |
211 } |
212 |
212 |