Removes 4.0 deprecated notice: like_escape()

Removes like_escape deprecation notice and uses $wpdb->esc_like() if the method is available. Fallbacks to old like_escape().