It has been well publicized that Rowling wrote Dumbledore as a gay character, she said so herself.
The other part was just a riff on PA.
Oh, you're talking about Harry Potter. I had no idea. You could have been talking about the Lord of the Rings and I wouldn't have known.