I have run into the very same issue, setting pull-up with latest wiringPI (2.52) on the 4B+ does not work. I solved it by using 'raspi-gpio' utility ( https://github.com/RPi-Distro/raspi-gpio ) to just activate the pull-ups via commandline, which worked fine with my 4B+
Just be aware that raspi-gpio do use 'BCM' numbering. So in your case for GPIO.24 you ...
wiringPi pull-ups and pull-downs do not work on the Pi4B. The ways the pulls work has changed in the new BCM2711 SoC used in the Pi4B.
See this question.
As far as I know they do work correctly on the Pi3B (but I have not tested recently).