Originally Posted by
Petrarch's Love
I personally have always thought that the Dumbledore character is loosely based on someone she knew--probably a teacher, professor or similar mentor (though obviously its a modified and idealized portrait). Perhaps the person she based him on is gay? Just speculation of course, but my sense is that, in any case, this wasn't some sort of spur of the moment attention getting device. I think this is something she's thought of as being a part of the character for a long time. I don't think it's at all unusual for authors to have all sorts of details about characters in their mind that aren't necessarily written into the story, especially when you've been writing a character for as long as Rowling has.