Update to 4.0

Updated some core WP files, see changelog