wp/wp-includes/class-wp-term.php
changeset 18 be944660c56a
parent 9 177826044cd9
child 21 48c4eec2b7e6
equal deleted inserted replaced
17:34716fd837a4 18:be944660c56a
    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