Some remarks on the weak maximum principle