﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc	focuses
35265	get_the_terms return on non-existing term	tivnet		"{{{#!php
<?php
function get_the_terms( $post, $taxonomy ) {
	if ( ! $post = get_post( $post ) )
		return false;

	$terms = get_object_term_cache( $post->ID, $taxonomy );
	if ( false === $terms ) {
		$terms = wp_get_object_terms( $post->ID, $taxonomy );

// ---------- PROPOSED (should we return WP_Error or false here?)

		if ( is_wp_error( $terms ) ) {
			return $terms;
		}

// ----------

		$to_cache = array();
}}}"	defect (bug)	closed	normal		Taxonomy	4.4	normal	duplicate			
