Opened 16 years ago
Closed 16 years ago
#1178 closed defect (bug) (fixed)
function postform H2 backward compatibility broken
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | 1.0.3 | Priority: | normal |
| Severity: | normal | Version: | 1.0.2 |
| Component: | Back-end | Keywords: | |
| Cc: |
Description
function postform in 1.0 attempts to maintain backward compatibility by first checking if the passed variable is a string instead and if so, use it as a H2 - However it does not work as intended and fails to use the string.
I think the way the defaults are extract somehow overrides it, I have to study it further. It may be is_string failing, though I doubt it, if so you could just switch to !is_array
ie.
<?php postform('Reply to George'); ?>
will still show the default header "Reply" instead "Reply to George"
Change History (2)
Note: See
TracTickets for help on using
tickets.
(In [2365]) Properly deal with backwards compatibility in post_form(). Fixes #1178