Fixed deprecation warnings for fetch_wordpress_db.php