Very generally speaking, a BK would delay a foreclosure, which is one reason Wilshire would likely want to know. No point in paying all the costs associated with a foreclosure only to find out days beforehand that you can't go through with it because the borrower is BK.
I had also heard, but can no longer find the link to the article, that many re-fi lenders were having borrowers waive Calif's deficiency protections. In other words, if you loan was $500K but the house sold at auction for only $400K, then the borrower was still on the hook for the $100K difference. Statutorily, in California, that wasn't the case, but you can waive all kinds of protections in a contract. I suspect many people did not read their paperwork.
With respect to the credit card concern, the new BK laws that went into effect two(?) years ago really changed the playing field. IIRC, it's much more difficult to have debt out and out discharged.