bugfix for Wordpress 4.0

Commenting this two lines on Wordpress 4.0 the ordering items in gallery works again.