Natalya Murphy said
I’d like to use description-list HTML tags (dl, dt, dd) for defining the parameters. Since I’m assuming we’d mainly use these tags for documenting function parameters and the like, it would be nice to have the dt style font be similar to the font used by the syntax highlighter (courier or something similar).
I will take a look at the CSS in a little while. I donlt even recall which css file we are ysing there now believe it or not!
On the issue of the new release having 4 parameters instead of 2, this brings up another point: where should the information go about the 2-parameter version being in releases before 5.3? The WP codex would put this information in the Change Log section. Is this where you folks would put it as well?
I am all for starting a change log section when required. It really is the only way to do it.
@Andy, I’m not quite clear what you mean by “…the two calls to the function supply those values.” What 2 calls are you referring to? And if any existing custom code uses the 2-parameter version, does the function have default values that it supplies for the 2 new parameters?
OK – there are two current calls with SP to the sp_write_error() function – both of then in the same error api file. These too have been updated to pass in the two new parameters.
Now, I think the chances that anyone outside of us has used any of these currently undocumented functions is a big fat zero. But … you are of course absolutely right that this should not be taken for granted. So yes – I have changed the code to allow for these parameters to be optional and have default values if not passed.