The Yasukuni Shinto Shrine is made to honor the lives of those who gave their lives to the Empire of Japan. That said, if you go to the Shrine to respect the men and women who gave their lives to the Empire of Japan, you are also respecting the lives of 1,068 convicted war criminals and 14 Class-A war criminals. In those lives, they did horrible things to the people of their oppressed areas. So in short, if you go to the Yasukuni Shrine, you are glorifying the war crimes that the men and women committed in their life. If you move the war criminals to a separate shrine, that would make politics much easier.
Yasukuni shrine is meant to honor those who died in the service of the Empire of Japan. The names of factory workers, relief workers, medics, mothers who raised children by themselves because of war, etc have been written in the shrine. While it's true that war criminals have been enshrined as well, they served Japan, yet they were placed there because the Shrine was meant to be a place for all who died in the service of the Empire, and excluding them would mean that they never existed, or that they never served, which is not true. Officials certainly go to the shrine, but I hardly think they praise the names of those who committed war crimes, they remember the sacrifices of its people. Not only that, but Koreans and Taiwanese who served under Japan were also enshrined, so there were no favorites, or disgraced names. I adamantly oppose the thought that Yasukuni shrine visits glorify war crimes. Just because there were some bad apples doesn't mean that the darkness should shroud the legitimacy of it all.
No, official visits to the Yasukuni shrine in Japan do not glorify the act of war crimes, because simply visiting a shrine does not mean that the person is agreeing with the subject. It is important to pay respect for the victims of wars in Japan, and it is a famous site to visit. A person is not glorifying something by visiting it.