--- a/wp/wp-includes/class-wp-term.php Mon Oct 14 18:06:33 2019 +0200
+++ b/wp/wp-includes/class-wp-term.php Mon Oct 14 18:28:13 2019 +0200
@@ -102,7 +102,6 @@
* Retrieve WP_Term instance.
*
* @since 4.4.0
- * @static
*
* @global wpdb $wpdb WordPress database abstraction object.
*
@@ -143,11 +142,11 @@
}
}
- // If only one match was found, it's the one we want.
+ // If only one match was found, it's the one we want.
} elseif ( 1 === count( $terms ) ) {
$_term = reset( $terms );
- // Otherwise, the term must be shared between taxonomies.
+ // Otherwise, the term must be shared between taxonomies.
} else {
// If the term is shared only with invalid taxonomies, return the one valid term.
foreach ( $terms as $t ) {
@@ -232,8 +231,8 @@
*/
public function __get( $key ) {
switch ( $key ) {
- case 'data' :
- $data = new stdClass();
+ case 'data':
+ $data = new stdClass();
$columns = array( 'term_id', 'name', 'slug', 'term_group', 'term_taxonomy_id', 'taxonomy', 'description', 'parent', 'count' );
foreach ( $columns as $column ) {
$data->{$column} = isset( $this->{$column} ) ? $this->{$column} : null;