Fix accessing $wp in Dashboard