In 2007, Rowling revealed that Albus Dumbledore was gay.
We know that she planned a lot of things about Harry Potter's world well in advance.
Is there any info (from the books or a statement by her) that proves that she always planned for him to be this way; or the reverse, that she only decided on that fact about him in the middle of writing the books?
Official info only, no guesses please.