fixed to wp-config and functions to correct issues