Fixed bug where Wordpress tries to unnecessarily set the memory limit

Fixed bug where Wordpress tries to unnecessarily set the memory limit when a value like '2G' is used instead of '2048M'.

Discovered by willemo and PeterJaap