ignore undefined variable warnings in post.php
fix undefined variable warnings in wp-settings-cli.php
ignore undefined variable warnings in Runner.php
extract validate_role() helper method
fix undefined variable warnings in user.php