Skip to:
Content

bbPress.org

Opened 16 years ago

Closed 16 years ago

#1178 closed defect (bug) (fixed)

function postform H2 backward compatibility broken

Reported by: _ck_'s profile _ck_ 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)

#1 @sambauers
16 years ago

  • Milestone set to 1.0.3

#2 @sambauers
16 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [2365]) Properly deal with backwards compatibility in post_form(). Fixes #1178

Note: See TracTickets for help on using tickets.