Changeset 35032 for trunk/src/wp-includes/class-wp-term.php
- Timestamp:
- 10/12/2015 03:12:29 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-term.php
r35031 r35032 97 97 98 98 /** 99 * Info about the term, as stored in the database. 100 * 101 * @since 4.4.0 102 * @access protected 103 * @var array 104 */ 105 protected $data = array(); 106 107 /** 99 108 * Stores the term object's sanitization level. 100 109 * … … 158 167 $this->$key = $value; 159 168 } 169 170 $this->data = sanitize_term( $term, $this->taxonomy, $this->filter ); 160 171 } 161 172 … … 183 194 return get_object_vars( $this ); 184 195 } 196 197 /** 198 * Getter. 199 * 200 * @since 4.4.0 201 * @access public 202 * 203 * @return mixed 204 */ 205 public function __get( $key ) { 206 switch ( $key ) { 207 case 'data' : 208 return sanitize_term( $this->{$key}, $this->data->taxonomy, 'raw' ); 209 break; 210 } 211 } 185 212 }
Note: See TracChangeset
for help on using the changeset viewer.