Fix protocol issue for wp-admin side