Normalizes attributes to API expectations
@param  {object} attributes - changed attributes
@return {object} - normalized attributes
function normalizeApiAttributes( attributes ) {
	attributes = clone( attributes );
	attributes = normalizeTermsForApi( attributes );

	if ( attributes.author ) {
		attributes.author = attributes.author.ID;
	}

	return attributes;
}