Improved backward compatibility for WordPress < 3.6, missing wp_slash() function.