Several locations trigger PHP notices, sometimes on completely unrelated pages. Patch makes multistep shut up.
| Comment | File | Size | Author |
|---|---|---|---|
| notices.patch | 2.59 KB | smk-ka |
Several locations trigger PHP notices, sometimes on completely unrelated pages. Patch makes multistep shut up.
| Comment | File | Size | Author |
|---|---|---|---|
| notices.patch | 2.59 KB | smk-ka |
Comments
Comment #1
smk-ka commentedThis part is actually a bit tricky: the code refers to a variable $status, which is nowhere used, and probably a leftover from a previous version. Removing it obviously results in an API change. Not sure how to handle it correctly.
Comment #2
smk-ka commentedComment #3
haagendazs commentedHey smk-ka: Thanks for creating this patch. I didn't apply the whole thing (as you mentioned, there might be some problems regarding the API change), but I tested the first two parts and they worked fine.
To be exact: These two parts of the patch work great:
Comment #4
vkareh commentedThanks for the patch! I committed it to the development snapshot.
Just to clarify, the
$statusvariable is not directly used, but the API allows implementations of the function to have access to it, in case they want to use it as part of their hook implementation. No changes to the API were needed, but I added a default value in case the variable is missing. In it's absence, it should default to'unsubmitted'. Thanks again!