I recently upgraded from 4.11 to 5.1 and have noticed that my bed temp is now staying hot after the prints finish (on any newly sliced model). As a quick fix I modified my printers end G-code to include M104 S0 and M140 S0 to force it, but this was never needed before, and I can still see the M104 S0 that Cura is adding in addition to the one I have added to the End G-Code settings for my printer.
Previous End G-Code Cura generated:
G1 F2400 E-0.5
M82 ;absolute extrusion mode
M107
G1 X0 Y210
M83 ;relative extrusion mode
M104 S0
;End of Gcode
New End G-Code Cura generates with modified End G-Code:
G1 F2400 E-0.5
M82 ;absolute extrusion mode
M107
G1 X0 Y210
M104 S0 ; Turn off Hot End
M140 S0 ; Turn off Heated Bed
M83 ;relative extrusion mode
M104 S0
;End of Gcode