Change option selected attribute code to use built in WordPress function