Changeset 42343 for trunk/src/wp-includes/class-wp-term.php
- Timestamp:
- 11/30/2017 11:09:33 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-term.php
r41162 r42343 144 144 } 145 145 146 // If only one match was found, it's the one we want.146 // If only one match was found, it's the one we want. 147 147 } elseif ( 1 === count( $terms ) ) { 148 148 $_term = reset( $terms ); 149 149 150 // Otherwise, the term must be shared between taxonomies.150 // Otherwise, the term must be shared between taxonomies. 151 151 } else { 152 152 // If the term is shared only with invalid taxonomies, return the one valid term. … … 233 233 public function __get( $key ) { 234 234 switch ( $key ) { 235 case 'data' 236 $data = new stdClass();235 case 'data': 236 $data = new stdClass(); 237 237 $columns = array( 'term_id', 'name', 'slug', 'term_group', 'term_taxonomy_id', 'taxonomy', 'description', 'parent', 'count' ); 238 238 foreach ( $columns as $column ) {
Note: See TracChangeset
for help on using the changeset viewer.