few php strict and WP debug bug fixes