Open chriscct7 opened 9 years ago
To elaborate a little, this could help us resolve issues where errors for one screen accidentally pollute another screen.
For example, if an error is logged somewhere unrelated while updating a customer, the customer update will detect that error and fail.
Are we thinking maybe when you register your error with EDD, you add a context, then when doing edd_has_errors( $context )
can only return the errors if they meet context?
Yeah, and maybe either a view or action parameter (or both) would be nice.
Yep! Rcp does this via a third parameter in the add error function.
On Friday, March 13, 2015, Chris Christoff notifications@github.com wrote:
Yeah, and maybe either a view or action parameter (or both) would be nice.
— Reply to this email directly or view it on GitHub https://github.com/easydigitaldownloads/Easy-Digital-Downloads/issues/3242#issuecomment-79458708 .
Punting to 2.6.
We should add support for contexts in EDD errors