Editing WP Core files never makes sense and your changes would vanish when upgraded or you may not be able to upgrade or else you may need to make those changes after every upgrade.