Hello, Thank you for using this service, I will be helping you with your problem today.
Good afternoon, this is a very common issue on these. the gas valves in these are faulty. its the safety valve. This however should be replaced by a qualified tech for safety reasons. its part of the gas system. any leaks after this is install is very dangerous. please consider having a tech replace this. the part is around $95.00 and a service call will probably run you around $90.00 on average. well worth the safety aspect of this repair. the part number is W10293048, hope this helps, be safe and thanks, Bryan
On my Whirlpool parts booklet it shows illus. No. 15, Part no.9761959, Description valve/regulator